summaryrefslogtreecommitdiff
path: root/fnl/config/orgmode.fnl
blob: 0def29934e71ebfae64e0fde8a11fcc56b014b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; Orgmode for nvim.
(module config.orgmode {autoload {nvim aniseed.nvim : util}})

(nvim.ex.set :conceallevel=2)
(nvim.ex.set :concealcursor=nc)

(def- templates
      {:t {:description :Task :template "* TODO %?\n %u\n DEADLINE: %T\n :TAGS:"}
       :m {:description :Meeting
           :template "* MEETING %? :MEETING: :LOGBOOK: CLOCK: %U :END:"}
       :n {:description :Note :template "* NOTE %? :NOTE:\n %u\n :TAGS:"}})

(let [orgmode (util.load-plugin :orgmode)]
  (orgmode.setup_ts_grammar)
  (orgmode.setup {:org_agenda_files ["~/.local/share/org/**/*"]
                  :org_default_notes_file "~/.local/share/org/refile.org"
                  :org_agenda_templates templates}))