Emacs组织模式:如何在列视图中停止总共显示天数? [英] Emacs Org Mode: How To Stop Total in Column View Showing Number of Days?

查看:102
本文介绍了Emacs组织模式:如何在列视图中停止总共显示天数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Emacs 23.4.1和Org-Mode 8.0.6



在我的组织文件中,我有一个任务需要使用的小时数相关标题的 Effort 属性。例如:

  *我的任务
** TODO读一本书...
** TODO看电影...
** TODO了解组织模式
:财产:
:努力:2:00
:END:

然后我可以切换到列视图,并查看所有我的任务的总时间。我通过在我的组织文件中添加以下行来实现:

 #+ COLUMNS:%55ITEM(Details)%5Effort ){:} 

当总小时数大于24时,总数显示在天数和小时数,例如 3d 14 如何格式化显示,以便告诉我总共的小时数(和分钟),而不是将其分成几天?



(简而言之,我想要我的任务的总体努力显示 86:00 ,而不是 3d 14

解决方案

请参阅var org-time-clocksum-format:

  ;;创建CLOCKSUM行时以及生成
;;时使用的格式化字符串时间(避免显示天数)
(setq org-time-clocksum-format
'(:小时%d:require-hours t:分钟:%02d:require-minutes t) )


I'm using Emacs 23.4.1 and Org-Mode 8.0.6

In my org file I have the estimated number of hours that a task will take using the Effort property of the associated heading. For example:

* My Tasks
** TODO Read a book...
** TODO Watch a film...
** TODO Learn org-mode
   :PROPERTIES:
   :Effort:  2:00
   :END:

Then I can switch to column view and view the total time estimated for all of "my tasks". I do this by adding the following line to my org file:

#+COLUMNS: %55ITEM(Details) %5Effort(Time){:}

When the total number of hours is greater than 24, then the total is displayed in terms of days and hours, e.g. 3d 14. How can I format the display so that it tells me the total number of hours (and minutes), rather than breaking it into days?

(In short, I want the total effort of "My Tasks" to display 86:00, rather than 3d 14.)

解决方案

See the var org-time-clocksum-format:

;; format string used when creating CLOCKSUM lines and when generating a
;; time duration (avoid showing days)
(setq org-time-clocksum-format
      '(:hours "%d" :require-hours t :minutes ":%02d" :require-minutes t))

这篇关于Emacs组织模式:如何在列视图中停止总共显示天数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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