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.
This commit is contained in:
parent
782ac09408
commit
3905db08ab
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue