diff --git a/config.el b/config.el index c295512..f438b4a 100644 --- a/config.el +++ b/config.el @@ -1238,8 +1238,10 @@ Otherwise: runs interactive ement-connect, then opens rooms after sync." ;; Directory structure: ~/org/snippets// ;; e.g. ~/org/snippets/org-mode/adr, ~/org/snippets/markdown-mode/adr (after! yasnippet - ;; Prepend ~/org/snippets so it takes priority over defaults - (yas-load-directory (expand-file-name "snippets/" org-directory))) + ;; Add ~/org/snippets to yas-snippet-dirs (prepend = higher priority). + ;; Must be in yas-snippet-dirs so it survives yas-reload-all calls. + (push (expand-file-name "snippets/" org-directory) yas-snippet-dirs) + (yas-reload-all)) ;;; ============================================================ ;;; NAVIGATION — link-hint, avy