.
This commit is contained in:
parent
9db349a29c
commit
0ba852fd5e
1 changed files with 9 additions and 0 deletions
|
@ -301,12 +301,21 @@
|
||||||
(use-package parinfer-rust-mode
|
(use-package parinfer-rust-mode
|
||||||
:custom
|
:custom
|
||||||
(parinfer-rust-auto-download t)
|
(parinfer-rust-auto-download t)
|
||||||
|
(parinfer-rust-troublesome-modes
|
||||||
|
(delete 'electric-pair-mode parinfer-rust-troublesome-modes))
|
||||||
:hook
|
:hook
|
||||||
emacs-lisp-mode
|
emacs-lisp-mode
|
||||||
clojure-ts-mode
|
clojure-ts-mode
|
||||||
scheme-mode
|
scheme-mode
|
||||||
(parinfer-rust-mode . electric-pair-local-mode)
|
(parinfer-rust-mode . electric-pair-local-mode)
|
||||||
:config
|
: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
|
(evil-define-key 'normal 'parinfer-rust-mode-map
|
||||||
(kbd "r") #'raise-sexp))
|
(kbd "r") #'raise-sexp))
|
||||||
;; (use-package lispy
|
;; (use-package lispy
|
||||||
|
|
Loading…
Reference in a new issue