File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,12 @@ You can replace \"en\" with your ISO language code."
115115 :type '(alist :key-type regexp :value-type function)
116116 :link '(url-link :tag " web-mode" " http://web-mode.org/" )
117117 :link '(url-link :tag " phpt-mode" " https://github.com/emacs-php/phpt-mode" ))
118+
119+ (defcustom php-mode-maybe-hook nil
120+ " List of functions to be executed on entry to `php-mode-maybe' ."
121+ :group 'php
122+ :tag " PHP Mode Maybe Hook"
123+ :type 'hook )
118124
119125; ;; PHP Keywords
120126(defconst php-magical-constants
@@ -274,6 +280,7 @@ Look at the `php-executable' variable instead of the constant \"php\" command."
274280(defun php-mode-maybe ()
275281 " Select PHP mode or other major mode."
276282 (interactive )
283+ (run-hooks php-mode-maybe-hook)
277284 (funcall (php-derivation-major-mode)))
278285
279286;;;### autoload
You can’t perform that action at this time.
0 commit comments