home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!csn!news.den.mmc.com!traffic!kevin
- From: kevin@traffic.den.mmc.com (Kevin Rodgers)
- Subject: Re: ?s about emulating vi's z & z- commands ; setting the default mode
- Message-ID: <1992Jul29.160128.13789@den.mmc.com>
- Sender: news@den.mmc.com (News)
- Nntp-Posting-Host: traffic.den.mmc.com
- Organization: Martin Marietta Western Internal Systems, Technical Operations
- References: <9207282039.AA19376@mole.gnu.ai.mit.edu> <1992Jul28.212141.22272@csus.edu> <154r6kINN93i@early-bird.think.com>
- Date: Wed, 29 Jul 1992 16:01:28 GMT
- Lines: 30
-
- In article <154r6kINN93i@early-bird.think.com> barmar@think.com (Barry Margolin) writes:
- >In article <1992Jul28.212141.22272@csus.edu> vpcsc4@sfsuvax1.sfsu.edu (Emmett McLean) writes:
- >>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.
-
- If Emmett really wants to automatically start up an interactive shell,
- he could put something like this at the end of his .emacs:
-
- (if (and (not noninteractive)
- (y-or-n-p "Start an interactive shell? "))
- (shell))
- --
- Kevin Rodgers kevin@traffic.den.mmc.com
- Martin Marietta MS A16401 (303) 790-3971
- 116 Inverness Dr. East
- Englewood CO 80112 USA GO BUFFS!
-