|
From: | Alin Soare |
Subject: | Re: Incremental search with face-remapping-alist does not always work |
Date: | Sun, 8 Dec 2013 08:39:16 +0200 |
I tried to configure the faces of isearch-mode, given that for each major mode I defined a face-remapping-alist.Here is my problem:
1. take the code below.2. After evaluation, isearch seems to work nice.3. Goto into the *Info* buffer.4. Search the string from the title. (a string from a positon with Info-title-1 face)5. PROBLEM: the string of the title will get very small, and will change the font.6. QUESTION: How can this be avoided, and the expected behaviour be accomplished ?(defun isearch-setup ()(setq-locallazy-highlight-face(face-remap-add-relative 'lazy-highlight '(:foreground "red") 'default))(setq-localisearch-face(face-remap-add-relative 'isearch '(:strike-through "white") 'default)))(defun isearch-exit ()(face-remap-remove-relative lazy-highlight-face)(face-remap-remove-relative isearch-face)(with-current-buffer (get-buffer " *Echo Area 0*")(face-remap-remove-relative echo-area-isearch-fail-face))(with-current-buffer (get-buffer " *Echo Area 1*")(face-remap-remove-relative echo-area-isearch-fail-face)))(add-hook 'isearch-mode-hook 'isearch-setup)(add-hook 'isearch-mode-end-hook 'isearch-exit)
[Prev in Thread] | Current Thread | [Next in Thread] |