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

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!traffic!kevin
  3. From: kevin@traffic.den.mmc.com (Kevin Rodgers)
  4. Subject: Re: ?s about emulating vi's z & z- commands ; setting the default mode
  5. Message-ID: <1992Jul29.160128.13789@den.mmc.com>
  6. Sender: news@den.mmc.com (News)
  7. Nntp-Posting-Host: traffic.den.mmc.com
  8. Organization: Martin Marietta Western Internal Systems, Technical Operations
  9. References: <9207282039.AA19376@mole.gnu.ai.mit.edu> <1992Jul28.212141.22272@csus.edu> <154r6kINN93i@early-bird.think.com>
  10. Date: Wed, 29 Jul 1992 16:01:28 GMT
  11. Lines: 30
  12.  
  13. In article <154r6kINN93i@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
  14. >In article <1992Jul28.212141.22272@csus.edu> vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean) writes:
  15. >>Also, I would like to have emacs automatically go into shell
  16. >>mode when emacs is invoked.  I placed the following instruction
  17. >>in my .emacs file :
  18. >>
  19. >>(setq default-major-mode 'shell-mode )
  20. >>
  21. >>but when I invoke emacs I am in lisp-interaction-mode.
  22. >
  23. >Default-major-mode is used for new buffers that are not put in a specific
  24. >mode.  The *scratch* buffer is intended for executing elisp, so it is
  25. >forced into lisp-interaction-mode.
  26. >
  27. >Since the right way to start editing a new file is to use C-x C-f to
  28. >specify the file name, the mode of *scratch* shouldn't matter too much.
  29. >When C-x C-f creates the new buffer, it will get the default mode you
  30. >specified.
  31.  
  32. If Emmett really wants to automatically start up an interactive shell,
  33. he could put something like this at the end of his .emacs:
  34.  
  35. (if (and (not noninteractive)
  36.      (y-or-n-p "Start an interactive shell? "))
  37.     (shell))
  38. -- 
  39. Kevin Rodgers                kevin@traffic.den.mmc.com
  40. Martin Marietta MS A16401        (303) 790-3971
  41. 116 Inverness Dr. East
  42. Englewood CO 80112 USA            GO BUFFS!
  43.