Skip to content

Commit 3a4447e

Browse files
committed
Set tab widths for elixir files to the basic offset.
1 parent 11c077f commit 3a4447e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

elixir-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@
319319
(setq mode-name "Elixir")
320320
(set (make-local-variable 'comment-start) "# ")
321321
(set (make-local-variable 'comment-end) "")
322+
(set (make-variable-buffer-local 'tab-width) elixir-basic-offset)
323+
(set (make-variable-buffer-local 'default-tab-width) elixir-basic-offset)
322324
(smie-setup elixir-smie-grammar 'verbose-elixir-smie-rules ; 'elixir-smie-rules
323325
:forward-token 'elixir-smie-forward-token
324326
:backward-token 'elixir-smie-backward-token)

0 commit comments

Comments
 (0)