Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!orion.oac.uci.edu!cedman From: cedman@golem.ps.uci.edu (Carl Edman) Newsgroups: comp.emacs Subject: Re: set automatic (default) vip-mode Message-ID: Date: 25 Jan 91 17:31:03 GMT References: <1991Jan25.022333.4987@cubmol.bio.columbia.edu> Organization: University of California, Irvine, USA. Lines: 33 Nntp-Posting-Host: lynx.ps.uci.edu In-reply-to: cedman@golem.ps.uci.edu's message of 25 Jan 91 06:06:39 GMT The above of course only applies to major modes. If you are using one of the vi-minor modes the 'correct' way to set this up is to use the mode hooks. e.g. if you want to use vi to edit c-files. Just add this line: (setq c-mode-hook 'vip-mode) Similar hooks apply to most modes. If text mode is your default mode you can get vip by default by using: (setq text-mode-hook 'vip-mode) If you already have some program in one hook and have a line like this in your .emacs file (again from my .emacs file) it is slightly more complicated. (setq text-mode-hook 'turn-on-auto-fill) Try something like this: (setq text-mode-hook '(lambda () (turn-on-auto-fill) (vip-mode))) Does that help ? Carl Edman Theoretical Physicist,N.: A physicist whose | Send mail existence is postulated, to make the numbers | to balance but who is never actually observed | cedman@golem.ps.uci.edu in the laboratory. | edmanc@uciph0.ps.uci.edu * Did you know that you can have a typo in your signature, send 100s of * * mails and 100s of world-wide posts, and nobody will ever tell you ? *