diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-07 22:32:53 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-04-07 22:32:53 +0200 |
commit | 71d538630b226da37e4ef21c5a84d6fad5f55421 (patch) | |
tree | 5f87a9c1194a556d12ffca79ea98a08d76af548e /fnl/config/orgmode.fnl | |
parent | fa9a5c6b80b5b0ffdcddc4b1d1c6cfe887d0bb04 (diff) |
fix(load plugin): correct loading err
Diffstat (limited to 'fnl/config/orgmode.fnl')
-rw-r--r-- | fnl/config/orgmode.fnl | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/fnl/config/orgmode.fnl b/fnl/config/orgmode.fnl index ceea169..1ac245a 100644 --- a/fnl/config/orgmode.fnl +++ b/fnl/config/orgmode.fnl @@ -2,16 +2,15 @@ (module config.orgmode {autoload {util util}}) -(let [(ok? orgmode) util.load-plugin :orgmode] - (when ok? - (do - (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:\n CLOCK: %U\n :END:"} - :n { :description "Note" :template "* NOTE %? :NOTE:\n %u" }}})))) +(let [orgmode (util.load-plugin :orgmode)] + (do + (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:\n CLOCK: %U\n :END:"} + :n { :description "Note" :template "* NOTE %? :NOTE:\n %u" }}}))) |