summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-06-07 17:44:03 -0700
committerFranck Cuny <franck@fcuny.net>2023-06-07 17:46:44 -0700
commitf7539549704f03f1e7289c35847ecb3dd7b2d8dc (patch)
tree832dfa29276ec01d495d32726e28b34afffa7c1f
parentwe don't need ob-emamux (diff)
downloademacs.d-f7539549704f03f1e7289c35847ecb3dd7b2d8dc.tar.gz
format the code block for yasnippet
Change-Id: I7172fde9196948acaabe72eed163bae2ca0531ae
-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