From ff6e4437a2f9b9c2ca2e4ca36b47325c4d2d2721 Mon Sep 17 00:00:00 2001 From: Alex Reinisch Date: Mon, 25 Jun 2018 15:56:50 -0500 Subject: [PATCH] Fix handler calls to reference lisp-mode. `set-repl-handler!` helps with opening a repl when a particular mode is active in a buffer. We want to be able to open a `sly-mrepl` whenever we are in a lisp buffer, so we should have the repl handler look for `'lisp-mode` to define opening a sly repl. I assume the lookup handlers should be making sure we are in a lisp buffer (similar reasoning to the repl-handler). --- modules/lang/common-lisp/config.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/lang/common-lisp/config.el b/modules/lang/common-lisp/config.el index 3c4a997be..de7d84dc4 100644 --- a/modules/lang/common-lisp/config.el +++ b/modules/lang/common-lisp/config.el @@ -5,8 +5,8 @@ (setq inferior-lisp-program "sbcl") (set-popup-rule! "^\\*sly" :quit nil :ttl nil) - (set-repl-handler! 'sly-mode #'sly-mrepl) - (set-lookup-handlers! 'sly-mode + (set-repl-handler! 'lisp-mode #'sly-mrepl) + (set-lookup-handlers! 'lisp-mode :definition #'sly-edit-definition :documentation #'sly-describe-symbol)