Add custom frame title

This commit is contained in:
Riyyi
2020-07-26 05:13:40 +02:00
parent 5bebd5e2e2
commit c27a9eabae
+16
View File
@@ -556,6 +556,22 @@ https://github.com/laishulu/hl-fill-column
;; When in the GUI version of Emacs, enable pretty symbols ;; When in the GUI version of Emacs, enable pretty symbols
(when window-system (global-prettify-symbols-mode t)) (when window-system (global-prettify-symbols-mode t))
;; Set the frame title
(setq frame-title-format
`("%b"
(:eval
(if (buffer-file-name)
(concat
(if (buffer-modified-p) " *" nil)
" ("
(abbreviate-file-name
(directory-file-name
(file-name-directory (buffer-file-name))))
")")
nil))
,(format " - GNU Emacs %s" emacs-version)
))
#+END_SRC #+END_SRC
** Buffers ** Buffers