Emacs modes for Flex
- Emacs modes for Flex:
- XML: nXML-mode for Emacs from James Clark Using Emacs for XML documents
- Actionscript: actionscript-mode.el for editing actionscript files in emacs.
- At least right now it seems you want this xml mode and this actionscript-mode.el.
- Then, add
(setq auto-mode-alist (append (list '("\\.as\\'" . actionscript-mode) '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\|mxml\\)\\'" . nxml-mode) ;; add more modes here ) auto-mode-alist)) ;; ;; ------------------ Magic for XML Mode ---------------- ;; (setq nxml-mode-hook '(lambda () (setq tab-width 2 indent-tabs-mode nil) (set-variable 'nxml-child-indent 2) (set-variable 'nxml-attribute-indent 2) ))
- You can use
M-x customize-group RET nxml-highlighting-faces RET
to fix your colors the way you like 'em. - Setting up asdoc to work within Flex Builder:
- First, install ant support (Ant is an offshoot of apache and is like Makefile only more betterer.)
- Then set up a build.xml in your docs/ directory to build the documentation set.
- I had to modify mine a bit: I added
<property name="Templates.dir" location="${FlexSDK.dir}/asdoc/templates/"/> <arg line='-templates-path ${Templates.dir}'/>
- I also linked the flex home to a no-funny-characters dir:
ln -s "/Applications/Applications/Adobe Flex Builder 2" /work/ProgramStores/Flex cd /work/ProgramStores/Flex ln -s "Flex SDK 2" FlexSDK
Then I exported the location for the asdoc file:export FLEX_HOME=/work/ProgramStores/Flex/FlexSDK
or else I got the error message:Exception in thread "main" java.lang.NoClassDefFoundError: Flex
Labels: actionscript, as, elisp, emacs, flex, mode, mxml, xml