Last Modified:
uniquifyでmode-line上のファイル名を分かりやすくする #Emacs
こんな感じのツリーの場合に、
+--components
   +--header
   |  +--index.js
   |  +--template.html
   +--body
   |  +--index.js
   |  +--template.html
   +--footer
   |  +--index.js
   |  +--template.htmlどのindex.jsを開いているか分からなくなるので標準のuniquifyを使う。
設定
(use-package uniquify
  :config
  (setq uniquify-buffer-name-style 'forward
        uniquify-min-dir-content 1))- 見慣れたパス形式にする
- ディレクトリ名を最低1つは表示する
結果
それぞれのバッファのmode-lineがheader/index.js,body/index.jsのように表示される。