all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
To: hkm <hkmsama@gmail.com>, help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: how to make emacs start in a given mode ?
Date: Wed, 9 Jun 2010 09:31:32 +0200	[thread overview]
Message-ID: <AANLkTilkA3Ep5etkvPxiahj4m2V4B4QIuRnuZWwQkp2N@mail.gmail.com> (raw)
In-Reply-To: <20100609072526.GA18088@hkm>

2010/6/9 hkm <hkmsama@gmail.com>:
>
> 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 <hkmsama@gmail.com>:
>> > 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



  parent reply	other threads:[~2010-06-09  7:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-09  0:48 how to make emacs start in a given mode ? hkm
2010-06-09  7:18 ` Deniz Dogan
     [not found]   ` <20100609072526.GA18088@hkm>
2010-06-09  7:31     ` Deniz Dogan [this message]
2010-06-09  8:45 ` Bastien
2010-06-09 12:07 ` Tim Landscheidt
2010-06-09 13:39 ` Joel James Adamson
     [not found] <mailman.2.1276061596.11236.help-gnu-emacs@gnu.org>
2010-06-09  6:22 ` mandar.mitra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTilkA3Ep5etkvPxiahj4m2V4B4QIuRnuZWwQkp2N@mail.gmail.com \
    --to=deniz.a.m.dogan@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=hkmsama@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.