I'm replacing a buggy code that was suppose to show a matching brace in the minibuffer in case it was off-screen with the following:
(paren-activate) ;; activates mic-paren (setq paren-match-face 'highlight) (setq paren-sexp-mode t) (setq paren-highlight-offscreen t)
This works almost perfectly. The only problem, it highlights the matching braces also in the minibuffer when ido shows its thing.
How can I disable mic-paren in the minibuffer?
For reference, here is the old code snippet:
(show-paren-mode t) (setq show-paren-style 'expression) ;; Show in the mini-buffer the matching brace in case it is off screen. (defadvice show-paren-function (after show-matching-paren-offscreen activate) "If the matching paren is offscreen, show the matching line in the echo area. Has no effect if the character before point is not of the syntax class ')'." (interactive) (if (not (minibuffer-prompt)) (let ((matching-text nil)) ;; Only call `blink-matching-open' if the character before point ;; is a close parentheses type character. Otherwise, there's not ;; really any point, and `blink-matching-open' would just echo ;; "Mismatched parentheses", which gets really annoying. (if (char-equal (char-syntax (char-before (point))) ?\)) (setq matching-text (blink-matching-open))) (if (not (null matching-text)) (message matching-text)))))