Apply smartparens lisp rules to sly-mrepl-mode
This commit is contained in:
parent
c40588a892
commit
69f14bc3da
3 changed files with 5 additions and 6 deletions
|
@ -98,7 +98,9 @@
|
|||
:unless '(sp-point-before-word-p sp-point-before-same-p)))
|
||||
|
||||
;; In lisps ( should open a new form if before another parenthesis
|
||||
(sp-local-pair sp-lisp-modes "(" ")" :unless '(:rem sp-point-before-same-p))
|
||||
(sp-with-modes sp-lisp-modes
|
||||
(sp-local-pair "`" "`" :actions nil)
|
||||
(sp-local-pair "(" ")" :unless '(:rem sp-point-before-same-p)))
|
||||
|
||||
;; Major-mode specific fixes
|
||||
(sp-local-pair '(ruby-mode enh-ruby-mode) "{" "}"
|
||||
|
|
|
@ -47,10 +47,6 @@
|
|||
;; buffers are meant to be displayed with sufficient vertical space.
|
||||
("^\\*sly-\\(?:db\\|inspector\\)" :ignore t)))
|
||||
|
||||
(sp-with-modes '(sly-mrepl-mode)
|
||||
(sp-local-pair "'" "'" :actions nil)
|
||||
(sp-local-pair "`" "`" :actions nil))
|
||||
|
||||
(defun +common-lisp--cleanup-sly-maybe-h ()
|
||||
"Kill processes and leftover buffers when killing the last sly buffer."
|
||||
(unless (cl-loop for buf in (delq (current-buffer) (buffer-list))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue