Yet another big update

This commit is contained in:
Henrik Lissner 2015-05-08 03:03:38 -04:00
parent a8f32547a3
commit c6862d1489
27 changed files with 474 additions and 355 deletions

View file

@ -1,7 +1,7 @@
(defun my-java-project-package ()
(if (eq major-mode 'java-mode)
(s-chop-suffix "." (s-replace "/" "." (f-dirname (f-relative (buffer-file-name)
(concat (my--project-root) "src/")))))
(concat (project-root) "src/")))))
""))
(defun my-java-class-name ()
@ -37,7 +37,7 @@
:defer t
:init
(add-hook! 'java-mode-hook
(when (f-exists? (concat (my--project-root) "AndroidManifest.xml"))
(when (project-has-files "AndroidManifest.xml")
(android-mode +1))))
(use-package groovy-mode :mode "\\.gradle$")