all repos — nixfiles @ f423c486e4dedad33b10404d121ee08d541a3781

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

Emacs: Show project, not buffer in frame title

Alan Pearce
commit

f423c486e4dedad33b10404d121ee08d541a3781

parent

bbb27a24cb4eae2a9fcc414f37312811bc49f441

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

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1124,13 +1124,10 @@
(setq frame-title-format '((: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")) - ")")) + (projectile-project-name) + (if (buffer-file-name) + (abbreviate-file-name (buffer-file-name)) + "%b"))))) (setq scroll-conservatively 100 ; Keep the cursor position when scrolling scroll-margin 1