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
|
||||
(setq ,init-var t)))
|
||||
,on-enter))
|
||||
,(when add-hooks
|
||||
`(setq ,(intern (format "%s-hook" name)) ',add-hooks))
|
||||
,@(cl-loop for hook in add-hooks
|
||||
collect `(add-hook ',(intern (format "%s-hook" name))
|
||||
#',hook))
|
||||
,(when (or modes match files when)
|
||||
`(associate! ,name
|
||||
:modes ,modes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue