Is there any way (simple, preferably, but otherwise is fine) to
remove duplicate command history entries? When I hit M-p, I want to
see the last *unique* command I typed, not the last 25 times I typed
the command to run my program.
Ideas?
-Denis
> Is there any way (simple, preferably, but otherwise is fine) to remove
> duplicate command history entries?
(setq history-delete-duplicates t), or in customisation.
--
Greetings
Pete
The world would be a better place if Larry Wall had been born in
Iceland, or any other country where the native language actually
has syntax.
-- Peter da Silva
For the record, the above did not work, but the below did.
(add-hook 'comint-mode-hook
'(lambda () (setq comint-input-ignoredups t)))
-Denis
Well, I took it out of my customisation clause where it is recorded as:
'(history-delete-duplicates t)
--
Greetings
Pete
The human animal differs from the lesser primates in his passion for
lists of "Ten Best".
-- H. Allen Smith