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."
115
115
:type '(alist :key-type regexp :value-type function)
116
116
:link '(url-link :tag " web-mode" " http://web-mode.org/" )
117
117
: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 )
118
124
119
125
; ;; PHP Keywords
120
126
(defconst php-magical-constants
@@ -274,6 +280,7 @@ Look at the `php-executable' variable instead of the constant \"php\" command."
274
280
(defun php-mode-maybe ()
275
281
" Select PHP mode or other major mode."
276
282
(interactive )
283
+ (run-hooks php-mode-maybe-hook)
277
284
(funcall (php-derivation-major-mode)))
278
285
279
286
;;;### autoload
You can’t perform that action at this time.
0 commit comments