diff --git a/config.org b/config.org index 26ac075..57a518a 100644 --- a/config.org +++ b/config.org @@ -1455,18 +1455,22 @@ Maybe add [[https://github.com/hlissner/emacs-company-dict][company-dict]]? It's TODO: yas-minor-mode? what's that? #+BEGIN_SRC emacs-lisp - (use-package yasnippet - :ensure t - :defer t - :diminish yas-minor-mode - :init - (yas-global-mode t) - (setq yas-snippet-dirs (concat PATH_USER_GLOBAL "snippets")) - :mode ("\\.yasnippet" . snippet-mode) - :config - (yas-reload-all) ;; ensure snippets are updated and available, necessary when not using global-mode - ) +(use-package yasnippet + :ensure t + :defer t + :diminish yas-minor-mode + :init + (yas-global-mode t) + (setq yas-snippet-dirs (concat PATH_USER_GLOBAL "snippets")) + :mode ("\\.yasnippet" . snippet-mode) + :config + (unless (string-equal my/whoami "work_remote") ; very hacky, but yas-reload-all throws a wrongp error at work + (yas-reload-all)) ;; ensure snippets are updated and available, necessary when not using global-mode +) #+END_SRC + +#+RESULTS: + ** Lisp Not sure about this one, but dynamic binding gets some bad vibes.