0
我想要将一个文件夹中的所有emacs配置文件合并到一个文件中。 现在我做到这一点使用bash脚本文件,它看起来像这样:Elisp - >将目录中的所有文件合并到一个文件中
> init.el
for d in ./defun/*.el ; do
cat $d >> init.el
echo $d
done
我知道Emacs有一个“合并”选项,但它只能合并2个文件。
非常感谢您提前帮助!
在emacs lisp中,shell提示符下的'cat defun/*。el> init.el'或'(shell-command“cat defun/*。el> init.el”)有什么问题? – sds 2013-04-29 16:48:52
太棒了!把它从'出了什么问题'改写为'你试过了',这实际上是我的问题的解决方案:(shell-command) – RafaelGP 2013-05-01 09:34:14