elisp - how to show path to file in the Emacs mode-line? -
in mode-line appears name of buffer working (argf.rb):
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