Merge pull request #96 from seanfarley/smf/fix-async-variable

async: fix variable not being injected
This commit is contained in:
Vincent Zhang 2019-01-16 15:28:43 +08:00 committed by GitHub
commit 4cc816c593
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1935,7 +1935,7 @@ Example:
(require 'async nil t)) (require 'async nil t))
(async-start (async-start
`(lambda () `(lambda ()
,(async-inject-variables "\\`\\(load-path\\|auth-sources\\)\\'") ,(async-inject-variables "\\`\\(load-path\\|auth-sources\\|doom-modeline-before-github-fetch-notification-hook\\)\\'")
(run-hooks 'doom-modeline-before-github-fetch-notification-hook) (run-hooks 'doom-modeline-before-github-fetch-notification-hook)
(require 'ghub nil t) (require 'ghub nil t)
(when (fboundp 'ghub-get) (when (fboundp 'ghub-get)