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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!gossip.pyramid.com!decwrl!csus.edu!sfsuvax1.sfsu.edu!vpcsc4
  3. From: vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean)
  4. Subject: ?s about emulating vi's z & z- commands ; setting the default mode
  5. Message-ID: <1992Jul28.212141.22272@csus.edu>
  6. Sender: news@csus.edu
  7. Organization: San Francisco State University
  8. References: <ACEVEDO.92Jul28095546@hippocrene.mit.edu> <9207282039.AA19376@mole.gnu.ai.mit.edu>
  9. Date: Tue, 28 Jul 1992 21:21:41 GMT
  10. Lines: 28
  11.  
  12. Are there any emacs commands (or code which I can put in my .emacs
  13. file) which execute the following vi commands ?
  14.  
  15. VI COMMAND NAME          ACTION
  16.  
  17. z<CR>                    takes the current line and 
  18.                          moves it to the top of the screen
  19.  
  20. z-                       takes the current line and
  21.                          moves it to the bottom of the screen
  22.                          
  23. Also is there a way to stop the automatic scroll so that 
  24. when I type C-n when I am at the bottom of the screen I
  25. see the same screen I seen before with the next line and
  26. without the top line?
  27.  
  28. Also, I would like to have emacs automatically go into shell
  29. mode when emacs is invoked.  I placed the following instruction
  30. in my .emacs file :
  31.  
  32. (setq default-major-mode 'shell-mode )
  33.  
  34. but when I invoke emacs I am in lisp-interaction-mode.
  35.  
  36. Any suggestions?
  37. Thanks,
  38. Emmett
  39. vpcsc4@sfsuvax1.edu
  40.