Pergunta

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...

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top