S5T54QCKBJYU6WEIJ4YIROHVFD7JGQH5LNB33MKPCLXKN3JJ2SRQC
;; add snippet dirs not in VCS to yas-snippet-dirs
(progn
(setq
yas-snippet-dirs
(append yas-snippet-dirs
(seq-filter
'file-directory-p
'("~/Google Drive File Stream/My Drive/config_backups/snippets"
"~/Library/Mobile Documents/com~apple~CloudDocs/config_backups/snippets"))))
;; TODO: could this be moved somewhere earlier in the init process
;; so that we don't have to call `yas-reload-all`?
(yas-reload-all)))
;; add snippet dirs not in VCS to yas-snippet-dirs
(let ((root-dir (getenv "HOME")))
(mapc
(lambda (path)
(when (file-directory-p path)
(setq yas-snippet-dirs
(append
yas-snippet-dirs
(concat root-dir "/" path)))))
'("Google Drive File Stream/My Drive/config_backups/snippets"
"Library/Mobile Documents/com~apple~CloudDocs/config_backups/snippets"))))
(defun personal-layer/post-init-yassnippet-snippets ()
"Configure yasnippet-snippets."
(append yas-snippet-dirs yassnippet-snippets-dir))