From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Possible to hook into Emacs's buffer name generation?
Date: Fri, 18 Feb 2011 10:13:04 +0100 [thread overview]
Message-ID: <87pqqpyacf.fsf@member.fsf.org> (raw)
In-Reply-To: m1oc6at95s.fsf@gmail.com
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
next prev parent reply other threads:[~2011-02-18 9:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-18 0:28 Possible to hook into Emacs's buffer name generation? Sean McAfee
2011-02-18 1:37 ` Leo
2011-02-18 9:13 ` Tassilo Horn [this message]
2011-02-18 1:37 ` Óscar Fuentes
[not found] ` <mailman.5.1297993074.2625.help-gnu-emacs@gnu.org>
2011-02-20 23:37 ` Sean McAfee
2011-02-21 1:32 ` Stefan Monnier
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=87pqqpyacf.fsf@member.fsf.org \
--to=tassilo@member.fsf.org \
--cc=help-gnu-emacs@gnu.org \
/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.