From: Joel James Adamson <adamsonj@email.unc.edu>
To: hkm <hkmsama@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to make emacs start in a given mode ?
Date: Wed, 9 Jun 2010 09:39:51 -0400 [thread overview]
Message-ID: <20100609133951.GA15413@chondestes.bio.unc.edu> (raw)
In-Reply-To: <AANLkTinzQxeDHlqBw-j_fyWo_q12nLBY_9ajmXv_jK_t@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
On Wed, Jun 09, 2010 at 08:48:01AM +0800, 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.
What do you mean *every time*? Why not leave Emacs running and open
files or your shell from within Emacs?
> Is there a way to make emacs enter matlab-shell mode automatically
> when type some command in the terminal?
M-x customize-variable RET major-mode RET
Then put in your favorite major-mode (mine is org-mode) and save the
setting.
You can accomplish the same with
(setq-default major-mode 'my-favorite-major-mode)[1]
Joel
Footnotes:
[1] Evaluate this: (info "(emacs) Choosing Modes")
--
Joel J. Adamson
Servedio Lab
University of North Carolina at Chapel Hill
FSF Member #8164
http://www.unc.edu/~adamsonj
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-06-09 13:39 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
2010-06-09 8:45 ` Bastien
2010-06-09 12:07 ` Tim Landscheidt
2010-06-09 13:39 ` Joel James Adamson [this message]
[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=20100609133951.GA15413@chondestes.bio.unc.edu \
--to=adamsonj@email.unc.edu \
--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.