From: Kevin Rodgers <ihs_4664@yahoo.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Using a Custom Emacs mode
Date: Mon, 08 Aug 2005 12:06:10 -0600 [thread overview]
Message-ID: <dd86uj$cht$1@sea.gmane.org> (raw)
In-Reply-To: <iNLJe.3347$HM1.1969@okepread03>
Zach Flynn wrote:
> Ok, so I have an emacs mode that I'd like to use but I don't know how to
> actually use it in emacs. For some strange reason, I can't find that
> explained anywhere. Can someone tell me how to use a mode that's
> written for emacs? It's not one of those ones that emacs comes with.
Short answer:
M-x load-file RET foo.el
M-x foo-mode
Long answer:
You will make things easier on yourself by putting foo.el in the system
site-lisp directory (C-h v load-path) or in any directory of your
choosing that you add to load-path (by modifying your ~/.emacs file).
You will make things run much faster if you M-x byte-compile-file foo.el
(before loading it).
foo.el will likely contain installation instructions in the comment
block near the top of the file, which will suggest autoload commands to
add to your system's default.el file or your personal .emacs file (so
you don't have to explicitly load it).
The installation instructions will also likely show you how to add an
entry to auto-mode-alist, to invoke foo-mode automatically when editing
files with that mode's conventional name.
P.S. Please post questions to gnu.emacs.help in the future; that's
where I've directed followups to this message.
--
Kevin Rodgers
next parent reply other threads:[~2005-08-08 18:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <iNLJe.3347$HM1.1969@okepread03>
2005-08-08 18:06 ` Kevin Rodgers [this message]
2005-08-08 21:39 ` Using a Custom Emacs mode Tom Breton
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='dd86uj$cht$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).