From cfa0179053def7e0651e84fdbeddf80af0b6cfae Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 23 Nov 2021 00:38:09 -0800 Subject: 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. --- oni-php/oni-php.el | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'oni-php') 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 ;; 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 -- cgit v1.2.3-54-g00ecf