I'm new to emacs and wanting my buffers to be automatically named folder/filename or clojure.namespace.filename. I've found Uniquify which will rename conflicting buffers but I can't see how to use it as the default. Is there a way to do this or alternatively, a more idiomatic way of identifying buffers in emacs?
You can use uniquify M-x customize-group <return> uniquify <return>, which allows including enough of the relative path in the buffer name to differentiate buffers.
If you want to use the clojure namespace of the file as the buffer name there is the rename-buffer function, which could be passed a name generated with the help of clojure-mode which can tell you what namespace that file defines via clojure-expected-ns or clojure-find-ns.
There is also the option of setting a header or mode-line entry besides the buffer name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With