diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-17 22:08:02 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-07-17 22:08:02 +0200 |
commit | 4090ef28468e4f70525eb86a0dadacca998c391f (patch) | |
tree | f67710de17757f60661301cb9648cf16795e2a3e /fnl/config/orgmode.fnl | |
parent | a9c696bde8ec106f8f3ecaedbf1bf2850ab3fbca (diff) |
Improve util import
Diffstat (limited to 'fnl/config/orgmode.fnl')
-rw-r--r-- | fnl/config/orgmode.fnl | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fnl/config/orgmode.fnl b/fnl/config/orgmode.fnl index 81c24a3..0def299 100644 --- a/fnl/config/orgmode.fnl +++ b/fnl/config/orgmode.fnl @@ -1,17 +1,17 @@ ;; Orgmode for nvim. -(module config.orgmode {autoload {nvim aniseed.nvim - util util}}) +(module config.orgmode {autoload {nvim aniseed.nvim : util}}) -(nvim.ex.set "conceallevel=2") -(nvim.ex.set "concealcursor=nc") +(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 {:t {:description :Task - :template "* TODO %?\n %u"} - :m {:description :Meeting - :template "* MEETING %? :MEETING: :LOGBOOK: CLOCK: %U :END:"} - :n {:description :Note - :template "* NOTE %? :NOTE:\n %u"}}})) + :org_agenda_templates templates})) |