Closed jaseemabid closed 11 years ago
(require 'uniquify)
(setq uniquify-buffer-name-style 'forward)
Yep, agree with @dgutov here -- Emacs has great facilities for doing this already. :-)
Hey this looks good, problem solved :) Thanks @dgutov @purcell Its almost the orig idea with no effort.
And it helps everywhere, not just in rinari projects. I personally use these uniquify settings:
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator " • ")
(setq uniquify-after-kill-buffer-p t)
(setq uniquify-ignore-buffers-re "^\\*")
This is a feature request than a bug report
Rinari should do a better job at naming buffers.
Right now I am working on a moderate sized rails project with a few controllers and almost all of them have view files named
index.html.haml
,show.html.haml
etc. Emacs by default names themindex.html.haml<n>
etc, which is pretty useless. It would be great if we can add a buffer naming scheme to make things clearer.For example, we can name controllers
controller-{controller_name}
, likecontroller-users
orcontroller-files
instead ofusers_controller.rb
. Same goes with views. 'view-{controller}-{action}' will be a lot more useful than aindex.html.haml<3>
, like 'view-users-show'. Similar names for assets, config files, logs etc.Thoughts?