您的位置:首页 > 其它

为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文件,截图看一下,语法高亮很漂亮的显示出来了。

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  emacs newlisp