aboutsummaryrefslogtreecommitdiffstats
path: root/oni-yasnippet.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-02-27 22:46:23 -0800
committerGravatar Tom Willemse2019-02-27 22:46:23 -0800
commit3905db08ab1714f154a8f1a313db5da7ed06b2f7 (patch)
tree48492e836356336220163eaa9f6a8e57bf5e95c1 /oni-yasnippet.el
parent782ac09408a367f70be18fc42f7e5d9b754c2a0e (diff)
downloademacs-config-3905db08ab1714f154a8f1a313db5da7ed06b2f7.tar.gz
emacs-config-3905db08ab1714f154a8f1a313db5da7ed06b2f7.zip
Fix loading of oni-yasnippet
By delaying the function call to `yas-global-mode' until Emacs has finished starting up, it won't try to load the diminish package before its autoloads file has been read.
Diffstat (limited to 'oni-yasnippet.el')
-rw-r--r--oni-yasnippet.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/oni-yasnippet.el b/oni-yasnippet.el
index c314823..23fa21f 100644
--- a/oni-yasnippet.el
+++ b/oni-yasnippet.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190226231908
+;; Version: 20190227224145
;; Package-Require: (yasnippet yasnippet-snippets diminish)
;; This program is free software; you can redistribute it and/or modify
@@ -37,7 +37,7 @@
;;;###autoload(with-eval-after-load 'yasnippet (require 'oni-yasnippet))
;;;###autoload
-(yas-global-mode)
+(add-hook 'emacs-startup-hook 'yas-global-mode)
(provide 'oni-yasnippet)
;;; oni-yasnippet.el ends here