From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Colin S. Miller" Newsgroups: gmane.emacs.help Subject: Re: how to import other programming language support on windows emacs ? Date: Mon, 07 Jul 2008 22:18:24 +0100 Organization: SunSITE.dk - Supporting Open source Message-ID: <4872881f$0$90275$14726298@news.sunsite.dk> References: <665eb87a0807052218sb39df6fqe235112e8b4175a9@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1215466850 6667 80.91.229.12 (7 Jul 2008 21:40:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jul 2008 21:40:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 07 23:41:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KFySg-00011E-3S for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jul 2008 23:41:30 +0200 Original-Received: from localhost ([127.0.0.1]:42134 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFyRp-0005IB-1F for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Jul 2008 17:40:37 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news.banetele.no!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail User-Agent: Icedove 1.5.0.14eol (X11/20080509) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 76 Original-NNTP-Posting-Host: 62.56.59.207 Original-X-Trace: news.sunsite.dk DXC=cEGo=j^gA>52]0d4PBaYSB=nbEKnk; 4mi>jDOWoH7G1[Bg<0aH50\VT\m5_SIb6U_42Df:PaK8TcL2h5ahoT?kF_>m>CYcV?JVT0E1BI8B>[i0M\; Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:159943 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:55293 Archived-At: black wrote: > ok i found a folder like this > C:\Documents and Settings\Black Qin\Application Data\.emacs.d\auto-save-list > which is empty. > > do i need to put my actionscript .el file into this folder and run some > command to make it work ? Black, I use xemacs. These instructions are based on xemacs, but should work on emacs. 1) save actionscript.el into C:\Documents and Settings\Black Qin\Application Data\.emacs.d 2) Load ~/.emacs 3) Press C-h v load-path This will display the paths emacs looks in for packages Press C-s and type .emacs.d RET If C:\Documents and Settings\Black Qin\Application Data\.emacs.d\ is not in the path, enter into your .emacs, (add-path "~/.emacs.d/") 4) Add to your .emacs (load-library "actionscript.el") 5) Exit & restart emacs, then load an actionscript file. If emacs is in fundamental or text mode (its the text in brackets on the status line), then skip to step 7. 6) If emacs is opening .as files as something else, then it has been told to do so. We need to remove that association. Press C-h v auto-mode-alist RET to list the associations. Search in here to find it. Assuming there is a entry like ("\\.as\\'" . asm-mode) then add to your .emacs (remove-alist 'auto-mode-alist '"\\.as\\'"") 7) Swap to the action script file an enter M-x actionscript-mode RET This should put emacs into actionscipt mode If this does not work, try M-x action-script-mode RET 8) Add to your .emacs (add-to-list 'auto-mode-alist '("\\.as\\'" . actionscript-mode) 't) assuming you want .as files to be autoloaded as actionscript. If you need action-script-mode in step 7, use that here. 9) Exit & restart emacs, then load an actionscript file. Emacs should open it as actionscript. HTH, Colin S. Miller