diff --git a/emacs/.emacs.d/config/init-editing.el b/emacs/.emacs.d/config/init-editing.el index d4eacfa..f67f5f4 100644 --- a/emacs/.emacs.d/config/init-editing.el +++ b/emacs/.emacs.d/config/init-editing.el @@ -20,6 +20,9 @@ (defun sp-wrap-single-quote () (interactive) (sp-wrap-with-pair "'")) + (defun sp-wrap-angle-bracket () + (interactive) + (sp-wrap-with-pair "<")) (defun sp-after-equals-p (_id action _context) (when (memq action '(insert navigate)) (sp--looking-back-p "=>" 2))) @@ -66,7 +69,8 @@ "g[" #'sp-wrap-square "g{" #'sp-wrap-curly "g\"" #'sp-wrap-double-quote - "g'" #'sp-wrap-single-quote)) + "g'" #'sp-wrap-single-quote + "g<" #'sp-wrap-angle-bracket)) (use-package evil-smartparens :after (evil smartparens)