[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reftex -> mouse-1 on TOC entries
From: |
Chong Yidong |
Subject: |
Re: Reftex -> mouse-1 on TOC entries |
Date: |
Fri, 25 Nov 2005 17:46:46 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
David Reitter <david.reitter@gmail.com> writes:
> When showing the RefTeX table of contents, I can select a heading to
> jump to.
> Unfortunately, I don't have a mouse-2 button, and I'm used to jumping
> to links with mouse-1.
>
> I have set mouse-1-follows-link to t. Shouldn't the RefTeX table
> respect that?
>
> Is there a customization that allows me to set something like the
> above option in RefTeX?
Try applying this patch, and setting `reftex-highlight-selection' to
`both'.
*** emacs/lisp/textmodes/reftex-toc.el.~1.30.~ 2005-09-21 22:24:28.000000000
-0400
--- emacs/lisp/textmodes/reftex-toc.el 2005-11-25 17:37:08.000000000 -0500
***************
*** 1012,1017 ****
--- 1012,1019 ----
(define-key reftex-toc-map (if (featurep 'xemacs) [(button2)] [(mouse-2)])
'reftex-toc-mouse-goto-line-and-hide)
+ (define-key reftex-toc-map [follow-link] 'mouse-face)
+
(substitute-key-definition
'next-line 'reftex-toc-next reftex-toc-map global-map)
(substitute-key-definition