Emacs: Show project, not buffer in frame title
Alan Pearce alan@alanpearce.co.uk
Sun, 13 Jul 2014 09:23:17 +0100
1 files changed, 4 insertions(+), 7 deletions(-)
jump to
M tag-emacs/emacs.d/init.el → tag-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