如何在 Emacs 中设置组织模式议程默认格式?

发布于 2024-08-23 22:23:46 字数 251 浏览 11 评论 0原文

我希望 Org Mode Agenda 的格式与 Emacs 的其余部分非常不同。如何在每次生成议程时实现这一点?

(注意,这与 this 不是同一个问题,因为 Org模式根据截止日期的接近程度以及议程缓冲区中未给出的其他信息指定不同的面孔。)

谢谢!

I want the Org Mode Agenda to have very different formatting to the rest of Emacs. How can I make this happen every time the Agenda is generated?

(N.b. this is not the same question as this because Org Mode specifies different faces depending on how near a deadline is, and other information that is not given in the Agenda buffer.)

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

残花月 2024-08-30 22:23:46

理解“非常不同的格式”的含义将非常有帮助。尽管如此...

理论上,您应该能够使用 Mxcustomize-apropos org-agenda 和/或通过在 emacs 配置中设置正确的 org-agenda 变量来实现您所寻求的目标。您甚至可以考虑将多个函数/操作绑定在一个自定义函数中,您可以使用该函数来创建/修改议程缓冲区,或者您可以修改 org-agenda-hook 来自动执行操作您需要的。

听起来您确实可以修改缓冲区以使其显示为您想要的方式,如果我理解正确的话,此时的技巧是找出如何自动化此过程。

此外,请考虑以下变量和我使用的 org-agenda 特定配置。

(global-set-key (kbd "C-c o a a") 'org-agenda)
(global-set-key (kbd "C-c o a l") 'org-agenda-list)
(global-set-key (kbd "C-c o a t") 'org-todo-list)
(setq org-agenda-include-all-todo nil)
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-include-diary t)
(setq org-agenda-columns-add-appointments-to-effort-sum t)
(setq org-agenda-custom-commands nil)
(setq org-agenda-default-appointment-duration 60)
(setq org-agenda-mouse-1-follows-link t)
(setq org-agenda-skip-unavailable-files t)
(setq org-agenda-use-time-grid nil)

我希望这有帮助。

It would be very helpful to understand what you mean by "very different formatting." Baring that...

Theoretically, you should be able to either achieve what you seek using either M-x customize-apropos org-agenda, and/or by setting the proper org-agenda variables in your emacs config. You might even consider tying a number of functions/actions together in a custom function that you can use to create/modify the agenda buffer, or you might modify the org-agenda-hook to automatically perform the actions that you require.

It does sound like you are able to modify the buffer to appear the way you want it, the trick at this point, if I understand you correctly is to figure out how to automate this process.

Additionally, consider the following variables and org-agenda specific configurations I use.

(global-set-key (kbd "C-c o a a") 'org-agenda)
(global-set-key (kbd "C-c o a l") 'org-agenda-list)
(global-set-key (kbd "C-c o a t") 'org-todo-list)
(setq org-agenda-include-all-todo nil)
(setq org-agenda-skip-scheduled-if-done t)
(setq org-agenda-skip-deadline-if-done t)
(setq org-agenda-include-diary t)
(setq org-agenda-columns-add-appointments-to-effort-sum t)
(setq org-agenda-custom-commands nil)
(setq org-agenda-default-appointment-duration 60)
(setq org-agenda-mouse-1-follows-link t)
(setq org-agenda-skip-unavailable-files t)
(setq org-agenda-use-time-grid nil)

I hope this helps.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文