Skip to content

Commit 947b893

Browse files
committed
Handle case where c-default-style is a string
Fixes #73.
1 parent 2ed0a81 commit 947b893

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

drupal-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,12 @@ According to https://drupal.org/coding-standards#indenting."
347347
:group 'drupal)
348348

349349
(c-add-style "drupal" drupal-style)
350-
(add-to-list 'c-default-style '(drupal-mode . "drupal"))
350+
351+
(if (and
352+
(boundp 'c-default-style)
353+
(stringp c-default-style))
354+
(setq c-default-style `((drupal-mode . "drupal") (other . ,c-default-style)))
355+
(add-to-list 'c-default-style '(drupal-mode . "drupal")))
351356

352357

353358

0 commit comments

Comments
 (0)