my emacs' version: GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014-05-21 on buildvm-07.phx2.fedoraproject.org
I hope Emacs's title display the absolute path of the current file. I wrote the following contents (from internet):
;;;Emacs title bar to reflect file name
(defun frame-title-string ()
"Return the file name of current buffer, using ~ if under home directory"
(let
((fname (or
(buffer-file-name (current-buffer))
(buffer-name))))
;;let body
(when (string-match (getenv "HOME") fname)
(setq fname (replace-match "~" t t fname)) )
fname))
;;; Title = 'system-name File: foo.bar'
(setq frame-title-format '("" system-name " File: "(:eval (frame-title-string))))
before reinstalling FC20 + Emacs, the above content was able to work correctly. Now it does not work except that I open .emacs and eval frame-title-format manually, I do not know why I must manually eval it?
(message "I'm here")to it and check the*Messages*buffer afterwards. Also, there might be a system init file installed on the system that overrides your setting?*Messages*. Now I want to force eval (setq frame-title-format ...) in .emacs, what should I do? Thanks