Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

automagically switch on android-mode when opening a file/dir in andro…

…id project directory
  • Loading branch information...
commit e3aefda8a8d6e72277d8e1d52b13b1ade4edc3fb 1 parent 37c3c8e
@remvee remvee authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 android-mode.el
View
8 android-mode.el
@@ -75,9 +75,9 @@
"Android application development minor mode."
nil
" Android"
- '(("\C-c\C-x" . android-compile-reinstall))
- :global t
- :group 'android
- :version "0.0")
+ '(("\C-c\C-x" . android-compile-reinstall)))
+
+(add-hook 'dired-mode-hook (lambda () (when (android-root) (android-mode t))))
+(add-hook 'find-file-hooks (lambda () (when (android-root) (android-mode t))))
(provide 'android-mode)
Please sign in to comment.
Something went wrong with that request. Please try again.