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
This commit is contained in:
parent
97f24924df
commit
b3502b9228
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue