From df02422307e0b6fdef9e8b1a7a20755c1f402b25 Mon Sep 17 00:00:00 2001 From: Jakob L. Kreuze Date: Sun, 24 Feb 2019 10:13:59 -0500 Subject: Move 'yas-minor-mode-on hook into configuration for Org --- jakob.org | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'jakob.org') diff --git a/jakob.org b/jakob.org index 891f9da..4a15863 100644 --- a/jakob.org +++ b/jakob.org @@ -1022,7 +1022,7 @@ Emacs starts. #+BEGIN_SRC elisp (use-package org :straight nil - :requires counsel + :requires (counsel yasnippet) :demand t :init (setq-default org-id-locations-file "~/.cache/emacs/org-id-locations") @@ -1080,6 +1080,13 @@ Scale up embedded LaTeX so that I can actually read it. (plist-put org-format-latex-options :scale 1.5)) #+END_SRC +Enable [[Yasnippet]]. + +#+BEGIN_SRC elisp + :hook + (org-mode . yas-minor-mode-on) +#+END_SRC + Replace my [[Imenu]] binding with =org-goto=, as it allows me to select headings with subheadings. Keybindings for working with my Org workflow from anywhere are also here, since =use-package= doesn't like split =:bind= declarations. @@ -1543,14 +1550,7 @@ Load all snippets when =yas-minor-mode= is enabled. #+BEGIN_SRC elisp (use-package yasnippet :hook - (yas-minor-mode . yas-reload-all) -#+END_SRC - -Enable Yasnippet for [[Org]]. - -#+BEGIN_SRC elisp - :hook - (org-mode . yas-minor-mode-on)) + (yas-minor-mode . yas-reload-all)) #+END_SRC * Pretty Symbols -- cgit v1.3