refactor(emacs): smartparenssss...
This commit is contained in:
@@ -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
|
||||
;; quote pairs, which lisps doesn't use for strings:
|
||||
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "'" nil :actions nil)
|
||||
(sp-local-pair '(minibuffer-mode minibuffer-inactive-mode) "`" nil :actions nil)
|
||||
(sp-local-pair
|
||||
'(minibuffer-mode minibuffer-inactive-mode) "'" nil :actions nil)
|
||||
(sp-local-pair
|
||||
'(minibuffer-mode minibuffer-inactive-mode) "`" nil :actions nil)
|
||||
(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)
|
||||
|
||||
Reference in New Issue
Block a user