mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-03 12:27:27 -05:00
advice.el: make it compatible with newer doom revisions
doom redefines `(message)` to use `(doom--print)` under the hood,
so the previous advice caused an infinite recursion.
See: 4b5cf7d46f
Fixes: #233
This commit is contained in:
@ -29,7 +29,7 @@
|
||||
(message "[nix-doom-emacs] Skipping generating autoloads...")))
|
||||
(advice-add 'doom--print
|
||||
:override (lambda (output)
|
||||
(message output)))
|
||||
(princ (format "%s\n" output) 'external-debugging-output)))
|
||||
(advice-add 'kill-emacs
|
||||
:override #'nix-straight-inhibit-kill-emacs)
|
||||
(apply orig-fn r)
|
||||
|
Reference in New Issue
Block a user