This commit is contained in:
Daniel Ziltener 2023-11-17 03:33:57 +01:00
parent 9db349a29c
commit 0ba852fd5e
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -301,12 +301,21 @@
(use-package parinfer-rust-mode
:custom
(parinfer-rust-auto-download t)
(parinfer-rust-troublesome-modes
(delete 'electric-pair-mode parinfer-rust-troublesome-modes))
:hook
emacs-lisp-mode
clojure-ts-mode
scheme-mode
(parinfer-rust-mode . electric-pair-local-mode)
:config
(setq-local electric-pair-inhibit-predicate
(lambda (c)
(if (or (char-equal c ?\()
(char-equal c ?\[)
(char-equal c ?\{))
t
(electric-pair-default-inhibit c))))
(evil-define-key 'normal 'parinfer-rust-mode-map
(kbd "r") #'raise-sexp))
;; (use-package lispy