Changeset 4161 for trunk/lisp/emulation/viper.el
- Timestamp:
- 09/09/06 16:30:10 (2 years ago)
- Files:
-
- trunk/lisp/emulation/viper.el (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/emulation/viper.el
r4098 r4161 535 535 "Turn on Viper emulation of Vi in Emacs. See Info node `(viper)Viper'." 536 536 (interactive) 537 (if (null viper-vi-state-cursor-color)538 (modify-frame-parameters539 (selected-frame)540 (list (cons 'viper-vi-state-cursor-color (viper-get-cursor-color)))))541 537 (if (not noninteractive) 542 538 (progn … … 619 615 (or (memq major-mode viper-emacs-state-mode-list) ; don't switch to Vi 620 616 (memq major-mode viper-insert-state-mode-list) ; don't switch 621 (viper-change-state-to-vi))))) 617 (viper-change-state-to-vi)) 618 ))) 622 619 623 620 … … 863 860 ;; So do it via the window-setup-hook 864 861 (add-hook 'window-setup-hook 865 '(lambda () 866 (setq viper-vi-state-cursor-color (viper-get-cursor-color)))) 862 '(lambda () 863 (modify-frame-parameters 864 (selected-frame) 865 (list (cons 'viper-vi-state-cursor-color 866 (viper-get-cursor-color)))))) 867 867 868 868 ;; Tell vc-diff to put *vc* in Vi mode … … 904 904 (defadvice set-cursor-color (after viper-set-cursor-color-ad activate) 905 905 "Change cursor color in VI state." 906 ;;(setq viper-vi-state-cursor-color (ad-get-arg 0))907 906 (modify-frame-parameters 908 907 (selected-frame) … … 1009 1008 (defun viper-non-hook-settings () 1010 1009 1011 ;; Viper changes the default mode-line-buffer-identification1012 (setq-default mode-line-buffer-identification '(" %b"))1010 ;;;; Viper changes the default mode-line-buffer-identification 1011 ;;(setq-default mode-line-buffer-identification '(" %b")) 1013 1012 1014 1013 ;; setup emacs-supported vi-style feel
