From c6dfc40ea19f0757eba32f9c89a08c9b2e09ba7a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 28 Jun 2016 20:44:04 -0700 Subject: [PATCH] Also remove github-notifier-mode-line on update --- dotfiles/emacs.d/README.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index da94d03c..3f576db5 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -3411,6 +3411,10 @@ Ensure all themes that I use are installed: #+BEGIN_SRC emacs-lisp (use-package spaceline-config :ensure spaceline + :preface + (progn + (defun spaceline-gh-notifier-disable-default-notifier-modeline (&rest args) + (delq 'github-notifier-mode-line global-mode-string))) :config (progn (setq powerline-default-separator (random-choice '(butt slant wave))) @@ -3426,9 +3430,8 @@ Ensure all themes that I use are installed: (advice-add 'github-notifier-mode :after 'spaceline-gh-notifier-disable-default-notifier-modeline) - - (defun spaceline-gh-notifier-disable-default-notifier-modeline (&rest args) - (delq 'github-notifier-mode-line global-mode-string)) + (advice-add 'github-notifier-update :after + 'spaceline-gh-notifier-disable-default-notifier-modeline) (spaceline-define-segment spaceline-gh-notifier "Display the number of github notifications the user has"