关于windows上emacs+sbcl+slime的配置说明,配出类似lisp in a box的启动效果

关于windows上emacs+sbcl+slime的配置说明,配出类似lisp in a box的启动效果


给新手的参考,高手勿喷!以下是.emacs文件的内容,找到.emacs文件,把所有内容清除,将以下内容复制粘贴进去,然后要把下面内容中的sbcl的路径修改成你电脑上sbcl.exe所在的路径,记住这个路径内可以包含中文,但不能包含空格。另外,还要把slime的路径修改成你电脑内slime所存放的路径,这个路径不能包含中文,也不能包含空格,否则会出错。还有,把文章中最后一行的路径修改成自己的常用路径,修改好后,保存,然后启动emacs即可看到效果了!

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won’t work right.
'(add-to-list (quote custom-theme-load-path) t)
'(tool-bar-mode 1) ;显示工具条
'(tooltip-mode 1)) ;显示工具条内工具的说明

(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won’t work right.
)

;;;;slime configure
(setq inferior-lisp-program “D:/软件/emacs-25.2-x86_64/SBCL/sbcl.exe”) ;设置sbcl.exe的路径
(add-to-list 'load-path “F:/Essential-software-2/slime-2.24”) ;设置Slime路径,路径内不能有中文和空格,否则会出错
(require 'slime)
(slime-setup)
(global-set-key (kbd “C-c C-c”) 'slime-eval-last-expression-in-repl) ;在slime模式下可以使用快捷键C-c C-c编译表达式
(require 'slime-autoloads)
(slime-setup '(slime-fancy slime-banner))
(setq slime-contribs '(slime-fancy))
(setq inhibit-startup-screen t) ;隐藏启动的界面
(slime) ;自动加载slime模式
(delete-other-windows) ;关闭其他窗口,仅保留slime界面,必须配合隐藏启动界面使用,否则无效
(setenv “HOME” “D:/nand009-1257/nantetris/ROCK”) ;设置打开文件的目录,可以修改成自己经常使用的文件路径

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值