Previous: Diary, Up: Diary


7.2.1.1 Planner-Diary Advanced Features

The features described here are part of the development version. They are subject to change without notice. They may be buggy. The documentation may be inaccurate. Use at your own risk.

There is a lot of code redundancy in the development version. This is intentional and makes it easier to change the code for one type of diary section without breaking others.

Diary views

Currently Planner-Diary supports six different views of your diary entries:

  1. Ordinary fancy diary display (what you get by pressing d in the calendar buffer with fancy-diary-display switched on)
  2. Schedule/Appointments (all entries from 1 that have a time assigned to them
  3. Diary without appts (1 without 2)
  4. cal-desk display (appts on top, non appts entries at bottom)
  5. A private diary (same as 1, but uses a different diary-file)
  6. A public diary (same as 1, but uses a different diary-file)

Put the following line of Lisp code in your day plan pages to display your diary entries:

     <lisp>(planner-diary-entries-here)</lisp>

The function planner-diary-entries-here takes two optional arguments—the diary file you want to use and the number of days you want to display.

Exporting Planner-specific Diary files

If you would like to export diary entries from your Planner pages to separate Diary files, add (require 'planner-export-diary) to your config. The following steps describe the usage of the functions and options contained in this file.

  1. Customize planner-export-diary-file. The default value is “~/diary.planner”.
  2. Add the following line to your main Diary file (default: “~/diary”).
              #include ~/diary.planner
    
  3. Then, call M-x planner-export-diary-future whenever you want future diary entries published. You can automatically publish entries by adding either of the following to your .emacs.