dot-emacs: Turn on gtags mode in general.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 Feb 2009 17:11:20 +0000 (17:11 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 26 Feb 2009 17:11:20 +0000 (17:11 +0000)
But turn off the stupid mouse bindings, which interfere with X11 pasting.

dot-emacs.el

index f338fc3..d24b364 100644 (file)
@@ -576,9 +576,15 @@ doesn't cope with anything approximating a complicated case."
   (auto-fill-mode 1)
   (setq fill-column 77)
   (setq show-trailing-whitespace t)
+  (and (fboundp 'gtags-mode)
+       (gtags-mode))
   (outline-minor-mode t)
   (mdw-set-font))
 
+(eval-after-load 'gtags
+  '(dolist (key '([mouse-2] [mouse-3]))
+     (define-key gtags-mode-map key nil)))
+
 ;; --- Set up all sorts of faces ---
 
 (defvar mdw-set-font nil)