all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Bourgneuf Francois" <francois.bourgneuf@groupe-mma.fr>
Subject: RE: dired in one buffer
Date: Wed, 16 Aug 2006 13:06:06 +0200	[thread overview]
Message-ID: <8A921A5AACA1A64F936C730FC1F81721468F91@zw67246c.societe.mma.fr> (raw)

I have put this in my .emacs.
There's an other solution, type "a" instead of Enter to visit a directory (or a file).

 (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)

Bour9


-----Message d'origine-----
De : help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.org [mailto:help-gnu-emacs-bounces+francois.bourgneuf=groupe-mma.fr@gnu.org] De la part de Peter Dyballa
Envoyé : mercredi 16 août 2006 12:41
À : henning
Cc : Help-gnu-emacs@gnu.org
Objet : Re: dired in one buffer


Am 16.08.2006 um 11:53 schrieb henning:

> Or am I missing something?

C-x k to kill the buffer? or C-x b to first re-enter that obsolete  
buffer?

You could bind a kill-buffer action to pressing/choosing .. or any  
other entry of type directory. Maybe dired-x allows things like this.

Could be you also miss that warm and very happy feeling of being glad  
that this particular directory is still in the list of buffers.

--
Mit friedvollen Grüßen

   Pete

"Programming today is a race between software engineers striving to  
build bigger and better idiot-proof programs, and the Universe trying  
to produce bigger and better idiots. So far, the Universe is winning."
                                                -- Rich Cook




_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

             reply	other threads:[~2006-08-16 11:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-16 11:06 Bourgneuf Francois [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-08-16 16:19 dired in one buffer Jay Bingham
2006-08-18 23:18 ` Drew Adams
2006-08-20  8:24   ` Dieter Wilhelm
2006-08-20 19:26     ` Drew Adams
     [not found] <mailman.5219.1155721985.9609.help-gnu-emacs@gnu.org>
2006-08-16 10:09 ` Johan Bockgård
2006-08-16 10:44 ` Torsten Mueller
2006-08-18  8:37   ` henning
     [not found]   ` <mailman.5319.1155906765.9609.help-gnu-emacs@gnu.org>
2006-08-18 13:32     ` Torsten Mueller
2006-08-16 11:57 ` robert.thorpe
2006-08-16  9:53 henning
2006-08-16 10:41 ` Peter Dyballa

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=8A921A5AACA1A64F936C730FC1F81721468F91@zw67246c.societe.mma.fr \
    --to=francois.bourgneuf@groupe-mma.fr \
    /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.