home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!gossip.pyramid.com!decwrl!csus.edu!sfsuvax1.sfsu.edu!vpcsc4
- From: vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean)
- Subject: ?s about emulating vi's z & z- commands ; setting the default mode
- Message-ID: <1992Jul28.212141.22272@csus.edu>
- Sender: news@csus.edu
- Organization: San Francisco State University
- References: <ACEVEDO.92Jul28095546@hippocrene.mit.edu> <9207282039.AA19376@mole.gnu.ai.mit.edu>
- Date: Tue, 28 Jul 1992 21:21:41 GMT
- Lines: 28
-
- Are there any emacs commands (or code which I can put in my .emacs
- file) which execute the following vi commands ?
-
- VI COMMAND NAME ACTION
-
- z<CR> takes the current line and
- moves it to the top of the screen
-
- z- takes the current line and
- moves it to the bottom of the screen
-
- Also is there a way to stop the automatic scroll so that
- when I type C-n when I am at the bottom of the screen I
- see the same screen I seen before with the next line and
- without the top line?
-
- Also, I would like to have emacs automatically go into shell
- mode when emacs is invoked. I placed the following instruction
- in my .emacs file :
-
- (setq default-major-mode 'shell-mode )
-
- but when I invoke emacs I am in lisp-interaction-mode.
-
- Any suggestions?
- Thanks,
- Emmett
- vpcsc4@sfsuvax1.edu
-