diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-30 15:52:40 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2016-06-30 15:52:40 +0200 |
| commit | 678a7add7a65793207c48a08244ab7c6b1a5e509 (patch) | |
| tree | a7116cebc0bfa17e74769e7f45def1a10d522f13 | |
| parent | 9c5426c381537b0cf4c57855ab4aae2cb9043f6f (diff) | |
| download | dotfiles-678a7add7a65793207c48a08244ab7c6b1a5e509.tar.gz dotfiles-678a7add7a65793207c48a08244ab7c6b1a5e509.zip | |
emacs: improved the handling of the frame title
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | emacs/init.el | 15 |
1 files 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: <path>". If we are not editing a file, then the +;; The frame title is "<login>: <path>". 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 |
