github: add hook name to be injected into async process

This commit is contained in:
Sean Farley 2019-01-15 16:31:02 -08:00
parent 3a96162207
commit d8efcd8e3b

View file

@ -1935,7 +1935,7 @@ Example:
(require 'async nil t))
(async-start
`(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)
(require 'ghub nil t)
(when (fboundp 'ghub-get)