mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Set stupid indenting in javascript
This commit is contained in:
parent
acba9c110c
commit
d63b6adffb
1 changed files with 3 additions and 3 deletions
6
.emacs
6
.emacs
|
|
@ -104,9 +104,9 @@
|
||||||
(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
|
(add-to-list 'auto-mode-alist '("\\.json$" . js-mode))
|
||||||
|
|
||||||
(setq js2-missing-semi-one-line-override t)
|
(setq js2-missing-semi-one-line-override t)
|
||||||
(setq js2-basic-offset 2) ; 2 spaces for indentation (if you prefer 2 spaces instead of default 4 spaces for tab)
|
(setq js-indent-level 2)
|
||||||
(setq c-default-style "linux"
|
(setq js2-basic-offset 1) ; 2 spaces for indentation (if you prefer 2 spaces instead of default 4 spaces for tab)
|
||||||
c-basic-offset 2)
|
(setq c-basic-offset 2)
|
||||||
|
|
||||||
;; add from jslint global variable declarations to js2-mode globals list
|
;; add from jslint global variable declarations to js2-mode globals list
|
||||||
;; modified from one in http://www.emacswiki.org/emacs/Js2Mode
|
;; modified from one in http://www.emacswiki.org/emacs/Js2Mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue