eschulte pushed a commit to branch go
in repository elpa.
commit bb9886d462097244efe0574ccf5d999c393c9754
Author: Eric Schulte <[email protected]>
Date: Fri Aug 23 15:44:18 2013 -0600
customizable default gnugo options
---
back-ends/gnugo.el | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/back-ends/gnugo.el b/back-ends/gnugo.el
index 8d1b9d2..0c909e4 100644
--- a/back-ends/gnugo.el
+++ b/back-ends/gnugo.el
@@ -41,6 +41,11 @@
(defvar gnugo-program "gnugo"
"Path to gnugo executable.")
+(defvar gnugo-options nil
+ "List of default options to gnugo.
+For example, the following changes the level of gnugo.
+ (setq gnugo-options (list \"--level\" \"2\"))")
+
(defvar gnugo-process-name "gnugo"
"Name for the gnugo process.")
@@ -49,7 +54,7 @@
gnugo-process-name
gnugo-program nil
"--mode" "gtp" "--quiet"
- options)))
+ (or options gnugo-options))))
(with-current-buffer buffer (comint-mode))
buffer))