emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 246/255: customizable default gnugo options


From: Eric Schulte
Subject: [elpa] 246/255: customizable default gnugo options
Date: Sun, 16 Mar 2014 01:02:57 +0000

eschulte pushed a commit to branch go
in repository elpa.

commit bb9886d462097244efe0574ccf5d999c393c9754
Author: Eric Schulte <address@hidden>
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))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]