emacs org-mode exporting to iCalendar format problem - emacs

I have just started to use Emacs and org-mode. I am using emacs (version 26.3) on mac.
I want to create items in org-mode that are scheduled and export them to iCalendar format so that I can import them to Calendar app. Here is org file caltest.org.
* test calendar
** meeting x
SCHEDULED: <2020-01-16 Thu 12:15-14:00>
:PROPERTIES:
:LOCATION: room 1
:END:
** TODO meeting y
SCHEDULED: <2020-01-15 Wed>
:PROPERTIES:
:LOCATION: room 2
:END:
When I export (C-c C-e c f) file to iCalendar format. I get the following file generated caltest.ics with this content:
BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:caltest
PRODID:-//Mario Kusek//Emacs with Org mode//EN
X-WR-TIMEZONE:CET
X-WR-CALDESC:
CALSCALE:GREGORIAN
END:VCALENDAR
As you can see there are no events in the file.
I am using org-plus-contrib-20191230 for org-mode. This is the latest version. I don't know if there are some logs which I can inspect or how to debug exporting.
What am I doing wrong and how can I inspect exporting?

Related

Find archived entries in org-mode by properties within an archive file

I have an agenda file, and use the default archive file. So agenda.org and archive to agenda.org_archive for example. When archived, the items get archival properties
* DONE some task
:PROPERTIES:
:ARCHIVE_TIME: 2021-07-27 Tue 15:18
:ARCHIVE_FILE: ~/agenda.org
:ARCHIVE_OLPATH: Misc
:ARCHIVE_CATEGORY: notes
:ARCHIVE_TODO: DONE
:END:
I'd like to search for these using org-tags-view, with ARCHIVE_TIME>"<+2w>" for example. This works in my main agenda file if I toggle org-agenda-archives-mode, but I cannot get it to search the agenda.org_archive file. I have added this file to org-agenda-text-search-extra-files, but that doesn't help. In fact this documentation says this "has no effect on other types of agenda commands, such as todo and tags/property searches".
So how can I search archives within an archive file?
Also, I have attempted by adding the archive file directly to org-agenda-files:
(setq org-agenda-files '("~/org"))
This directory contains both files, but this doesn't work either.

Why is orgmode creating a new/duplicate PROPERTIES section with a new ID?

This morning I noticed that in the agenda view my Habit graphs were not showing but Habit view was turned on. When I looked in my actual org files, I saw that new PROPERTIES sections had been created:
*** TODO Clean Toothbrush thingy
SCHEDULED: <2015-10-18 Sun .+1m>
:PROPERTIES:
:ID: 48388d21-bf85-4d88-b7ea-6dd9ca40f6b9
:END:
:LOGBOOK:
- State "DONE" from "STARTED" <2014-01-01 Wed 18:35>
:END:
:PROPERTIES:
:ID: 2031B102-0202-4F53-A4FD-329C0021A837
:STYLE: habit
:LOGGING: DONE(!)
:END:
It seems as though: 1) OrgMode has suddenly changed it's preference of the ordering of PROPERTIES and LOGBOOK and 2) When out of order, it's created a new PROPERTIES section where it wants it. (I believe the new PROPERTIES sections were created by M-x org-mobile-push.)
Yes, this is true and described in latest release notes: Properties drawers are now required to be located right after a headline and its planning line, when applicable.
On that same page is the definition of a function org-repair-property-drawers which will repair them.

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.)
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))
The accepted answer did not work for me. I was going to display CLOCKSUM in hours. This worked:
(setq org-duration-format 'h:mm)

Org-mode: how to convert date format?

I'm using Emacs org-mode's agenda feature.
When I put a timestamp on an item in my gtd.org file, with C-c . , it will show up in my agenda for the week. The date is in this format: <2011-12-25 Sun>
If I use M-x holidays to get a list of holidays, the dates are in this format:
Sunday, December 25, 2011: Christmas
How can I add holidays to my gtd.org file, in a format that shows up in the agenda?
I've looked through the Emacs manual and the org-mode manual, for either a way to change the date formats in 'holidays', or a way to convert a date into org-mode's format.
You can add them to the calendar by adding the following SEXP to your org file:
%%(org-calendar-holidays)
See: Calendar/Diary Integration
The specifc entry in your org file could be as follows (This works just like this):
* Holidays
:PROPERTIES:
:CATEGORY: Holiday
:END:
%%(org-calendar-holidays)
If you want a different category or different name for the headline, you can do so. But as a generic entry it will provide the information you want. (It matches what my org-file has)

How do I use overlay specifications for lists in org-mode's beamer export feature?

It seems like itemize lists are automatically generated in the beamer export for org-mode. I can specify things like <only#2> for things like blocks, but it seems like I have to write out an itemize list by hand if I want to use it with an item. For example, I expect to type this and see one list item at a time, but I don't, I see them all in one slide:
*** Test
**** one
:PROPERTIES:
:BEAMER_envargs: <only#+>
:END:
**** two
:PROPERTIES:
:BEAMER_envargs: <only#+>
:END:
**** three
:PROPERTIES:
:BEAMER_envargs: <only#+>
:END:
Also, it seems like I should be able to do:
*** Test
:PROPERTIES:
:BEAMER_envargs: [<only#+>]
:END:
- one
- two
- three
for the same effect, but I see the whole list. This doesn't work either:
*** Test
:PROPERTIES:
:BEAMER_envargs: [<only#+>]
:END:
**** one
**** two
**** three
What am I missing here?
The org-mode Info node has some extensive examples (at least in the most up to date development version).
The following minimal example should work exactly as you wish
#+LATEX_CLASS: beamer
* Section
*** Slide
List
#+ATTR_BEAMER: :overlay +-
- item 1
- item 2
Let me know if I misunderstood your request.