• 工作小结:Emacs的Flex开发环境搭建


    在公司里写的用来共享的小笔记,就用英文了。

    The mode info and download link can be found in www.emacswiki.com.

    1. Install cc-mode

    Make a directory named cc-mode under your /site-lisp directory of emacs.

    Download cc-mode compress package and uncompress it.

    Compile all the .el files according to its README document.

    Move all the .elc files to the /site-lisp/cc-mode directory.

    2. Install actionscript-mode

    Download actionscript-mode.el and move it to the /site-lisp directory of emacs

    3.Modifiy your ~/.emacs file and add the following content, note the site-lisp dir path may be different on your machine:

    (add-to-list 'load-path "/usr/share/emacs23/site-lisp/cc-mode")

    (when (require 'actionscript-mode nil t)

     (setq auto-mode-alist

            (cons '("\.as" . actionscript-mode) auto-mode-alist)))

    Open an .as file and you can see the syntax highlight now.

    For .mxml file, it uses nxml-mode by default (I'm using emacs 23.1.1), you can switch to actionscript mode by typing "M-x actionscript-mode RET" to read AS code, and switch back by typing "M-x nxml-mode RET" to read xml code. Currently there is no flex-mode.el available and I don't like the multi-major-mode idea.

  • 相关阅读:
    1. flask框架-简介/快速启动
    conda创建、查看、删除虚拟环境
    DOM用法(二)
    DOM用法(一)
    BOM用法
    Javascript对象
    JavaScript基础篇
    mysql 外连接
    mysql 连接表 内连接 inner
    mysql分组函数
  • 原文地址:https://www.cnblogs.com/cshao/p/1852375.html
Copyright © 2020-2023  润新知