Skip to content

Commit

Permalink
Handle case where c-default-style is a string
Browse files Browse the repository at this point in the history
Fixes #73.
  • Loading branch information
arnested committed Aug 21, 2016
1 parent 2ed0a81 commit 947b893
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drupal-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,12 @@ According to https://drupal.org/coding-standards#indenting."
:group 'drupal)

(c-add-style "drupal" drupal-style)
(add-to-list 'c-default-style '(drupal-mode . "drupal"))

(if (and
(boundp 'c-default-style)
(stringp c-default-style))
(setq c-default-style `((drupal-mode . "drupal") (other . ,c-default-style)))
(add-to-list 'c-default-style '(drupal-mode . "drupal")))



Expand Down

0 comments on commit 947b893

Please sign in to comment.