mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(text-editing/smartparens): disable navigate action on {} pair
This commit is contained in:
@@ -55,6 +55,12 @@
|
||||
;; smart pairing for all
|
||||
(require 'smartparens-config)
|
||||
|
||||
;; Re-define {} pair to remove the navigate action. This allows for manually
|
||||
;; inserting a } character, otherwise it would always jump to the next
|
||||
;; existing } character, preventing you from manually inserting one where you
|
||||
;; want.
|
||||
(sp-pair "{" "}" :actions '(wrap insert autoskip))
|
||||
|
||||
(defun sp-transpose-sexp-reverse ()
|
||||
(interactive)
|
||||
(sp-transpose-sexp -1))
|
||||
|
||||
Reference in New Issue
Block a user