From 678a7add7a65793207c48a08244ab7c6b1a5e509 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 30 Jun 2016 15:52:40 +0200 Subject: emacs: improved the handling of the frame title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- emacs/init.el | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 7400394..17245fb 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -65,16 +65,14 @@ ;; Enable y/n answers (fset 'yes-or-no-p 'y-or-n-p) -;; The frame title is "mssola: ". If we are not editing a file, then the +;; The frame title is ": ". If we are not editing a file, then the ;; name of the buffer is displayed (e.g. "mssola: *scratch*"). (setq frame-title-format '((:eval - (if (buffer-file-name) - (concat - (user-real-login-name) - ": " - (abbreviate-file-name (buffer-file-name))) - "mssola: %b")))) + (concat (user-real-login-name) ": " + (if (buffer-file-name) + (abbreviate-file-name (buffer-file-name)) + "%b"))))) ;; Emacs modes typically provide a standard means to change the indentation ;; width (e.g. c-basic-offset). Moreover, even though I prefer tabs over space, @@ -203,8 +201,7 @@ :config (projectile-global-mode +1) (setq projectile-mode-line - '(:eval (format " %s" (projectile-project-name)))) -) + '(:eval (format " %s" (projectile-project-name))))) (use-package helm :ensure t -- cgit v1.2.3