home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3538 < prev    next >
Encoding:
Text File  |  1992-07-28  |  2.0 KB  |  56 lines

  1. Path: sparky!uunet!wupost!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: ?s about emulating vi's z & z- commands ; setting the default mode
  5. Date: 29 Jul 1992 01:10:44 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 44
  8. Message-ID: <154r6kINN93i@early-bird.think.com>
  9. References: <ACEVEDO.92Jul28095546@hippocrene.mit.edu> <9207282039.AA19376@mole.gnu.ai.mit.edu> <1992Jul28.212141.22272@csus.edu>
  10. NNTP-Posting-Host: telecaster.think.com
  11.  
  12. In article <1992Jul28.212141.22272@csus.edu> vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean) writes:
  13. >z<CR>                    takes the current line and 
  14. >                         moves it to the top of the screen
  15.  
  16. When C-l is given a numeric argument, it repositions the current line to
  17. the specified line of the screen, from the top if non-negative, from the
  18. bottom if negative.  So this becomes:
  19.  
  20. M-0 C-l
  21.  
  22. >z-                       takes the current line and
  23. >                         moves it to the bottom of the screen
  24.  
  25. M-- C-l
  26.  
  27. >Also is there a way to stop the automatic scroll so that 
  28. >when I type C-n when I am at the bottom of the screen I
  29. >see the same screen I seen before with the next line and
  30. >without the top line?
  31.  
  32. (setq scroll-step 1)
  33.  
  34. >Also, I would like to have emacs automatically go into shell
  35. >mode when emacs is invoked.  I placed the following instruction
  36. >in my .emacs file :
  37. >
  38. >(setq default-major-mode 'shell-mode )
  39. >
  40. >but when I invoke emacs I am in lisp-interaction-mode.
  41.  
  42. Default-major-mode is used for new buffers that are not put in a specific
  43. mode.  The *scratch* buffer is intended for executing elisp, so it is
  44. forced into lisp-interaction-mode.
  45.  
  46. Since the right way to start editing a new file is to use C-x C-f to
  47. specify the file name, the mode of *scratch* shouldn't matter too much.
  48. When C-x C-f creates the new buffer, it will get the default mode you
  49. specified.
  50.  
  51. -- 
  52. Barry Margolin
  53. System Manager, Thinking Machines Corp.
  54.  
  55. barmar@think.com          {uunet,harvard}!think!barmar
  56.