fix(yasnippet): push to yas-snippet-dirs + yas-reload-all
This commit is contained in:
@@ -1238,8 +1238,10 @@ 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
|
||||||
;; Prepend ~/org/snippets so it takes priority over defaults
|
;; Add ~/org/snippets to yas-snippet-dirs (prepend = higher priority).
|
||||||
(yas-load-directory (expand-file-name "snippets/" org-directory)))
|
;; 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
|
;;; NAVIGATION — link-hint, avy
|
||||||
|
|||||||
Reference in New Issue
Block a user