refactor(emacs): smartparenssss...

This commit is contained in:
2025-11-23 04:21:15 -07:00
parent 17d8d96fb3
commit ba45257d3d

View File

@@ -50,11 +50,15 @@ It is only enabled it if `smartparens-global-mode' is on."
;; You're likely writing lisp in the minibuffer, therefore, disable these ;; You're likely writing lisp in the minibuffer, therefore, disable these
;; quote pairs, which lisps doesn't use for strings: ;; quote pairs, which lisps doesn't use for strings:
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "'" nil :actions nil) (sp-local-pair
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "`" nil :actions nil) '(minibuffer-mode minibuffer-inactive-mode) "'" nil :actions nil)
(sp-local-pair
'(minibuffer-mode minibuffer-inactive-mode) "`" nil :actions nil)
(dolist (pair '(("" "") (dolist (pair '(("" "")
("" "") ("" "")
("" ""))) ("" "")))
(sp-local-pair 'fundamental-mode (car pair) (cdr pair)))) (sp-pair (car pair) (cdr pair)))
(sp-local-pair '(js-mode) "{" nil :post-handlers '(("||\n[i]" "RET"))))
(provide 'syd/smartparens) (provide 'syd/smartparens)