From: andrés ramírez Date: Mon, 13 Feb 2023 15:02:52 +0000 (+0000) Subject: Allow disabling viper faces in the minibuffer X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3502b922821fd100fb86b8cda6a0a62fba7d394;p=emacs.git Allow disabling viper faces in the minibuffer * 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 --- diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index 0eb58565b37..8cf81c33b5b 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el @@ -466,6 +466,12 @@ ;; 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 @@ -561,7 +567,7 @@ )) ;; 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)