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

2 Answers 2

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
  • 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" Commented Dec 11, 2017 at 21:17
0
(setq-default mode-line-buffer-identification
              (list 'buffer-file-name
                    (propertized-buffer-identification "%12f")
                    (propertized-buffer-identification "%12b")))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.