Lispy: Fix space preceding lists in REPL.

master
Pierre Neidhardt 2020-11-22 00:48:26 +01:00
parent 2c450fd8a6
commit c6efbbb4c5
1 changed files with 17 additions and 1 deletions

View File

@ -109,6 +109,22 @@ replace the expression with its result."
(sly-mrepl-mode
le-lisp lispy--eval-lisp)
(hy-mode
le-hy lispy--eval-hy))))
le-hy lispy--eval-hy)))
;; REVIEW: Remove this workaround when upstream has fixed
;; https://github.com/abo-abo/lispy/issues/550.
(setq lispy-parens-preceding-syntax-alist
'((lisp-mode . ("[#`',.@]+" "#[0-9]*" "#[.,Ss+-]" "#[0-9]+[=Aa]"))
;; NEW:
(sly-mrepl-mode . ("[[:space:]]" "[#`',.@]+" "#[0-9]*" "#[.,Ss+-]" "#[0-9]+[=Aa]"))
(emacs-lisp-mode . ("[#`',@]+" "#s" "#[0-9]+="))
(clojure-mode . ("[`'~@]+" "#" "#\\?@?"))
(clojurescript-mode . ("[`'~@]+" "#" "#\\?@?"))
(clojurec-mode . ("[`'~@]+" "#" "#\\?@?"))
(cider-repl-mode . ("[`'~@]+" "#" "#\\?@?"))
(cider-clojure-interaction-mode . ("[`'~@]+" "#" "#\\?@?"))
(janet-mode . ("[@;]"))
(scheme-mode . ("[#`',@]+" "#hash"))
(t . ("[`',@]+")))))
(provide 'init-lispy)