Fix def-project-mode! :add-hooks overwriting hooks
Would overwrite hooks previously added to the project mode.
This commit is contained in:
parent
bcbe2c6562
commit
e348e32cbc
1 changed files with 3 additions and 2 deletions
|
@ -130,8 +130,9 @@ Relevant: `doom-project-hook'."
|
||||||
,on-load
|
,on-load
|
||||||
(setq ,init-var t)))
|
(setq ,init-var t)))
|
||||||
,on-enter))
|
,on-enter))
|
||||||
,(when add-hooks
|
,@(cl-loop for hook in add-hooks
|
||||||
`(setq ,(intern (format "%s-hook" name)) ',add-hooks))
|
collect `(add-hook ',(intern (format "%s-hook" name))
|
||||||
|
#',hook))
|
||||||
,(when (or modes match files when)
|
,(when (or modes match files when)
|
||||||
`(associate! ,name
|
`(associate! ,name
|
||||||
:modes ,modes
|
:modes ,modes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue