Display path of file in status bar

后端 未结 5 683
遇见更好的自我
遇见更好的自我 2021-01-30 21:41

GNU Emacs 23.1.1

I am wondering is there a way to display the path of the file in the status bar, instead of just the filename.

I have to open many files in many

5条回答
  •  情歌与酒
    2021-01-30 21:46

    This one works well for me for setting the full path in the frame:

    (setq frame-title-format
      '(:eval
        (if buffer-file-name
            (replace-regexp-in-string
             "\\\\" "/"
             (replace-regexp-in-string
              (regexp-quote (getenv "HOME")) "~"
              (convert-standard-filename buffer-file-name)))
          (buffer-name))))
    

提交回复
热议问题