feat(emacs): Preserve balance when inserting comments
This commit is contained in:
@@ -211,11 +211,11 @@ Particularly in Lisps where indentation is reliable.
|
||||
|
||||
*** TODO ~SPC i u~
|
||||
|
||||
*** TODO ~syd-open-sexp-above~ should understand comments
|
||||
*** DONE ~syd-open-sexp-above~ should understand comments
|
||||
|
||||
If a comment immediately proceeds a sexp, open the new sexp /before/ the comment. Transpose/drag commands should probably have the same behaviour.
|
||||
|
||||
*** TODO ESC should ~:nohl~
|
||||
*** DONE ESC should ~:nohl~
|
||||
|
||||
*** TODO Implement ~evil-cleverparens~'s ~evil-cp--guard-point~
|
||||
|
||||
|
||||
@@ -454,6 +454,11 @@ be considered as part of the sexp."
|
||||
"af" #'syd-evil-a-form
|
||||
"if" #'syd-evil-inner-form)
|
||||
|
||||
(general-def
|
||||
:keymaps 'syd-lisp-mode-map
|
||||
:states 'insert
|
||||
";" #'sp-comment)
|
||||
|
||||
;; Bind editing commands in normal node, and motion commands in motion
|
||||
;; mode.
|
||||
(general-def
|
||||
|
||||
Reference in New Issue
Block a user