]> git.eshelyaron.com Git - emacs.git/commitdiff
Allow disabling viper faces in the minibuffer
authorandrés ramírez <rrandresf@hotmail.com>
Mon, 13 Feb 2023 15:02:52 +0000 (15:02 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 18 Feb 2023 16:58:47 +0000 (18:58 +0200)
* lisp/emulation/viper-cmd.el (viper-enable-minibuffer-faces): New
defcustom.
(viper-set-mode-vars-for): Use it to decide whether to use
distinct faces in the minibuffer.  (Bug#61432)

Copyright-paperwork-exempt: yes

lisp/emulation/viper-cmd.el

index 0eb58565b375dfbfeda5c90573413a0857057fe3..8cf81c33b5be28059b8567ef3ec912d7bd6ab2d9 100644 (file)
 \f
 ;; Viper mode-changing commands and utilities
 
+(defcustom viper-enable-minibuffer-faces t
+  "If non-nil, viper uses distinct faces in the minibuffer."
+  :type 'boolean
+  :version "30.1"
+  :group 'viper-misc)
+
 ;; Modifies mode-line-buffer-identification.
 (defun viper-refresh-mode-line ()
   (setq-local viper-mode-string
        ))
 
   ;; minibuffer faces
-  (if (viper-has-face-support-p)
+  (if (and (viper-has-face-support-p) viper-enable-minibuffer-faces)
       (setq viper-minibuffer-current-face
            (cond ((eq state 'emacs-state) viper-minibuffer-emacs-face)
                  ((eq state 'vi-state) viper-minibuffer-vi-face)