java/android mode in init.el

This commit is contained in:
Ivan Malison 2015-01-28 16:59:40 -08:00
parent 854fe9fba0
commit 003cb3c7b2

View File

@ -1416,6 +1416,22 @@ window is active in the perspective."
("\\.sc\\'" . scala-mode))
:ensure t)
;; =============================================================================
;; Java
;; =============================================================================
(add-hook 'java-mode-hook (lambda ()
(setq c-basic-offset 4
tab-width 4
indent-tabs-mode t)))
(use-package android-mode
:ensure t
:config
(progn
(setq android-mode-sdk-dir
(s-trim (shell-command-to-string "android_sdk_directory")))))
;; =============================================================================
;; JavaScript
;; =============================================================================