From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.help Subject: Re: [Newbie] Installing emacs mode Date: Sun, 30 Oct 2005 09:45:59 +0000 Organization: Often Lacking Message-ID: References: <1130662350.637489.297460@g43g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1130665860 21495 80.91.229.2 (30 Oct 2005 09:51:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Oct 2005 09:51:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 30 10:50:58 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EW9pe-0004Zn-Px for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2005 10:50:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EW9pd-0004sK-Lf for geh-help-gnu-emacs@m.gmane.org; Sun, 30 Oct 2005 04:50:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EW9nL-0003mz-Qd for help-gnu-emacs@gnu.org; Sun, 30 Oct 2005 04:48:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EW9nJ-0003kw-06 for help-gnu-emacs@gnu.org; Sun, 30 Oct 2005 04:48:06 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EW9nI-0003k1-5I for help-gnu-emacs@gnu.org; Sun, 30 Oct 2005 04:48:04 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EW9nI-0000ha-4I for help-gnu-emacs@gnu.org; Sun, 30 Oct 2005 04:48:04 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EW9m2-0003gf-5Z for help-gnu-emacs@gnu.org; Sun, 30 Oct 2005 10:46:46 +0100 Original-Received: from 82.155.147.234 ([82.155.147.234]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Oct 2005 10:46:46 +0100 Original-Received: from sebyte by 82.155.147.234 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 30 Oct 2005 10:46:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 82.155.147.234 User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en In-Reply-To: <1130662350.637489.297460@g43g2000cwa.googlegroups.com> X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:30692 Archived-At: 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 :-/