Skip to content

Advance Usage ‐ Custom Preset Tag

yibie edited this page Jan 17, 2025 · 1 revision

Custom Preset Tag

Org-supertag provides some preset tag types, here are examples:

project
Project management
  • status: Status (planning/active/on-hold/completed/cancelled)
  • priority: Priority (high/medium/low)
  • deadline: Deadline
  • owner: Owner
task
Task management
  • status: Status (todo/in-progress/blocked/done/cancelled)
  • priority: Priority (A/B/C)
  • due: Due date
  • assignee: Assignee

Other preset tags include: person, meeting, place, company, note, etc.

M-x org-supertag-tag-edit-preset
Edit preset tags

Use this command to edit preset tags, it will automatically add custom-set-variables configuration to your init.el.

Setting Custom Preset Tags in init.el

You can customize preset tags by setting the `org-supertag-preset-tags` variable in init.el. Each preset tag consists of a tag name and field definitions:

(setq org-supertag-preset-tags
      '(("book" . ((:name "status"
                   :type options 
                   :options ("reading" "completed" "want-to-read")
                   :description "Reading status")
                  (:name "rating"
                   :type number
                   :description "Rating")
                  (:name "author"
                   :type string
                   :description "Author")))))