From c0e00547d5e70f8402c416680a376636e02d022c Mon Sep 17 00:00:00 2001 From: Kiana Sheibani Date: Thu, 3 Apr 2025 06:45:00 -0400 Subject: [PATCH] refactor: shorten advice definition --- config.org | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config.org b/config.org index 33a7b26..edc10f8 100644 --- a/config.org +++ b/config.org @@ -2230,10 +2230,7 @@ If there are any trailing newlines in the snippet file, they will be inserted wh When editing a snippet, the binding =C-c C-t= can be used to test it in a fresh buffer. This is very useful, but with Evil it has the issue of leaving the editor in normal state, when snippets are designed to be expanded in insert state. #+begin_src emacs-lisp -(defadvice! ~/yas-tryout-insert-state (&rest _) - "Switch to Insert state when trying out a snippet." - :after #'yas-tryout-snippet - (evil-insert-state)) +(advice-add #'yas-tryout-snippet :after #'evil-insert-state) #+end_src *** Creating New Snippets