Skip to content

Commit

Permalink
Change indentation of switch blocks in javascript
Browse files Browse the repository at this point in the history
There seems to be some disagreements on this issue. For example here:
beautifier/js-beautify#15. I think having
it this way seem nicer.
  • Loading branch information
SimenHolmestad committed Feb 20, 2020
1 parent 9a81779 commit 5c8b526
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.org
Expand Up @@ -499,7 +499,8 @@ RJSX-mode for javascript and jsx syntax highlighting and such.
#+begin_src emacs-lisp
(use-package rjsx-mode
:config
(add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode)))
(add-to-list 'auto-mode-alist '("\\.js\\'" . rjsx-mode))
(setq js-switch-indent-offset 2))
#+end_src

Indent with two spaces instead of four.
Expand Down

0 comments on commit 5c8b526

Please sign in to comment.