diff options
| author | Richard M. Stallman | 1996-01-01 23:40:10 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-01 23:40:10 +0000 |
| commit | f719b45aaa7f63ee84eaad492d9e8c78e7b1ad2c (patch) | |
| tree | ec21e4d2652c3e6aca8ba615b2e9c34ea8c15810 | |
| parent | 91760fd69c82c5a2f6662f2161252fe573e4b9a1 (diff) | |
| download | emacs-f719b45aaa7f63ee84eaad492d9e8c78e7b1ad2c.tar.gz emacs-f719b45aaa7f63ee84eaad492d9e8c78e7b1ad2c.zip | |
(vip-startup-file): New variable.
(vip-mode): Use `vip-startup-file' for the startup file name.
| -rw-r--r-- | lisp/emulation/vip.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emulation/vip.el b/lisp/emulation/vip.el index c887d9123e0..12c7bd4945c 100644 --- a/lisp/emulation/vip.el +++ b/lisp/emulation/vip.el | |||
| @@ -121,6 +121,9 @@ bound to delete-backward-char.") | |||
| 121 | (defvar vip-tags-file-name "TAGS") | 121 | (defvar vip-tags-file-name "TAGS") |
| 122 | 122 | ||
| 123 | (defvar vip-inhibit-startup-message nil) | 123 | (defvar vip-inhibit-startup-message nil) |
| 124 | |||
| 125 | (defvar vip-startup-file (convert-standard-filename "~/.vip") | ||
| 126 | "filename used as strtup file for `vip-mode'.") | ||
| 124 | 127 | ||
| 125 | ;; basic set up | 128 | ;; basic set up |
| 126 | 129 | ||
| @@ -243,7 +246,8 @@ Type `n' to quit this window for now.\n") | |||
| 243 | (progn | 246 | (progn |
| 244 | (save-excursion | 247 | (save-excursion |
| 245 | (set-buffer | 248 | (set-buffer |
| 246 | (find-file-noselect (substitute-in-file-name "~/.vip"))) | 249 | (find-file-noselect |
| 250 | (substitute-in-file-name vip-startup-file))) | ||
| 247 | (goto-char (point-max)) | 251 | (goto-char (point-max)) |
| 248 | (insert "\n(setq vip-inhibit-startup-message t)\n") | 252 | (insert "\n(setq vip-inhibit-startup-message t)\n") |
| 249 | (save-buffer) | 253 | (save-buffer) |
| @@ -3020,6 +3024,6 @@ vip-s-string" | |||
| 3020 | (point-min) | 3024 | (point-min) |
| 3021 | (if (null ex-addresses) (point-max) (car ex-addresses)))))) | 3025 | (if (null ex-addresses) (point-max) (car ex-addresses)))))) |
| 3022 | 3026 | ||
| 3023 | (if (file-exists-p "~/.vip") (load "~/.vip")) | 3027 | (if (file-exists-p vip-startup-file) (load vip-startup-file)) |
| 3024 | 3028 | ||
| 3025 | ;;; vip.el ends here | 3029 | ;;; vip.el ends here |