mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-27 11:09:52 +00:00
Fix #82: load async
if it exists but is not loaded.
This commit is contained in:
parent
26defa1f13
commit
7439d7b927
1 changed files with 18 additions and 15 deletions
|
@ -1573,8 +1573,11 @@ mouse-3: Describe current input method")
|
|||
(defvar doom-modeline--github-notifications-number 0)
|
||||
(defun doom-modeline--github-fetch-notifications ()
|
||||
"Fetch github notifications."
|
||||
(if (and doom-modeline-github
|
||||
(when (and doom-modeline-github
|
||||
(fboundp 'async-start))
|
||||
;; load `async' if it's not loaded
|
||||
(unless (fboundp 'async-inject-variables)
|
||||
(require 'async nil t))
|
||||
(async-start
|
||||
`(lambda ()
|
||||
,(async-inject-variables "\\`load-path\\'")
|
||||
|
|
Loading…
Reference in a new issue