elisp - how to show path to file in the Emacs mode-line? -


in mode-line appears name of buffer working (argf.rb):

enter image description here

for buffer visiting file, possible display absolute file name (i.e., include path)?

first, see buffer name, not file name. try open 2 files same names (in different directories) , see mean.

second, yes, sure possible - customize mode-line-format.

third, might not such great idea - mode line quite crowded , long path not fit. know sounds great now, hate next day.

instead, put path title bar:

(setq frame-title-format       '(buffer-file-name "%b - %f" ; file buffer         (dired-directory dired-directory ; dired buffer          (revert-buffer-function "%b" ; buffer menu           ("%b - dir: " default-directory))))) ; plain buffer 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -