为Emacs 24.3配置newLISP开发环境
2013-01-22 11:31
267 查看
本文已经更新, 因为Emacs 24.3已经可以使用package system。所以配置变得简单许多:
首先用配置package system server,参考文章:Emacs package system
然后编辑~/.emacs.d/init.el 文件,加入:
;;newlisp
(require 'newlisp-mode)
(add-to-list 'auto-mode-alist '("\\.lsp$" . newlisp-mode))
;;;; Things that might make life easier:
;; Make Emacs' "speedbar" recognize newlisp files
(eval-after-load "speedbar" '(speedbar-add-supported-extension ".lsp"))
;; Another way to use C-x C-e to eval stuff and doesn't jump to next function
(define-key newlisp-mode-map [(control x) (control e)] 'newlisp-evaluate-prev-sexp)
;; I think I got tired of typing 'newlisp-show-interpreter' all the time.
(defun start-newlisp ()
"Starts newlisp interpreter/or shows if already running. Requires newlisp-mode to be loaded."
(interactive)
(newlisp-show-interpreter))
现在用emacs打开一个lsp文件,截图看一下,语法高亮很漂亮的显示出来了。
首先用配置package system server,参考文章:Emacs package system
然后编辑~/.emacs.d/init.el 文件,加入:
;;newlisp
(require 'newlisp-mode)
(add-to-list 'auto-mode-alist '("\\.lsp$" . newlisp-mode))
;;;; Things that might make life easier:
;; Make Emacs' "speedbar" recognize newlisp files
(eval-after-load "speedbar" '(speedbar-add-supported-extension ".lsp"))
;; Another way to use C-x C-e to eval stuff and doesn't jump to next function
(define-key newlisp-mode-map [(control x) (control e)] 'newlisp-evaluate-prev-sexp)
;; I think I got tired of typing 'newlisp-show-interpreter' all the time.
(defun start-newlisp ()
"Starts newlisp interpreter/or shows if already running. Requires newlisp-mode to be loaded."
(interactive)
(newlisp-show-interpreter))
现在用emacs打开一个lsp文件,截图看一下,语法高亮很漂亮的显示出来了。
相关文章推荐
- 配置emacs的python开发环境
- Erlang开发环境Windows + Emacs + Distel的配置
- Emacs24.3下配置Java开发环境 Cedet+Elib+JDEE+ECB
- 配置emacs python 开发环境
- OSX上配置emacs的C/C++开发环境
- emacs配置开发环境
- Emacs 配置Clojure开发环境一 clojure-mode
- emacs 配置erlang 开发环境~
- 64位window7下配置Clojure+Emacs开发环境
- 配置Emacs下的Python开发环境
- window 下安装配置Clojure的Emacs开发环境
- 配置Emacs下的Python开发环境
- ruby on rails 环境搭建以及emacs开发环境配置
- 64位window7下配置Clojure+Emacs开发环境
- Windows上配置iPhone开发环境
- J2EE运行和开发环境的安装与配置(JDK+TOMCAT 6.5+MyEclipse)(1)
- Ubuntu下配置eclipse开发环境
- GDAL C# 开发环境配置
- eclipse hadoop开发环境配置