diff --git a/README.md b/README.md index f95d55a..4140dbf 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Strongly recommend to use (setq doom-modeline-lsp t) ;; Whether display github notifications or not. Requires `ghub` package. -(setq doom-modeline-github t) +(setq doom-modeline-github nil) ;; The interval of checking github. (setq doom-modeline-github-interval (* 30 60)) diff --git a/doom-modeline.el b/doom-modeline.el index 0fb2ad2..89115bb 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -127,7 +127,7 @@ The icons may not be showed correctly in terminal and on Windows.") (defvar doom-modeline-lsp t "Whether display `lsp' state or not. Non-nil to display in mode-line.") -(defvar doom-modeline-github t +(defvar doom-modeline-github nil "Whether display github notifications or not. Requires `ghub' package.") (defvar doom-modeline-github-interval (* 30 60) @@ -1557,7 +1557,7 @@ mouse-3: Describe current input method") (fboundp 'ghub-get)) (setq doom-modeline--github-notifications-number (length (ignore-errors - (ghub-get "/notifications" '((notifications . "true")) :query)))))) + (ghub-get "/notifications" nil :query '((notifications . "true")))))))) (run-with-timer 30 doom-modeline-github-interval