Also remove github-notifier-mode-line on update

This commit is contained in:
Ivan Malison 2016-06-28 20:44:04 -07:00
parent d14012b6d6
commit c6dfc40ea1

View File

@ -3411,6 +3411,10 @@ Ensure all themes that I use are installed:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package spaceline-config (use-package spaceline-config
:ensure spaceline :ensure spaceline
:preface
(progn
(defun spaceline-gh-notifier-disable-default-notifier-modeline (&rest args)
(delq 'github-notifier-mode-line global-mode-string)))
:config :config
(progn (progn
(setq powerline-default-separator (random-choice '(butt slant wave))) (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 (advice-add 'github-notifier-mode :after
'spaceline-gh-notifier-disable-default-notifier-modeline) 'spaceline-gh-notifier-disable-default-notifier-modeline)
(advice-add 'github-notifier-update :after
(defun spaceline-gh-notifier-disable-default-notifier-modeline (&rest args) 'spaceline-gh-notifier-disable-default-notifier-modeline)
(delq 'github-notifier-mode-line global-mode-string))
(spaceline-define-segment spaceline-gh-notifier (spaceline-define-segment spaceline-gh-notifier
"Display the number of github notifications the user has" "Display the number of github notifications the user has"