From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert Thorpe" Newsgroups: gmane.emacs.help Subject: Re: dired mode or norton commander Date: 7 Dec 2006 04:03:21 -0800 Organization: http://groups.google.com Message-ID: <1165493001.140885.125140@f1g2000cwa.googlegroups.com> References: <1165490308.371830.294280@f1g2000cwa.googlegroups.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1165495256 4822 80.91.229.10 (7 Dec 2006 12:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Dec 2006 12:40:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 07 13:40:55 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GsIYT-000817-Gr for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 13:40:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsIYT-0004x7-1y for geh-help-gnu-emacs@m.gmane.org; Thu, 07 Dec 2006 07:40:49 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f1g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 54 Original-NNTP-Posting-Host: 213.94.228.210 Original-X-Trace: posting.google.com 1165493025 22862 127.0.0.1 (7 Dec 2006 12:03:45 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 7 Dec 2006 12:03:45 +0000 (UTC) In-Reply-To: <1165490308.371830.294280@f1g2000cwa.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 EMF3ASPROXY03 Complaints-To: groups-abuse@google.com Injection-Info: f1g2000cwa.googlegroups.com; posting-host=213.94.228.210; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w Original-Xref: shelby.stanford.edu gnu.emacs.help:143713 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39315 Archived-At: 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.