emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/drupal-mode 541a0c014a 05/11: Fix c-basic-offset, indent-t


From: ELPA Syncer
Subject: [nongnu] elpa/drupal-mode 541a0c014a 05/11: Fix c-basic-offset, indent-tabs-mode, and more
Date: Fri, 16 Aug 2024 10:00:05 -0400 (EDT)

branch: elpa/drupal-mode
commit 541a0c014aa1860855df5a8457192d7d9032daa1
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>

    Fix c-basic-offset, indent-tabs-mode, and more
    
    php-mode is no longer based on c-mode, but php-base-mode (see
    https://github.com/emacs-php/php-mode/pull/772).
    
    This prevented the drupal style to be used.
---
 drupal-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drupal-mode.el b/drupal-mode.el
index 07d91a9c12..83cb184d08 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -310,7 +310,7 @@ function arguments.")
     (setq comment-end "")
 
     ;; Setup cc-mode style stuff.
-    (when (derived-mode-p 'c-mode)
+    (when (or (derived-mode-p 'php-base-mode) (derived-mode-p 'c-mode))
       (c-add-language 'drupal-mode 'c-mode)
       (c-set-style "drupal"))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]