From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "mandar.mitra" Newsgroups: gmane.emacs.help Subject: Re: how to make emacs start in a given mode ? Date: Tue, 8 Jun 2010 23:22:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9758a279-a823-401e-9458-b91c6dca6df7@32g2000prq.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291829403 31839 80.91.229.12 (8 Dec 2010 17:30:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 17:30:03 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 18:29:59 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQNq2-0002yI-IZ for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 18:29:58 +0100 Original-Received: from localhost ([127.0.0.1]:47878 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQNq1-0003EJ-RC for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 12:29:57 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!32g2000prq.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 64.255.180.84 Original-X-Trace: posting.google.com 1276064561 2808 127.0.0.1 (9 Jun 2010 06:22:41 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 9 Jun 2010 06:22:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 32g2000prq.googlegroups.com; posting-host=64.255.180.84; posting-account=BgHpOgoAAAC6jJ5B10Buh4_uKHotZTaz User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux i686; U; en; rv:1.8.1) Gecko/20061208 Firefox/2.0.0 Opera 10.10,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178754 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75699 Archived-At: On Jun 9, 5:48=A0am, hkm wrote: > Does anyone know how to start emacs in a given mode? > > Actually I use matlab-shell in emacs. Everytime I have to start emacs > first, > and then I can enter matlab-shell mode. > Is there a way to make emacs enter matlab-shell mode automatically when > type some command in the terminal? I have this in my .emacs.el: (setq default-major-mode 'text-mode) because I like scratch / new buffers to be text mode by default (rather than Fundamental). You could try something similar with matlab- shell mode.