all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Colin S. Miller" <no-spam-thank-you@csmiller.demon.co.uk>
To: help-gnu-emacs@gnu.org
Subject: Re: how to import other programming language support on windows emacs ?
Date: Mon, 07 Jul 2008 22:18:24 +0100	[thread overview]
Message-ID: <4872881f$0$90275$14726298@news.sunsite.dk> (raw)
In-Reply-To: <mailman.14311.1215403653.18990.help-gnu-emacs@gnu.org>

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


  parent reply	other threads:[~2008-07-07 21:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-06  5:18 how to import other programming language support on windows emacs ? black
2008-07-06  7:28 ` Peter Dyballa
2008-07-06  7:30 ` Frayja
2008-07-06  7:51 ` rmborchers, Borchers <rmborchers
2008-07-06 15:08 ` black
2008-07-06 17:32   ` rmborchers, Borchers <rmborchers
     [not found] ` <mailman.14287.1215360668.18990.help-gnu-emacs@gnu.org>
2008-07-06 16:43   ` Colin S. Miller
2008-07-07  4:07 ` black
2008-07-07 14:20 ` black
     [not found] ` <mailman.14311.1215403653.18990.help-gnu-emacs@gnu.org>
2008-07-07 21:18   ` Colin S. Miller [this message]
     [not found] ` <mailman.14334.1215440442.18990.help-gnu-emacs@gnu.org>
2008-07-09 14:44   ` james

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='4872881f$0$90275$14726298@news.sunsite.dk' \
    --to=no-spam-thank-you@csmiller.demon.co.uk \
    --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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.