From c52634183b697f342bf871b9ddef29741e3de3bb Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 26 Sep 2022 00:05:34 -0400 Subject: [PATCH] Configure yas in a way that doesn't break --- doom.d/config.el | 4 ++-- doom.d/config.org | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doom.d/config.el b/doom.d/config.el index 81ea985..526356a 100644 --- a/doom.d/config.el +++ b/doom.d/config.el @@ -466,8 +466,8 @@ independent key tables." :hook (prog-mode . rainbow-delimiters-mode)) (after! yasnippet - (setq yas-snippet-dirs - '("~/Org/snippets"))) + (add-to-list 'yas-snippet-dirs "~/Org/snippets") + (yas-reload-all)) (after! lsp-mode (add-to-list 'lsp-file-watch-ignored-directories "[/\\\\]\\result\\") diff --git a/doom.d/config.org b/doom.d/config.org index 0ea77e3..5cae3c9 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -658,8 +658,8 @@ Makes pairs of delimiters into pretty colors. Hook this into prog-mode Set the snippets directory to inside our org dir, since this gets synced #+begin_src emacs-lisp :tangle yes (after! yasnippet - (setq yas-snippet-dirs - '("~/Org/snippets"))) + (add-to-list 'yas-snippet-dirs "~/Org/snippets") + (yas-reload-all)) #+end_src ** LSP Mode Custom configuration for lsp-mode