Skip to content

Commit 3c84493

Browse files
committed
Added JS mode indentation.
1 parent 0cca19e commit 3c84493

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drupal-mode.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,10 @@ function arguments.")
282282
(when (derived-mode-p 'css-mode)
283283
(set (make-local-variable 'css-indent-level) 2)))
284284

285+
;; Stuff special for js-mode buffers.
286+
(when (apply 'derived-mode-p drupal-js-modes)
287+
(set (make-local-variable 'js-indent-level) 2))
288+
285289
;; Stuff special for php-mode buffers.
286290
(when (apply 'derived-mode-p drupal-php-modes)
287291
;; Show function arguments from GNU GLOBAL for function at point

0 commit comments

Comments
 (0)