Add lookup handlers for IELM

This commit is contained in:
Andrew Whatson 2020-05-28 11:53:15 +10:00
parent 7ed96590e6
commit 595c055953

View file

@ -114,6 +114,13 @@ This marks a foldable marker for `outline-minor-mode' in elisp buffers.")
"v" #'find-variable "v" #'find-variable
"l" #'find-library))) "l" #'find-library)))
(use-package! ielm
:defer t
:config
(set-lookup-handlers! 'inferior-emacs-lisp-mode
:definition #'+emacs-lisp-lookup-definition
:documentation #'+emacs-lisp-lookup-documentation))
;; Adapted from http://www.modernemacs.com/post/comint-highlighting/ to add ;; Adapted from http://www.modernemacs.com/post/comint-highlighting/ to add
;; syntax highlighting to ielm REPLs. ;; syntax highlighting to ielm REPLs.
(add-hook! 'ielm-mode-hook (add-hook! 'ielm-mode-hook