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.
This commit is contained in:
parent
f325275607
commit
d84b516cf4
1 changed files with 2 additions and 1 deletions
|
@ -38,7 +38,8 @@
|
||||||
|
|
||||||
(defun +common-lisp|init-sly ()
|
(defun +common-lisp|init-sly ()
|
||||||
"Attempt to auto-start sly when opening a lisp buffer."
|
"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)
|
((executable-find inferior-lisp-program)
|
||||||
(let ((sly-auto-start 'always))
|
(let ((sly-auto-start 'always))
|
||||||
(sly-auto-start)
|
(sly-auto-start)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue