branch: elpa/go-mode
commit d9f0beeba5092353e838fa57102ba1c9fc35b6f0
Author: Viacheslav Chimishuk <[email protected]>
Commit: Dominik Honnef <[email protected]>

    add variable to customize godef command
---
 AUTHORS    | 1 +
 go-mode.el | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/AUTHORS b/AUTHORS
index c7462f2..37c8d16 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -23,4 +23,5 @@ Ryan Barrett <[email protected]>
 Sameer Ajmani <[email protected]>
 Scott Lawrence <[email protected]>
 Steven Elliot Harris <[email protected]>
+Viacheslav Chimishuk <[email protected]>
 Yasuyuki Oka <[email protected]>
diff --git a/go-mode.el b/go-mode.el
index bf840b4..09408a8 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -204,6 +204,11 @@ a before-save-hook."
           (const :tag "None" nil))
   :group 'go)
 
+(defcustom godef-command "godef"
+  "The 'godef' command."
+  :type 'string
+  :group 'go)
+
 (defcustom go-other-file-alist
   '(("_test\\.go\\'" (".go"))
     ("\\.go\\'" ("_test.go")))
@@ -1321,7 +1326,7 @@ description at POINT."
         (erase-buffer))
       (call-process-region (point-min)
                            (point-max)
-                           "godef"
+                           godef-command
                            nil
                            outbuf
                            nil

Reply via email to