好吧,我是修改我的.el文件的新手。 所有我想要做的是一样的东西: (setq Windows的路径为“C:/ Documents和设置/ cthiel /项目/ windows_setup/emacs的/”)使用变量的值来设置我的加载路径
,然后在emacs的目录中的子目录钉到负载路径。 一些诸如(它是如何在做红宝石): (添加到列表“负载路径‘#{Windows的路径} /外部’)
好吧,我是修改我的.el文件的新手。 所有我想要做的是一样的东西: (setq Windows的路径为“C:/ Documents和设置/ cthiel /项目/ windows_setup/emacs的/”)使用变量的值来设置我的加载路径
,然后在emacs的目录中的子目录钉到负载路径。 一些诸如(它是如何在做红宝石): (添加到列表“负载路径‘#{Windows的路径} /外部’)
(setq windows-path "c:/Documents and Settings/cthiel/projects/windows_setup/emacs/"
(add-to-list 'load-path (concat windows-path "external"))
这是否达到你的目标是什么?
文档:
CONCAT是 `fns.c内置的功能”。
(CONCAT &其余序列)
串连所有的参数,使 结果的字符串。结果是一个 字符串,其元素是所有参数的元素 。每个参数 可以是字符串(或整数)的字符串或列表或向量。
例如:
(concat "The answer to life, " "the universe " "and everything " "is " "42")
=> "The answer to life, the universe and everything is 42"
退房EmacsWiki:LoadPath的递归添加目录的提示。
我想你想要的东西,如:
(setq windows-path "c:/Documents and Settings/cthiel/projects/windows_setup/emacs/")
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
(let* ((my-lisp-dir windows-path)
(default-directory my-lisp-dir))
(setq load-path (cons my-lisp-dir load-path))
(normal-top-level-add-subdirs-to-load-path)))
的伎俩就好了,谢谢!知道这是一件容易的事,只是不知道是什么。 :} – bergyman 2010-01-19 15:42:19