Skip to content

Commit 541a0c0

Browse files
committed
Fix c-basic-offset, indent-tabs-mode, and more
php-mode is no longer based on c-mode, but php-base-mode (see emacs-php/php-mode#772). This prevented the drupal style to be used.
1 parent 1792772 commit 541a0c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drupal-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ function arguments.")
310310
(setq comment-end "")
311311

312312
;; Setup cc-mode style stuff.
313-
(when (derived-mode-p 'c-mode)
313+
(when (or (derived-mode-p 'php-base-mode) (derived-mode-p 'c-mode))
314314
(c-add-language 'drupal-mode 'c-mode)
315315
(c-set-style "drupal"))
316316

0 commit comments

Comments
 (0)