mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Disable github notifications by default.
This commit is contained in:
parent
a20da08a11
commit
f2cad71cf6
2 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ Strongly recommend to use
|
||||||
(setq doom-modeline-lsp t)
|
(setq doom-modeline-lsp t)
|
||||||
|
|
||||||
;; Whether display github notifications or not. Requires `ghub` package.
|
;; Whether display github notifications or not. Requires `ghub` package.
|
||||||
(setq doom-modeline-github t)
|
(setq doom-modeline-github nil)
|
||||||
|
|
||||||
;; The interval of checking github.
|
;; The interval of checking github.
|
||||||
(setq doom-modeline-github-interval (* 30 60))
|
(setq doom-modeline-github-interval (* 30 60))
|
||||||
|
|
|
@ -127,7 +127,7 @@ The icons may not be showed correctly in terminal and on Windows.")
|
||||||
(defvar doom-modeline-lsp t
|
(defvar doom-modeline-lsp t
|
||||||
"Whether display `lsp' state or not. Non-nil to display in mode-line.")
|
"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.")
|
"Whether display github notifications or not. Requires `ghub' package.")
|
||||||
|
|
||||||
(defvar doom-modeline-github-interval (* 30 60)
|
(defvar doom-modeline-github-interval (* 30 60)
|
||||||
|
@ -1557,7 +1557,7 @@ mouse-3: Describe current input method")
|
||||||
(fboundp 'ghub-get))
|
(fboundp 'ghub-get))
|
||||||
(setq doom-modeline--github-notifications-number
|
(setq doom-modeline--github-notifications-number
|
||||||
(length (ignore-errors
|
(length (ignore-errors
|
||||||
(ghub-get "/notifications" '((notifications . "true")) :query))))))
|
(ghub-get "/notifications" nil :query '((notifications . "true"))))))))
|
||||||
|
|
||||||
(run-with-timer 30
|
(run-with-timer 30
|
||||||
doom-modeline-github-interval
|
doom-modeline-github-interval
|
||||||
|
|
Loading…
Reference in a new issue