From: Sebastian Tennant <sebyte@smolny.plus.com>
Subject: Re: [Newbie] Installing emacs mode
Date: Sun, 30 Oct 2005 09:45:59 +0000 [thread overview]
Message-ID: <dk24oo$kcv$1@sea.gmane.org> (raw)
In-Reply-To: <1130662350.637489.297460@g43g2000cwa.googlegroups.com>
jeessy@gmail.com wrote:
> Hello !
>
> I'm new in emacs 'world' and i want to install php/html/css mode on
> windows. Someone can help me ?
>
> Sorry about my english i'm a frenchie :>
>
> Thanks alot.
Well, a common way of 'installing' modes in emacs is a case of putting the
mode's source code elisp files (.el) in a place where they can be found by
emacs, i.e., in a directory listed in the `load-path' variable, and then having
them autoloaded at start-up.
So, create an elisp directory in your home directory;
/home/jeessy/elisp
for instance. Next, add the following line to your /home/jeessy/.emacs file;
(add-to-list 'load-path "/home/jeessy/elisp")
Most modes are entered using an interactive command such as 'M-x css-mode', and
assuming the elisp source is called 'css.el', you then need to add the following
line anywhere after the previous line;
(autoload 'css-mode "css" "CSS editing mode" t nil)
| | |
M-x css-mode | |
| |
source file css.el |
|
This can be anything
Save your .emacs file, quit emacs (assuming you've been using it to edit your
.emacs file) and re-launch. You should be on your way. Just type M-x css-mode
and enjoy :-)
sebyte
P.S. I'm not sure about Windows when it comes to home directories :-/
next prev parent reply other threads:[~2005-10-30 9:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-30 8:52 [Newbie] Installing emacs mode jeessy
2005-10-30 9:45 ` Sebastian Tennant [this message]
[not found] ` <mailman.13293.1130665689.20277.help-gnu-emacs@gnu.org>
2005-10-30 10:01 ` Bastien
2005-10-31 14:32 ` jeessy
2005-10-31 15:00 ` Sébastien Kirche
2005-10-31 15:09 ` Chris McMahan
2005-10-31 20:12 ` Sebastian Tennant
[not found] ` <mailman.13483.1130789814.20277.help-gnu-emacs@gnu.org>
2005-10-31 22:11 ` Sébastien Kirche
2005-10-31 23:21 ` Sebastian Tennant
[not found] ` <mailman.13501.1130801051.20277.help-gnu-emacs@gnu.org>
2005-11-01 11:21 ` jeessy
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='dk24oo$kcv$1@sea.gmane.org' \
--to=sebyte@smolny.plus.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.
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).