From 3905db08ab1714f154a8f1a313db5da7ed06b2f7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 27 Feb 2019 22:46:23 -0800 Subject: [PATCH] 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. --- oni-yasnippet.el | 4 ++-- 1 file 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 ;; 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