use 2 spaces in javascript and json modes

This commit is contained in:
ndwarshuis 2019-05-20 14:57:23 -04:00
parent 7513c18c06
commit 27b27d4f5f
1 changed files with 12 additions and 6 deletions

View File

@ -950,17 +950,23 @@ Overlays hex color codes with matching colors in certain modes like css and html
(use-package rainbow-mode (use-package rainbow-mode
:straight t) :straight t)
#+END_SRC #+END_SRC
*** JSON *** Javascript
**** tabs
An exception to the rule
#+BEGIN_SRC emacs-lisp
(setq js-indent-level 2)
#+END_SRC
**** inferior mode
#+BEGIN_SRC emacs-lisp
(use-package js-comint
:straight t)
#+END_SRC
**** JSON
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package json-mode (use-package json-mode
:straight t :straight t
:hook (json-mode . origami-mode)) :hook (json-mode . origami-mode))
#+END_SRC #+END_SRC
*** Javascript
#+BEGIN_SRC emacs-lisp
(use-package js-comint
:straight t)
#+END_SRC
*** markdown *** markdown
Make font sizes smaller and less intrusive for headers Make font sizes smaller and less intrusive for headers
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp