aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-11-23 00:38:09 -0800
committerGravatar Tom Willemse2021-11-23 00:38:09 -0800
commitcfa0179053def7e0651e84fdbeddf80af0b6cfae (patch)
treee1499fa24652883e3d3be74bc930f541a8c15d64 /oni-php
parent9a7c7e0673c12319b91511efdca8943a76bb9480 (diff)
downloademacs-config-cfa0179053def7e0651e84fdbeddf80af0b6cfae.tar.gz
emacs-config-cfa0179053def7e0651e84fdbeddf80af0b6cfae.zip
Remove all self-loading autoload cookies
The big downside of usuing these cookies to inject my configuration into the loading of a package is that it means that I can't load that package without my configuration anymore. This means that when I start ‘emacs -Q’ and then call ‘package-initialize’ it'll load my configuration as well. This makes debugging things very difficult.
Diffstat (limited to 'oni-php')
-rw-r--r--oni-php/oni-php.el15
1 files changed, 10 insertions, 5 deletions
diff --git a/oni-php/oni-php.el b/oni-php/oni-php.el
index f509e3d..82b1051 100644
--- a/oni-php/oni-php.el
+++ b/oni-php/oni-php.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2021.0622.221244
+;; Version: 2021.1123.003007
;; 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
@@ -123,10 +123,15 @@ nil for some reason."
(with-eval-after-load 'yasnippet
(oni-php-snippets-initialize)))
-;;;###autoload(with-eval-after-load 'php-mode (require 'oni-php))
-;;;###autoload(add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode))
-;;;###autoload(add-to-list 'auto-mode-alist '("\\.module\\'" . php-mode))
-;;;###autoload(with-eval-after-load 'grep (add-to-list 'grep-files-aliases '("php" . "*.php *.inc *.module")))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.inc\\'" . php-mode))
+
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.module\\'" . php-mode))
+
+;;;###autoload
+(with-eval-after-load 'grep
+ (add-to-list 'grep-files-aliases '("php" . "*.php *.inc *.module")))
(provide 'oni-php)
;;; oni-php.el ends here