Skip to content

Commit 4a19a80

Browse files
committed
Merge pull request remvee#41 from hadenpike/master
If set, use the ANDROID_HOME environment variable for android-mode-sdk-dir.
2 parents 22f273b + c84c42e commit 4a19a80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

android-mode.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
;; Habibullah Pagarkar
1818
;; Hiroo Matsumoto
1919
;; K. Adam Christensen
20+
;; Haden Pike
2021

2122
;; This program is free software; you can redistribute it and/or
2223
;; modify it under the terms of the GNU General Public License
@@ -53,7 +54,8 @@
5354
:prefix "android-mode-"
5455
:group 'applications)
5556

56-
(defcustom android-mode-sdk-dir "~/Android/sdk"
57+
(defcustom android-mode-sdk-dir
58+
(or (getenv "ANDROID_HOME") "~/Android/sdk")
5759
"Set to the directory containing the Android SDK."
5860
:type 'string
5961
:group 'android-mode)

0 commit comments

Comments
 (0)