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:31:32 +0200 Message-ID: References: <20100609072526.GA18088@hkm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1276130396 9181 80.91.229.12 (10 Jun 2010 00:39:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 00:39:56 +0000 (UTC) To: hkm , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 10 02:39:52 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 1OMVoF-0007LT-Ij for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 02:39:52 +0200 Original-Received: from localhost ([127.0.0.1]:47922 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMVoC-0002hy-Mu for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Jun 2010 20:39:48 -0400 Original-Received: from [140.186.70.92] (port=55846 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMFlc-00030B-Hj for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:32:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMFlb-0002k3-GD for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:32:04 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:36966) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMFlb-0002jv-8y for help-gnu-emacs@gnu.org; Wed, 09 Jun 2010 03:32:03 -0400 Original-Received: by wwb34 with SMTP id 34so604890wwb.0 for ; Wed, 09 Jun 2010 00:32:02 -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:content-type; bh=k73q/OzCHOkPHq/799D0ufti1U0PhOFCE9OghqyUq94=; b=D3TCoC580mTT3tJqPmrencpUTN0DSW504SEJV8GNbsZmPiaA+N87M3Ce+kOl3twHR3 A/gHN1VMXyMfR1wsBhBlnAIHv9QPV7DhiO2HbOqM+aBZIhQuTYeG43JxlQmjie+qBEEH N8tjTUi+FS38gwMVHfi4JDpt5fonkeQpqTO1Q= 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 :content-type; b=sdg/OiQ13/Rk0vnPfFG/E4vv2m1qKVvF/+w+khy2fLWKpjyCKuKvSq0X8dtfy39dmQ XIP4eZs+0yuaMx2Cp6X0YzMGMcYZnowPwU4rVBa/L0x772liEnw8SpLakXu43UMlaEkS earw3AdZH+hD6W8QDnF5OeiybaCM1SES8XdGM= Original-Received: by 10.216.90.2 with SMTP id d2mr4609822wef.24.1276068722163; Wed, 09 Jun 2010 00:32:02 -0700 (PDT) Original-Received: by 10.216.237.76 with HTTP; Wed, 9 Jun 2010 00:31:32 -0700 (PDT) In-Reply-To: <20100609072526.GA18088@hkm> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 09 Jun 2010 20:36:21 -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:73869 Archived-At: 2010/6/9 hkm : > > I know this, buf if I set inital mode, I can't choose mode by type command in terminal when I start emacs.For example, I can have many alias to make emacs start in c-mode, matlab-shell mode or other mode. > You could try: emacs -f python-mode -f takes the name of a function to call after starting emacs. > On Wed, Jun 09, 2010 at 09:18:53AM +0200, Deniz Dogan wrote: >> 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?automatically?when >> > type some command in the terminal? >> > >> > Thank you. >> > >> > >> > Keming >> >> Sure, just modify initial-major-mode, e.g.: >> >> (setq initial-major-mode 'python-mode) >> >> -- >> Deniz Dogan > -- Deniz Dogan