fix(yasnippet): use yas-load-directory instead of add-to-list
This commit is contained in:
@@ -1238,8 +1238,8 @@ Otherwise: runs interactive ement-connect, then opens rooms after sync."
|
|||||||
;; Directory structure: ~/org/snippets/<mode-name>/<snippet-name>
|
;; Directory structure: ~/org/snippets/<mode-name>/<snippet-name>
|
||||||
;; e.g. ~/org/snippets/org-mode/adr, ~/org/snippets/markdown-mode/adr
|
;; e.g. ~/org/snippets/org-mode/adr, ~/org/snippets/markdown-mode/adr
|
||||||
(after! yasnippet
|
(after! yasnippet
|
||||||
(add-to-list 'yas-snippet-dirs (expand-file-name "snippets/" org-directory) t)
|
;; Prepend ~/org/snippets so it takes priority over defaults
|
||||||
(yas-reload-all))
|
(yas-load-directory (expand-file-name "snippets/" org-directory)))
|
||||||
|
|
||||||
;;; ============================================================
|
;;; ============================================================
|
||||||
;;; NAVIGATION — link-hint, avy
|
;;; NAVIGATION — link-hint, avy
|
||||||
|
|||||||
Reference in New Issue
Block a user