From b0b1e017a6ed6852f4276d400222e47e6e240e6c Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 28 Apr 2019 19:24:06 +0200 Subject: [PATCH] Added --sudo to emacsremote. --- init.el | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index d9c4f90..30719c2 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-04-26T09:31:26+00:00> +;; Time-stamp: <2019-04-26T14:52:56+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -550,16 +550,20 @@ With argument, do this that many times." (add-hook 'projectile-after-switch-project-hook ; Does not work under :hook. 'tabbar-ruler-group-by-projectile-project) + (defun my/show-tabbar () + "Show tabbar if it is hidden." + (when tabbar-ruler-tabbar-off + (tabbar-mode 1) + (setq tabbar-ruler-tabbar-off nil) + (ruler-mode -1) + (setq tabbar-ruler-ruler-off t))) ;; Show tabbar after 5 seconds idle. - (run-with-idle-timer 5 t (lambda () - (when tabbar-ruler-tabbar-off - (tabbar-mode 1) - (setq tabbar-ruler-tabbar-off nil) - (ruler-mode -1) - (setq tabbar-ruler-ruler-off t)))) + (run-with-idle-timer 5 t (lambda () (my/show-tabbar))) :bind ("C-" . 'tabbar-ruler-tabbar-backward-tab) ("C-" . 'tabbar-ruler-tabbar-forward-tab) + :hook + (after-save . my/show-tabbar) :custom-face (tabbar-selected ((t (:background "gray11"