Question

I wanna to set my title bar like plugin.el@~/.emacs.d/plugin/ , the plugin.el file is in the plugin directory, I googled a lot, no result just is like what I need.

  1. the order of file name and directory name
  2. change /home/username to ~ if the file is in my home directory
  3. the string after @ is just directory name without the file name

Please help...

Était-ce utile?

La solution

Set frame-title-format to something like (:eval (let ((b (buffer-file-name))) (format "%s@%s" (file-name-nondirectory b) (file-name-directory b)))).

Maybe what you are actually looking for is a different uniquification policy, though. This will affect the mode line, the actual buffer names, and (in many standard configurations) the frame title.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top