有没有一种快速(自动)的方法,可以使用emacs将目录中的所有文件合并成一个长文件呢?例如:
>Text_1.txt
>{contents of Text_1}
>Text_2.txt
>{contents of text2}
>FinalResult.txt
>{contents of Text_1
>contents of Text2}
read-directory-name
前面添加了file-name-as-directory
,因为我第一次尝试使用此函数时粘贴的目录名称没有正斜杠,导致出现错误,因为该函数预计目录名称以正斜杠结尾。 - lawlist