Fix *-local-vars-hook & doom-first-*-hook not triggering
When starting Emacs with a file path argument these hooks aren't set up in time for the file to be processed. Fixes #3891, #4082, #4104
This commit is contained in:
parent
390594442a
commit
b461f76b0d
3 changed files with 14 additions and 10 deletions
|
@ -492,8 +492,9 @@ advised)."
|
|||
`(let ((fn (intern (format "%s-h" ,hook-var))))
|
||||
(fset
|
||||
fn (lambda (&rest _)
|
||||
(run-hook-wrapped ,hook-var #'doom-try-run-hook)
|
||||
(set ,hook-var nil)))
|
||||
(when after-init-time
|
||||
(run-hook-wrapped ,hook-var #'doom-try-run-hook)
|
||||
(set ,hook-var nil))))
|
||||
(put ,hook-var 'permanent-local t)
|
||||
(dolist (on (list ,@targets))
|
||||
(if (functionp on)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue