Dox*_*Dox 10 emacs elisp org-mode
我找到了一个组织教程,其中解释了如何从文件夹加载组织文件,使用
(setq org-agenda-files (list "~/org/work.org"
"~/org/school.org"
"~/org/home.org"))
Run Code Online (Sandbox Code Playgroud)
题
有没有办法告诉 emacs 将给定文件夹中的所有组织文件加载到议程中?
Dox*_*Dox 10
受到 Aaron 给出的答案的启发,我将配置更改为
(setq org-agenda-files (list "~/org"))
Run Code Online (Sandbox Code Playgroud)
问题就解决了。
使用 Emacs 24.3 附带的 Org 模式,来自C-h v org-agenda-files RET
:
If an entry is a directory, all files in that directory that are matched by
`org-agenda-file-regexp' will be part of the file list.
Run Code Online (Sandbox Code Playgroud)
来自C-h v org-agenda-file-regexp RET
:
org-agenda-file-regexp is a variable defined in 'org.el'.
Its value is "\\`[^.].*\\.org\\'"
[...]
You can customize this variable.
Run Code Online (Sandbox Code Playgroud)
因此,简而言之:评估(add-to-list 'org-agenda-files (expand-file-name "~/org"))
,如果您org-agenda-file-regexp
处于默认值,Org 模式将从~/org
名称以.org
. (如果您org-agenda-file-regexp
不是默认值,或者如果您需要它匹配的不仅仅是名称.org
以M-x customize-variable RET org-agenda-file-regexp RET
.
归档时间: |
|
查看次数: |
8468 次 |
最近记录: |