mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Fix: checking github notifications asynchronously.
This commit is contained in:
parent
f4d9aabcd6
commit
ff63959c03
1 changed files with 6 additions and 4 deletions
|
@ -1562,10 +1562,12 @@ mouse-3: Describe current input method")
|
||||||
(fboundp 'async-start)
|
(fboundp 'async-start)
|
||||||
(fboundp 'ghub-get))
|
(fboundp 'ghub-get))
|
||||||
(async-start
|
(async-start
|
||||||
(setq doom-modeline--github-notifications-number
|
(lambda ()
|
||||||
(length
|
(ignore-errors
|
||||||
(ignore-errors
|
(ghub-get "/notifications" nil :query '((notifications . "true")))))
|
||||||
(ghub-get "/notifications" nil :query '((notifications . "true")))))))))
|
(lambda (result)
|
||||||
|
(setq doom-modeline--github-notifications-number
|
||||||
|
(length result))))))
|
||||||
|
|
||||||
(run-with-timer 30
|
(run-with-timer 30
|
||||||
doom-modeline-github-interval
|
doom-modeline-github-interval
|
||||||
|
|
Loading…
Reference in a new issue