mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
refactor(lib): suppress map! at compile/batch time
It's not useful in those scenarios, and is more likely to throw up unrecoverably keybind conflict errors, when load order is determined by an over-eager byte-compiler, rather than Doom's standard startup process.
This commit is contained in:
@ -456,7 +456,9 @@ States
|
||||
Don't
|
||||
(map! :n :leader :desc \"Description\" \"C-c\" #'dosomething)
|
||||
(map! :leader :n :desc \"Description\" \"C-c\" #'dosomething)"
|
||||
(doom--map-process rest))
|
||||
(when (or (bound-and-true-p byte-compile-current-file)
|
||||
(not noninteractive))
|
||||
(doom--map-process rest)))
|
||||
|
||||
(provide 'doom-keybinds)
|
||||
;;; doom-keybinds.el ends here
|
||||
|
Reference in New Issue
Block a user