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-twig/oni-twig.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'oni-twig/oni-twig.el') diff --git a/oni-twig/oni-twig.el b/oni-twig/oni-twig.el index 0dbdbdc..ed147bf 100644 --- a/oni-twig/oni-twig.el +++ b/oni-twig/oni-twig.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2019.1210.230023 +;; Version: 2021.1201.134109 ;; Package-Requires: (twig-mode oni-yasnippet) ;; This program is free software; you can redistribute it and/or modify @@ -38,7 +38,6 @@ (expand-file-name "snippets" oni-twig-root) "The directory where ‘oni-twig’ stores its snippets.") -;;;###autoload (defun oni-twig-snippets-initialize () "Initialize the snippets for ‘oni-twig’." (when (boundp 'yas-snippet-dirs) @@ -52,7 +51,6 @@ (add-hook 'twig-mode-hook 'oni-twig--auto-fill-mode) -;;;###autoload (with-eval-after-load 'twig-mode (with-eval-after-load 'yasnippet (oni-twig-snippets-initialize))) -- cgit v1.2.3-54-g00ecf