diff options
Diffstat (limited to 'lisp/emulation/viper-init.el')
| -rw-r--r-- | lisp/emulation/viper-init.el | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el index 4f08f1b6cc1..ab9212cb95f 100644 --- a/lisp/emulation/viper-init.el +++ b/lisp/emulation/viper-init.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; viper-init.el --- some common definitions for Viper | 1 | ;;; viper-init.el --- some common definitions for Viper |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1997, 98, 99, 2000, 01, 02 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1997, 98, 99, 2000, 01, 02, 05 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> | 5 | ;; Author: Michael Kifer <kifer@cs.stonybrook.edu> |
| 6 | 6 | ||
| @@ -850,74 +850,84 @@ Related buffers can be cycled through via :R and :P commands." | |||
| 850 | :group 'viper) | 850 | :group 'viper) |
| 851 | 851 | ||
| 852 | 852 | ||
| 853 | (defface viper-search-face | 853 | (defface viper-search |
| 854 | '((((class color)) (:foreground "Black" :background "khaki")) | 854 | '((((class color)) (:foreground "Black" :background "khaki")) |
| 855 | (t (:underline t :stipple "gray3"))) | 855 | (t (:underline t :stipple "gray3"))) |
| 856 | "*Face used to flash out the search pattern." | 856 | "*Face used to flash out the search pattern." |
| 857 | :group 'viper-highlighting) | 857 | :group 'viper-highlighting) |
| 858 | ;; backward-compatibility alias | ||
| 859 | (put 'viper-search-face 'face-alias 'viper-search) | ||
| 858 | ;; An internal variable. Viper takes the face from here. | 860 | ;; An internal variable. Viper takes the face from here. |
| 859 | (defvar viper-search-face 'viper-search-face | 861 | (defvar viper-search-face 'viper-search |
| 860 | "Face used to flash out the search pattern. | 862 | "Face used to flash out the search pattern. |
| 861 | DO NOT CHANGE this variable. Instead, use the customization widget | 863 | DO NOT CHANGE this variable. Instead, use the customization widget |
| 862 | to customize the actual face object `viper-search-face' | 864 | to customize the actual face object `viper-search-face' |
| 863 | this variable represents.") | 865 | this variable represents.") |
| 864 | (viper-hide-face 'viper-search-face) | 866 | (viper-hide-face 'viper-search) |
| 865 | 867 | ||
| 866 | 868 | ||
| 867 | (defface viper-replace-overlay-face | 869 | (defface viper-replace-overlay |
| 868 | '((((class color)) (:foreground "Black" :background "darkseagreen2")) | 870 | '((((class color)) (:foreground "Black" :background "darkseagreen2")) |
| 869 | (t (:underline t :stipple "gray3"))) | 871 | (t (:underline t :stipple "gray3"))) |
| 870 | "*Face for highlighting replace regions on a window display." | 872 | "*Face for highlighting replace regions on a window display." |
| 871 | :group 'viper-highlighting) | 873 | :group 'viper-highlighting) |
| 874 | ;; backward-compatibility alias | ||
| 875 | (put 'viper-replace-overlay-face 'face-alias 'viper-replace-overlay) | ||
| 872 | ;; An internal variable. Viper takes the face from here. | 876 | ;; An internal variable. Viper takes the face from here. |
| 873 | (defvar viper-replace-overlay-face 'viper-replace-overlay-face | 877 | (defvar viper-replace-overlay-face 'viper-replace-overlay |
| 874 | "Face for highlighting replace regions on a window display. | 878 | "Face for highlighting replace regions on a window display. |
| 875 | DO NOT CHANGE this variable. Instead, use the customization widget | 879 | DO NOT CHANGE this variable. Instead, use the customization widget |
| 876 | to customize the actual face object `viper-replace-overlay-face' | 880 | to customize the actual face object `viper-replace-overlay-face' |
| 877 | this variable represents.") | 881 | this variable represents.") |
| 878 | (viper-hide-face 'viper-replace-overlay-face) | 882 | (viper-hide-face 'viper-replace-overlay) |
| 879 | 883 | ||
| 880 | 884 | ||
| 881 | (defface viper-minibuffer-emacs-face | 885 | (defface viper-minibuffer-emacs |
| 882 | '((((class color)) (:foreground "Black" :background "darkseagreen2")) | 886 | '((((class color)) (:foreground "Black" :background "darkseagreen2")) |
| 883 | (t (:weight bold))) | 887 | (t (:weight bold))) |
| 884 | "Face used in the Minibuffer when it is in Emacs state." | 888 | "Face used in the Minibuffer when it is in Emacs state." |
| 885 | :group 'viper-highlighting) | 889 | :group 'viper-highlighting) |
| 890 | ;; backward-compatibility alias | ||
| 891 | (put 'viper-minibuffer-emacs-face 'face-alias 'viper-minibuffer-emacs) | ||
| 886 | ;; An internal variable. Viper takes the face from here. | 892 | ;; An internal variable. Viper takes the face from here. |
| 887 | (defvar viper-minibuffer-emacs-face 'viper-minibuffer-emacs-face | 893 | (defvar viper-minibuffer-emacs-face 'viper-minibuffer-emacs |
| 888 | "Face used in the Minibuffer when it is in Emacs state. | 894 | "Face used in the Minibuffer when it is in Emacs state. |
| 889 | DO NOT CHANGE this variable. Instead, use the customization widget | 895 | DO NOT CHANGE this variable. Instead, use the customization widget |
| 890 | to customize the actual face object `viper-minibuffer-emacs-face' | 896 | to customize the actual face object `viper-minibuffer-emacs-face' |
| 891 | this variable represents.") | 897 | this variable represents.") |
| 892 | (viper-hide-face 'viper-minibuffer-emacs-face) | 898 | (viper-hide-face 'viper-minibuffer-emacs) |
| 893 | 899 | ||
| 894 | 900 | ||
| 895 | (defface viper-minibuffer-insert-face | 901 | (defface viper-minibuffer-insert |
| 896 | '((((class color)) (:foreground "Black" :background "pink")) | 902 | '((((class color)) (:foreground "Black" :background "pink")) |
| 897 | (t (:slant italic))) | 903 | (t (:slant italic))) |
| 898 | "Face used in the Minibuffer when it is in Insert state." | 904 | "Face used in the Minibuffer when it is in Insert state." |
| 899 | :group 'viper-highlighting) | 905 | :group 'viper-highlighting) |
| 906 | ;; backward-compatibility alias | ||
| 907 | (put 'viper-minibuffer-insert-face 'face-alias 'viper-minibuffer-insert) | ||
| 900 | ;; An internal variable. Viper takes the face from here. | 908 | ;; An internal variable. Viper takes the face from here. |
| 901 | (defvar viper-minibuffer-insert-face 'viper-minibuffer-insert-face | 909 | (defvar viper-minibuffer-insert-face 'viper-minibuffer-insert |
| 902 | "Face used in the Minibuffer when it is in Insert state. | 910 | "Face used in the Minibuffer when it is in Insert state. |
| 903 | DO NOT CHANGE this variable. Instead, use the customization widget | 911 | DO NOT CHANGE this variable. Instead, use the customization widget |
| 904 | to customize the actual face object `viper-minibuffer-insert-face' | 912 | to customize the actual face object `viper-minibuffer-insert-face' |
| 905 | this variable represents.") | 913 | this variable represents.") |
| 906 | (viper-hide-face 'viper-minibuffer-insert-face) | 914 | (viper-hide-face 'viper-minibuffer-insert) |
| 907 | 915 | ||
| 908 | 916 | ||
| 909 | (defface viper-minibuffer-vi-face | 917 | (defface viper-minibuffer-vi |
| 910 | '((((class color)) (:foreground "DarkGreen" :background "grey")) | 918 | '((((class color)) (:foreground "DarkGreen" :background "grey")) |
| 911 | (t (:inverse-video t))) | 919 | (t (:inverse-video t))) |
| 912 | "Face used in the Minibuffer when it is in Vi state." | 920 | "Face used in the Minibuffer when it is in Vi state." |
| 913 | :group 'viper-highlighting) | 921 | :group 'viper-highlighting) |
| 922 | ;; backward-compatibility alias | ||
| 923 | (put 'viper-minibuffer-vi-face 'face-alias 'viper-minibuffer-vi) | ||
| 914 | ;; An internal variable. Viper takes the face from here. | 924 | ;; An internal variable. Viper takes the face from here. |
| 915 | (defvar viper-minibuffer-vi-face 'viper-minibuffer-vi-face | 925 | (defvar viper-minibuffer-vi-face 'viper-minibuffer-vi |
| 916 | "Face used in the Minibuffer when it is in Vi state. | 926 | "Face used in the Minibuffer when it is in Vi state. |
| 917 | DO NOT CHANGE this variable. Instead, use the customization widget | 927 | DO NOT CHANGE this variable. Instead, use the customization widget |
| 918 | to customize the actual face object `viper-minibuffer-vi-face' | 928 | to customize the actual face object `viper-minibuffer-vi-face' |
| 919 | this variable represents.") | 929 | this variable represents.") |
| 920 | (viper-hide-face 'viper-minibuffer-vi-face) | 930 | (viper-hide-face 'viper-minibuffer-vi) |
| 921 | 931 | ||
| 922 | ;; the current face to be used in the minibuffer | 932 | ;; the current face to be used in the minibuffer |
| 923 | (viper-deflocalvar | 933 | (viper-deflocalvar |