Skip to content

Commit

Permalink
Indent only two spaces in Java files.
Browse files Browse the repository at this point in the history
  • Loading branch information
candera committed Jul 31, 2017
1 parent 7550d4e commit 37b305b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1916,6 +1916,16 @@ remain indented by four spaces after refilling."
(add-hook 'csharp-mode-hook
(lambda ()
(linum-mode 1)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; java-mode
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 2
tab-width 2
indent-tabs-mode nil)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
Expand Down

0 comments on commit 37b305b

Please sign in to comment.