Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs Org Mode: How To Stop Total in Column View Showing Number of Days?

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.)

like image 736
FixMaker Avatar asked Jul 29 '13 17:07

FixMaker


People also ask

What is the difference between column view and org mode?

In column view, each outline node is turned into a table row. Columns in this table provide access to properties of the entries. Org mode implements columns by overlaying a tabular structure over the headline of each item. While the headlines have been turned into a table row, you can still change the visibility of the outline tree.

How do I turn the column view on or off?

You can switch the column view off and return to the normal view by pressing `q' while the cursor is on the highlighted entry – but you can turn the column view on from any location in the buffer. The first headline is now a row of browsable columns displaying properties.

What does the default Org-columns-default format show?

The default column only shows the item, the TODO state, the priority of the item and its tags, we will see later how to add other properties of your own. This default setup is driven by the variable org-columns-default-format, which global value is:

Where does column view work?

Column view also works in agenda buffers (see Agenda Views) where queries have collected selected items, possibly from a number of files. The COLUMNS format property. How to create and use column view.


2 Answers

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))
like image 199
fniessen Avatar answered Sep 21 '22 13:09

fniessen


The accepted answer did not work for me. I was going to display CLOCKSUM in hours. This worked:

(setq org-duration-format 'h:mm)

like image 30
Samim Avatar answered Sep 18 '22 13:09

Samim