Is there a way to turn highlight-paren-mode on unconditionally, like
(show-paren-mode t)? toggle-highlight-paren-mode only toggles
Well, "M-x toggle-highlight-paren-mode" says "Show Paren mode disabled"Quote:> Is there a way to turn highlight-paren-mode on unconditionally, like
> (show-paren-mode t)? toggle-highlight-paren-mode only toggles
> (surprise) it.
Setting show-paren-mode and not toggle-highlight-paren-mode has the
cursor move to the opening parenthesis when the closing parenthesis is
Setting show-paren-mode and toggle-highlight-paren-mode has the
opening parenthesis highlight when the closing parenthesis is
Setting either show-paren-mode or toggle-highlight-paren-mode is
necessary but not sufficient for parentheses to be highlighted, both
must be set at the same time.
As you note, you can unconditionally turn on show-paren-mode. I've
not found a way to unconditionally turn on highlight-paren-mode yet.
Thank you anyway.
toggle-highlight-paren-mode is defined in menu-bar.el
To make a long story short, its definition is essentially
(defun toggle-highlight-paren-mode nil
(setq show-paren-mode (not show-paren-mode))
(setq show-paren-mode nil) ;; or t
should do the trick.
Hope this time it is ok !
is there a way to highlight _both_ matching parenthesis
(not the sexp) under XEmacs 21.0?
This is the behavior
of GNU-Emacs 20.x, but its paren.el unfortunately won't
run on XEmacs.