From 4090ef28468e4f70525eb86a0dadacca998c391f Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 17 Jul 2022 22:08:02 +0200 Subject: Improve util import --- fnl/config/orgmode.fnl | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'fnl/config/orgmode.fnl') 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})) -- cgit v1.2.3-70-g09d2