From d84b516cf46fb46a5d051b6742b55f38d109b9a2 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 7 Oct 2018 00:33:58 -0400 Subject: [PATCH] lang/common-lisp: don't start sly in temp buffers Org source blocks use a temp buffer in lisp-mode to natively fontify CL blocks, which can trigger sly. This prevents that. --- modules/lang/common-lisp/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/common-lisp/config.el b/modules/lang/common-lisp/config.el index 22551bba5..b82101ec5 100644 --- a/modules/lang/common-lisp/config.el +++ b/modules/lang/common-lisp/config.el @@ -38,7 +38,8 @@ (defun +common-lisp|init-sly () "Attempt to auto-start sly when opening a lisp buffer." - (cond ((sly-connected-p)) + (cond ((or (doom-temp-buffer-p (current-buffer)) + (sly-connected-p))) ((executable-find inferior-lisp-program) (let ((sly-auto-start 'always)) (sly-auto-start)