diff options
| author | Jakob L. Kreuze | 2019-02-24 10:13:59 -0500 |
|---|---|---|
| committer | Jakob L. Kreuze | 2019-02-24 10:42:26 -0500 |
| commit | df02422307e0b6fdef9e8b1a7a20755c1f402b25 (patch) | |
| tree | ab51985647e4a1590285f023b42edf0202806baa | |
| parent | 0905a0f1d58595cc9e4aebe3c295bb658c48ce9a (diff) | |
Move 'yas-minor-mode-on hook into configuration for Org
| -rw-r--r-- | jakob.org | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -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 |