In my ~/.emacs
I have the following:
(setq frame-title-format
'("" invocation-name ": "
(:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))))
which sets the frametitle as file currently opened in the buffer.
So if ~/.emacs
is opened then the title looks as follows:
emacs:~/.emacs
However after some time the title defaults to usual
emacs@hostname
How to go about fixing this?