Doom Emacs:在哪里放置组织模式配置项

问题描述 投票:0回答:2

Windows 11 WSL2 德班 Emacs 27.1 厄运 emacs 新安装,目前完全未配置。

嗨,我是 emacs/doom emacs 的新手,我是第一次尝试配置 org-mode。我应该将配置项放入哪个配置文件(init.el、config.el、custom.el 或其他)?

按照以下教程作为配置的起点: https://config.daviwil.com/workflow

非常感谢您的帮助,西蒙

emacs org-mode
2个回答
1
投票

只要在你的

config.el
就足够了。


0
投票

在 config.el(废话)和

(after! org ... )
块中。例如,如果您想添加捕获模板,它们只能在组织包加载后设置:

(after! org
    (add-to-list 'org-capture-templates
            '("T" "Custom todo" entry
                    (file+headline +org-capture-todo-file "Inbox")
                    "* TODO %?\n%i%U\n%a" :prepend t))
    (add-to-list 'org-capture-templates
            '("J" "Custom journal" entry
                    (file+olp+datetree +org-capture-journal-file)
                    "* =%<%H:%M>= %?\n%i\n%a" :kill-buffer t))

我是 emacs/doom 的新手

对于任何在相同情况下读到它的人 - 愿上帝帮助你。

© www.soinside.com 2019 - 2024. All rights reserved.