summaryrefslogtreecommitdiff
path: root/lua/config/orgmode.lua
blob: a7054dd160bef7b7aa1ff871a2268a550583a420 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
local status_ok, orgmode = pcall(require, "orgmode")
if not status_ok then
  return
end

-- Load custom tree-sitter grammar for org filetype
orgmode.setup_ts_grammar()

orgmode.setup {
  org_agenda_files = { "~/.local/share/org/**/*" },
  org_default_notes_file = "~/.local/share/org/refile.org",
  org_agenda_templates = {
    t = { description = "Task", template = "* TODO %?\n %u" },
    m = {
      description = "Meeting",
      template = "* MEETING %? :MEETING:\n:LOGBOOK:\nCLOCK: %U\n:END:",
    },
    n = { description = "Note", template = "* NOTE %? :NOTE:%?\n %u" },
  },
}