help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to make emacs start in a given mode ?


From: Deniz Dogan
Subject: Re: how to make emacs start in a given mode ?
Date: Wed, 9 Jun 2010 09:31:32 +0200

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]