[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible to hook into Emacs's buffer name generation?
From: |
Tassilo Horn |
Subject: |
Re: Possible to hook into Emacs's buffer name generation? |
Date: |
Fri, 18 Feb 2011 10:13:04 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Leo <sdl.web@gmail.com> writes:
> Maybe you can build on top of uniquify.el?
I'm using that, which does the trick.
(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
,----[ C-h v uniquify-buffer-name-style RET ]
| uniquify-buffer-name-style is a variable defined in `uniquify.el'.
| Its value is post-forward-angle-brackets
| Original value was nil
|
| Documentation:
| If non-nil, buffer names are uniquified with parts of directory name.
| The value determines the buffer name style and is one of `forward',
| `reverse', `post-forward', or `post-forward-angle-brackets'.
| For example, files `/foo/bar/mumble/name' and `/baz/quux/mumble/name'
| would have the following buffer names in the various styles:
| forward bar/mumble/name quux/mumble/name
| reverse name\mumble\bar name\mumble\quux
| post-forward name|bar/mumble name|quux/mumble
| post-forward-angle-brackets name<bar/mumble> name<quux/mumble>
| nil name name<2>
| Of course, the "mumble" part may be stripped as well, depending on the setting
| of `uniquify-strip-common-suffix'.
`----
Bye,
Tassilo