为Emacs 24.3配置newLISP开发环境

来源:互联网 发布:2017qq协议源码 编辑:程序博客网 时间:2024/04/28 22:51

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



原创粉丝点击