3

I'd like to display the full path instead of just the filename itself.

How can this be done?

So essentially where it says .spacemacs in the below image (seems this mode-line is called "Spaceline"):

enter image description here

Drew
  • 77,472
  • 10
  • 114
  • 243

2 Answers2

3

Add this to your dotspacemacs/user-config function:

(spaceline-define-segment buffer-id
  (if (buffer-file-name)
      (abbreviate-file-name (buffer-file-name))
      (powerline-buffer-id)))
  • 1
    Just as an alternative: put it in the title bar instead. SPC f e d, edit dotspacemacs/init to change the following value as follows: dotspacemacs-frame-title-format "%f" – Croad Langshan Dec 11 '17 at 21:17
0
(setq-default mode-line-buffer-identification
              (list 'buffer-file-name
                    (propertized-buffer-identification "%12f")
                    (propertized-buffer-identification "%12b")))
Muihlinn
  • 2,614
  • 1
  • 15
  • 22
yPhil
  • 973
  • 6
  • 22