为Emacs配置newLISP开发环境

首页 → Linux教程

背景:

阅读新闻

为Emacs配置newLISP开发环境

[日期:2013-01-24]来源:Linux社区作者:sheismylife[字体:]

首先获取newlisp-mode项目:

~/work$ git clone https://github.com/may/newlisp-mode.git

然后在~/.emacs文件中添加配置:

;; newLISP mode(add-to-list ‘load-path (expand-file-name “/opt/emacs_plugins/newlisp/newlisp-mode/”))(load-file “/opt/emacs_plugins/newlisp/newlisp-mode/newlisp.el”)(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. Requiresnewlisp-mode to be loaded.” (interactive) (newlisp-show-interpreter))

(add-to-list … 一定要加,否则会一直报错找不到tj-parenface

现在用emacs打开一个lsp文件,截图看一下,语法高亮很漂亮的显示出来了。

0

Solaris下使用mdb检查内存泄露

newLISP做GitLab系统备份

相关资讯 emacs newLISP

图片资讯

本文评论  查看全部评论 (0)

评论声明

最新资讯

本周热门

Linux公社简介 – 广告服务 – 网站地图 – 帮助信息 – 联系我们本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。Copyright © 2006-2014 Linux公社 All rights reserved 浙ICP备06018118号

一路走来,我们无法猜测将是迎接什么样的风景,

为Emacs配置newLISP开发环境

相关文章:

你感兴趣的文章:

标签云: