all repos — nixfiles @ bbb27a24cb4eae2a9fcc414f37312811bc49f441

System and user configuration, managed by nix and home-manager

Emacs: Add project name to frame title

Alan Pearce
commit

bbb27a24cb4eae2a9fcc414f37312811bc49f441

parent

0f82040e9ab719eed92b178113200c1694550be0

1 file changed, 7 insertions(+), 3 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1122,11 +1122,15 @@
;;;; Windows & Frames (setq frame-title-format - '("" - (:eval (capitalize invocation-name)) ": " + '((:eval (capitalize invocation-name)) ": " + (:eval (if (projectile-project-p) + (concat (projectile-project-name) " ") + )) + "(" (:eval (if (buffer-file-name) (abbreviate-file-name (buffer-file-name)) - "%b")))) + "%b")) + ")")) (setq scroll-conservatively 100 ; Keep the cursor position when scrolling scroll-margin 1