help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to import other programming language support on windows emacs ?


From: Colin S. Miller
Subject: Re: how to import other programming language support on windows emacs ?
Date: Mon, 07 Jul 2008 22:18:24 +0100
User-agent: Icedove 1.5.0.14eol (X11/20080509)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]