From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: how to make emacs start in a given mode ? Date: Wed, 9 Jun 2010 09:18:53 +0200 Message-ID: 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 1276130276 8914 80.91.229.12 (10 Jun 2010 00:37:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 00:37:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: hkm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 10 02:37:55 2010 connect(): No such file or directory 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 1OMVmJ-0006kG-Ar for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 02:37:51 +0200 Original-Received: from localhost ([127.0.0.1]:46259 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMVmI-0001AE-M9 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jun 2010 20:37:50 -0400 Original-Received: from [140.186.70.92] (port=35483 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMFZi-0000vp-Ch for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:19:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMFZN-0007pI-4f for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:19:26 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:41709) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMFZN-0007ok-0e for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:19:25 -0400 Original-Received: by wwb34 with SMTP id 34so597072wwb.0 for ; Wed, 09 Jun 2010 00:19:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=uObVP47feJP1B+13wANjs9RUNByNVnOjj0pJ+ESXMJE=; b=cqmHlRna8sPVZreEEEvfGIdAkc/HHUAfEHZeTVannX7HI/Vpc+F4wyiJV9EoSVm3oN fB+Nt5MYNp8CT8swtaQf5E6c31W1f1CjQaIulK/TV5IP/hAmw3iK0cWXS07hE0gZFP4s 3pw83vJhpOArG71deHJaK5+gdvq7IM08PlzCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=n/3nUup4LAWj87tks0RoozBr3rFFVqoFettmTvm0isweisgnaKNwRnVZ51rfUbFocK yioAwcsbg5yWn2Aj0Vm7S0qoG0ayLFw96e8kQ++nhn37HBwF46NjCX7NJXHow//7LxNg suHUx7vh5FIOU+96mIgiSpkBaSeA8CiCgvtW0= Original-Received: by 10.227.145.193 with SMTP id e1mr1520827wbv.207.1276067963179; Wed, 09 Jun 2010 00:19:23 -0700 (PDT) Original-Received: by 10.216.237.76 with HTTP; Wed, 9 Jun 2010 00:18:53 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 09 Jun 2010 20:36:19 -0400 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:73868 Archived-At: 2010/6/9 hkm : > 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=A0automatically=A0wh= en > type some command in the terminal? > > Thank you. > > > Keming Sure, just modify initial-major-mode, e.g.: (setq initial-major-mode 'python-mode) --=20 Deniz Dogan