eldoc: advice-add when Emacs version < 29
This commit is contained in:
parent
b71d6d6f97
commit
928b1075ff
|
@ -56,9 +56,12 @@
|
||||||
"ZZ" #'quit-window
|
"ZZ" #'quit-window
|
||||||
"ZQ" #'evil-quit)
|
"ZQ" #'evil-quit)
|
||||||
|
|
||||||
;; Enable a separate minor mode so that we can bind keys to it.
|
;; 'special-mode' is used in eldoc since
|
||||||
(advice-add 'eldoc-doc-buffer
|
;; https://github.com/emacs-mirror/emacs/commit/97abe8511a829861f6efb865209ac2dd0e7ae129
|
||||||
:after 'evil-collection-eldoc-setup-doc-buffer-mode))
|
(when (< emacs-major-version 29)
|
||||||
|
;; Enable a separate minor mode so that we can bind keys to it.
|
||||||
|
(advice-add 'eldoc-doc-buffer
|
||||||
|
:after 'evil-collection-eldoc-setup-doc-buffer-mode)))
|
||||||
|
|
||||||
(provide 'evil-collection-eldoc)
|
(provide 'evil-collection-eldoc)
|
||||||
;;; evil-collection-eldoc.el ends here
|
;;; evil-collection-eldoc.el ends here
|
||||||
|
|
Loading…
Reference in New Issue