Previous: Corner Matcher, Up: Patterns


9.19 Emacs Mode for Editing Patterns

If you use GNU Emacs (XEmacs might work too), you can try a special mode for editing GNU Go pattern databases. The mode resides in patterns/gnugo-db.el.

Copy the file to emacs/site-lisp directory. You can then load the mode with (require 'gnugo-db). It makes sense to put this line into your configuration file (~/.emacs). You can either use gnugo-db-mode command to switch to pattern editing mode, or use the following code snippet to make Emacs do this automatically upon opening a file with .db suffix:

     	(setq auto-mode-alist
     	      (append
     	       auto-mode-alist
     	       '(("\\.db\\'" . gnugo-db-mode))))

Pattern editing mode provides the following features: