help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dired mode or norton commander


From: Robert Thorpe
Subject: Re: dired mode or norton commander
Date: 7 Dec 2006 04:37:39 -0800
User-agent: G2/1.0

bcochofel wrote:
> Well, I've tried:
> ;-------------------------------------------------------------
>  (defun dired-follow-file ()
>   (interactive)
>   (let ((filename (dired-get-filename)))
>     (if (file-directory-p filename)
>         (find-alternate-file filename)
>       (dired-find-file))))
>
> (defun dired-setup-follow-file ()
>   (substitute-key-definition
>    'dired-find-file 'dired-follow-file dired-mode-map)
>   (substitute-key-definition
>    'dired-advertised-find-file 'dired-follow-file dired-mode-map))
>
> (add-hook 'dired-mode-hook 'dired-setup-follow-file)
> ;---------------------------------------------------------------
>
> But I cannot change to dirs '.' and '..', I get:
>
> "Cannot operate on '.' or '..'

That's weird.  It works fine for me.

> Using the "a" key I get a message asking if I want to use in all
> sessions this options and I answer yes... No good...

That is even weirder.  What does it say when you type C-h k a from
within dired?
What version of Emacs are you using?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]