Browse Source

disable yas-reload-all at work, because bug

master
Marc Pohling 6 years ago
parent
commit
01e647112b
1 changed files with 15 additions and 11 deletions
  1. 26
      config.org

26
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? TODO: yas-minor-mode? what's that?
#+BEGIN_SRC emacs-lisp #+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 #+END_SRC
#+RESULTS:
** Lisp ** Lisp
Not sure about this one, but dynamic binding gets some bad vibes. Not sure about this one, but dynamic binding gets some bad vibes.

Loading…
Cancel
Save