summaryrefslogtreecommitdiff
path: root/init.org
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--init.org51
1 files changed, 25 insertions, 26 deletions
diff --git a/init.org b/init.org
index f9daee3..6a1ea8f 100644
--- a/init.org
+++ b/init.org
@@ -612,32 +612,31 @@ Automatically revert buffers if the file has changed on disk.
*** yasnippet
#+begin_src emacs-lisp
- (use-package yasnippet
- :ensure t
- :demand t
- :diminish
- :commands yas-minor-mode-on
- :bind (("C-c y d" . yas-load-directory)
- ("C-c y i" . yas-insert-snippet)
- ("C-c y f" . yas-visit-snippet-file)
- ("C-c y n" . yas-new-snippet)
- ("C-c y t" . yas-tryout-snippet)
- ("C-c y l" . yas-describe-tables)
- ("C-c y g" . yas-global-mode)
- ("C-c y m" . yas-minor-mode)
- ("C-c y r" . yas-reload-all)
- ("C-c y x" . yas-expand)
- :map yas-keymap
- ("C-i" . yas-next-field-or-maybe-expand))
- :mode ("/emacs\\.d/snippets/" . snippet-mode)
- :hook (prog-mode . yas-minor-mode-on)
- :custom
- (yas-prompt-functions '(yas-completing-prompt yas-no-prompt))
- (yas-snippet-dirs (list (emacs-path "snippets")))
- (yas-triggers-in-field t)
- (yas-wrap-around-region t)
- :config
- (yas-load-directory (emacs-path "snippets")))
+(use-package yasnippet
+ :ensure t
+ :diminish
+ :commands yas-minor-mode-on
+ :bind (("C-c y d" . yas-load-directory)
+ ("C-c y i" . yas-insert-snippet)
+ ("C-c y f" . yas-visit-snippet-file)
+ ("C-c y n" . yas-new-snippet)
+ ("C-c y t" . yas-tryout-snippet)
+ ("C-c y l" . yas-describe-tables)
+ ("C-c y g" . yas-global-mode)
+ ("C-c y m" . yas-minor-mode)
+ ("C-c y r" . yas-reload-all)
+ ("C-c y x" . yas-expand)
+ :map yas-keymap
+ ("C-i" . yas-next-field-or-maybe-expand))
+ :mode ("/emacs\\.d/snippets/" . snippet-mode)
+ :hook (prog-mode . yas-minor-mode-on)
+ :custom
+ (yas-prompt-functions '(yas-completing-prompt yas-no-prompt))
+ (yas-snippet-dirs (list (emacs-path "snippets")))
+ (yas-triggers-in-field t)
+ (yas-wrap-around-region t)
+ :config
+ (yas-load-directory (emacs-path "snippets")))
#+end_src
** dired