组织议程:显示周末天数(仅) [英] Org-Agenda: Show Weekend Days (only)

查看:70
本文介绍了组织议程:显示周末天数(仅)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的组织议程中有一个自定义议程视图,它只显示周末.

I would like to have a custom agenda view in my org agenda, that shows only weekend days.

例如,当我打开第 [m] 个视图 (M-x org-agenda a v m) 时,我会看到当前月份.我想隐藏工作日并仅显示周末.我该怎么做?

For example, when I open [m]onth view (M-x org-agenda a v m), I see the current month. I would like to hide the work days and show weekend days only. How can I do that?

推荐答案

可能是扩展主要组织议程调度的最佳途径,而不是功能较弱的视图调度.这将允许您向主 org-agenda 菜单添加更多命令.这种调度可以通过 org-agenda-custom-commands 变量进行自定义,您可以自定义或设置该变量.这将允许您添加自定义命令.例如下周末的视图:

Possibly the best route it to extend the main org-agenda dispatch rather than the view dispatch which is less powerful. This will allow you to add more commands to the main org-agenda menu. This dispatch is quite customizable through the org-agenda-custom-commands variable, which you can customize or set. This will allow you to add custom commands. For example for a view of next weekend:

(add-to-list 'org-agenda-custom-commands
           '("W" "Weekend"
             ((agenda "" ))
             (
              (org-agenda-overriding-header "WEEKEND")
              (org-agenda-span 2)
              (org-agenda-start-day "saturday")    
              )) t)

那么

M-x 组织议程 S-w

下周末给你.将org-agenda 绑定到C-ca 是很典型的.所以这变成了 C-caW.

gives you next weekend. It is quite typical to bind org-agenda to C-ca. So this becomes C-caW.

这篇关于组织议程:显示周末天数(仅)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆