From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: dired mode or norton commander
Date: 7 Dec 2006 04:03:21 -0800 [thread overview]
Message-ID: <1165493001.140885.125140@f1g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1165490308.371830.294280@f1g2000cwa.googlegroups.com>
bcochofel wrote:
> Hi, I'm using emacs 22.0.90.2 (compiled from cvs)...
>
> I don't like the way dired opens several buffers each time I visited a
> new dir so I put:
>
> (put 'dired-find-alternate-file 'disabled nil)
That should be ...
(defun dired-follow-file ()
"In dired, visit the file or directory on this line.
If a directory is on the current line, replace the current Dired buffer
with one containing the contents of the directory. Otherwise, invoke
`dired-find-file' on the 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)
>From some code posted by Bourgneuf Francois a couple of months ago.
I'm sure there's a simpler way to do it, but I can't think of it right
now.
> Still the same, I've tried dired-single and I always get several
> buffers...
>
> How can I do this?
If you press return on a directory name in dired then it will open a
new dired buffer. If you press "a" on a directory name it will replace
the current buffer with that buffer.
I use a combination of these commands to navigate directories. I also
use "o" - open file/dir in other window and "i" which means insert
subdirectory into this dired window.
> Also, I'd like to try nc.el (norton commander emulation) but I get
> compile the file under my emacs version.
> Where can I get mc.el (can't find it anywhere...)
Don't know, sorry. But once you've mastered the keys above you should
be OK with Dired.
next prev parent reply other threads:[~2006-12-07 12:03 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-07 11:18 dired mode or norton commander bcochofel
2006-12-07 12:03 ` Robert Thorpe [this message]
2006-12-07 12:27 ` bcochofel
2006-12-07 12:37 ` Robert Thorpe
2006-12-07 13:01 ` bcochofel
2006-12-07 13:09 ` Robert Thorpe
2006-12-07 14:09 ` bcochofel
2006-12-11 1:07 ` Dieter Wilhelm
2006-12-07 16:50 ` Peter Dyballa
[not found] ` <mailman.1642.1165510250.2155.help-gnu-emacs@gnu.org>
2006-12-08 4:21 ` Joe Bush
2006-12-11 18:43 ` Wilmar Igl
2006-12-12 17:13 ` bcochofel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1165493001.140885.125140@f1g2000cwa.googlegroups.com \
--to=rthorpe@realworldtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.