|
From: | Juri Linkov |
Subject: | Re: [External] : Re: Indicate better the current use of the echo area / minibuffer [was: Controlling Isearch from minibuffer] |
Date: | Fri, 14 May 2021 21:16:21 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> For Isearch I am using a separate indicator in the mode line: > > ~~~ > (defvar isearch-indicator > (concat (propertize "Isearch" 'face 'isearch))) > (add-hook 'isearch-mode-hook > (lambda () > (push isearch-indicator mode-line-misc-info))) > (add-hook 'isearch-mode-end-hook > (lambda () > (setq mode-line-misc-info > (delq isearch-indicator mode-line-misc-info)))) > ~~~ This displays two isearch indicators. Wouldn't it be simpler to modify the existing indicator: #+begin_src emacs-lisp (add-hook 'isearch-mode-hook (lambda () (put 'isearch-mode 'risky-local-variable t) (setq isearch-mode (propertize " Isearch" 'face 'isearch)))) #+end_src
[Prev in Thread] | Current Thread | [Next in Thread] |