home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: gnu.emacs.help
- Subject: Re: ?s about emulating vi's z & z- commands ; setting the default mode
- Date: 29 Jul 1992 01:10:44 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 44
- Message-ID: <154r6kINN93i@early-bird.think.com>
- References: <ACEVEDO.92Jul28095546@hippocrene.mit.edu> <9207282039.AA19376@mole.gnu.ai.mit.edu> <1992Jul28.212141.22272@csus.edu>
- NNTP-Posting-Host: telecaster.think.com
-
- In article <1992Jul28.212141.22272@csus.edu> vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean) writes:
- >z<CR> takes the current line and
- > moves it to the top of the screen
-
- When C-l is given a numeric argument, it repositions the current line to
- the specified line of the screen, from the top if non-negative, from the
- bottom if negative. So this becomes:
-
- M-0 C-l
-
- >z- takes the current line and
- > moves it to the bottom of the screen
-
- M-- C-l
-
- >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?
-
- (setq scroll-step 1)
-
- >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.
-
- Default-major-mode is used for new buffers that are not put in a specific
- mode. The *scratch* buffer is intended for executing elisp, so it is
- forced into lisp-interaction-mode.
-
- Since the right way to start editing a new file is to use C-x C-f to
- specify the file name, the mode of *scratch* shouldn't matter too much.
- When C-x C-f creates the new buffer, it will get the default mode you
- specified.
-
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-