Lispy: Fix space preceding lists in REPL.
parent
2c450fd8a6
commit
c6efbbb4c5
|
@ -109,6 +109,22 @@ replace the expression with its result."
|
||||||
(sly-mrepl-mode
|
(sly-mrepl-mode
|
||||||
le-lisp lispy--eval-lisp)
|
le-lisp lispy--eval-lisp)
|
||||||
(hy-mode
|
(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)
|
(provide 'init-lispy)
|
||||||
|
|
Loading…
Reference in New Issue