core: minor refactor/reformat
+ Prefer cl-loop over cl-mapcan for performance reasons. + Remove unnecessary let form + Log doom-try-run-hook when doom-debug-mode is on.
This commit is contained in:
parent
adf9b7d26f
commit
600d7bcb4f
3 changed files with 13 additions and 9 deletions
|
@ -245,6 +245,8 @@ original value of `symbol-file'."
|
|||
easier to tell where the came from.
|
||||
|
||||
Meant to be used with `run-hook-wrapped'."
|
||||
(when doom-debug-mode
|
||||
(message "Running doom hook: %s" hook))
|
||||
(condition-case e
|
||||
(funcall hook)
|
||||
((debug error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue