From 8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 1 Dec 2021 13:43:21 -0800 Subject: Remove autoloads for snippet loading Loading ‘yasnippet’ shouldn't automatically load my package configuration. If my package configuration hasn't been loaded it shouldn't try to include my snippets. --- oni-php/oni-php.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'oni-php') diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el index 82b1051..7a4e554 100644 --- a/oni-php/oni-php.el +++ b/oni-php/oni-php.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.1123.003007 +;; Version: 2021.1201.134011 ;; Package-Requires: (php-mode oni-yasnippet oni-flycheck oni-company oni-hydra ggtags fic-mode company-php) ;; This program is free software; you can redistribute it and/or modify @@ -44,7 +44,6 @@ (expand-file-name "snippets" oni-php-root) "The directory where ‘oni-php’ stores its snippets.") -;;;###autoload (defun oni-php-snippets-initialize () "Initialize the snippets for ‘oni-php’." (when (boundp 'yas-snippet-dirs) @@ -118,7 +117,6 @@ nil for some reason." (modes . '(php-mode web-mode)) (repeat . t))) -;;;###autoload (with-eval-after-load 'php-mode (with-eval-after-load 'yasnippet (oni-php-snippets-initialize))) -- cgit v1.2.3-54-g00ecf