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.
- the order of file name and directory name
- change /home/username to ~ if the file is in my home directory
- the string after
@
is just directory name without the file name
Please help...
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.