加载路径并加载lisp文件 [英] load-path and load a lisp file

查看:555
本文介绍了加载路径并加载lisp文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



(add-to-list'load-path〜/ elisp /)



逻辑上我也应该使用一个特定文件的加载命令我猜这个命令是什么$ /

>我试过



(加载文件名google-c风格)与.el还添加了文件,应该是正确的方法这个



然而没有成功。

解决方案

这只是(加载),而不是(加载文件名)


after setting a path for my lisp files in emacs in the .emacs file, like this

(add-to-list 'load-path "~/elisp/")

logically I should also use a load command for a specific file I guess what is that command

I tried

(load-file-name "google-c-style") with the .el added also for the file, what should be the right way to do this

however no success.

解决方案

It's just (load), not (load-file-name).

这篇关于加载路径并加载lisp文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆