From 01e647112b3c574f3d66e6b4a0ffa5879a7f09fa Mon Sep 17 00:00:00 2001 From: Marc Pohling Date: Mon, 30 Jul 2018 10:49:58 +0200 Subject: [PATCH] disable yas-reload-all at work, because bug --- config.org | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) 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.