aboutsummaryrefslogtreecommitdiffstats
path: root/oni-python/oni-python.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-12-01 13:43:21 -0800
committerGravatar Tom Willemse2021-12-01 13:43:21 -0800
commit8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6 (patch)
treefac47da6c4145a4cddc9089ef29fae0cf168f510 /oni-python/oni-python.el
parente1aecd6f63bf518564cbc6ff9e365c2958dd5cbe (diff)
downloademacs-config-8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6.tar.gz
emacs-config-8af6f8d1604272a4e2d13a2981f02b6dd6e84bd6.zip
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.
Diffstat (limited to 'oni-python/oni-python.el')
-rw-r--r--oni-python/oni-python.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/oni-python/oni-python.el b/oni-python/oni-python.el
index 6e6f89b..bf46632 100644
--- a/oni-python/oni-python.el
+++ b/oni-python/oni-python.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.1123.003606
+;; Version: 2021.1201.134230
;; Package-Requires: (oni-yasnippet oni-company oni-flycheck oni-hydra oni-lsp rainbow-delimiters reformatter traad)
;; This program is free software; you can redistribute it and/or modify
@@ -61,7 +61,6 @@ The values are taken from the PEP8 coding standard for Python."
(setq-local fill-column 80)
(setq-local comment-fill-column 72))
-;;;###autoload
(defun oni-python-snippets-initialize ()
"Initialize the snippets for ‘oni-python’."
(when (boundp 'yas-snippet-dirs)
@@ -98,7 +97,6 @@ for indentation."
(add-hook 'python-mode-hook 'python-black-on-save-mode)
(add-hook 'python-mode-hook 'rainbow-delimiters-mode)
-;;;###autoload
(with-eval-after-load 'python
(with-eval-after-load 'yasnippet
(oni-python-snippets-initialize)))