java/android mode in init.el
This commit is contained in:
parent
854fe9fba0
commit
003cb3c7b2
@ -1416,6 +1416,22 @@ window is active in the perspective."
|
|||||||
("\\.sc\\'" . scala-mode))
|
("\\.sc\\'" . scala-mode))
|
||||||
:ensure t)
|
: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
|
;; JavaScript
|
||||||
;; =============================================================================
|
;; =============================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user