Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can apply the following patch to <a href="http://www.emacswiki.org/emacs/download/mic-paren.el" rel="nofollow noreferrer">mic-paren</a> (follow link for latest version, 3.8) to get what you want. Customize the newly created face <code>paren-face-quoted-match</code> which is glaringly set up to have a green foreground and orange background for testing purposes.</p> <p>Now when you're next to a matched set of parenthesis preceded by a single open quote <kbd>`</kbd>, you'll get the quoted face. This example uses an orange background and green foreground - most likely colors you'll want to change.</p> <p>Here's a picture of it in action: <a href="http://img262.imageshack.us/img262/8866/quoted.png" rel="nofollow noreferrer">alt text http://img262.imageshack.us/img262/8866/quoted.png</a></p> <pre><code>--- orig-mic-paren.el 2009-11-11 17:02:42.000000000 -0800 +++ mic-paren.el 2009-11-11 17:05:35.306263000 -0800 @@ -561,4 +561,16 @@ :group 'mic-paren-matching) +(defface paren-face-quoted-match + '((((class color)) (:foreground "green" :background "orange")) + (t (:reverse-video t))) + "" + :group 'faces + :group 'mic-paren-matching) + +(defcustom paren-quoted-match-face 'paren-face-quoted-match + "Mic-paren face used for a quoted paren" + :type 'face + :group 'mic-paren-matching) + ;;; End of User Options ;;; ====================================================================== @@ -1052,5 +1064,9 @@ face (if mismatch paren-mismatch-face - paren-match-face) + (save-excursion + (if (progn (goto-char (- (min (point) opos) 1)) + (looking-at "`")) + paren-quoted-match-face + paren-match-face))) visible (when (pos-visible-in-window-p opos) (save-excursion </code></pre> <p>To apply the patch, cut/paste the patch chunk to a file named mic.patch, and run the following:</p> <pre><code>patch mic-paren.el mic.patch </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload