diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-27 01:22:49 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2022-12-27 01:22:49 +0100 |
commit | 54493eb7e02723c8da470eb3a8da35c6660dac9f (patch) | |
tree | a1e0145daf87b9bfbd3526d2a518c52a399382d0 /fnl | |
parent | 45be0874b8595ee031f5a22f8f3ae24731fb6164 (diff) |
Remove notifications in orgmode
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/config/orgmode.fnl | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/fnl/config/orgmode.fnl b/fnl/config/orgmode.fnl index 216fe4c..bc73bb7 100644 --- a/fnl/config/orgmode.fnl +++ b/fnl/config/orgmode.fnl @@ -18,29 +18,11 @@ (defn- get-date [task] (string.format "%s: %s" task.type (task.time:to_string))) -(def- notifications - {:reminder_time [0 1 5 10] - :repeater_reminder_time [0 1 5 10] - :deadline_warning_reminder_time [0] - :cron_notifier (fn [tasks] - (each [_ task (ipairs tasks)] - (let [title (create-title task) - sub-title (create-subtitle task) - date (get-date task)] - (if (vim.fn.executable :notify-send) - (vim.loop.spawn :notify-send - {:args [:--icon=.local/share/nvim/site/pack/packer/start/orgmode/assets/orgmode_nvim.png - (string.format "%s\n%s\n%s" - title - subtitle - date)]})))))}) - (def- opts {:org_agenda_files ["~/.local/share/org/**/*"] :org_hide_emphasis_markers true :org_agenda_start_on_weekday false :org_default_notes_file "~/.local/share/org/refile.org" - :org_agenda_templates templates - : notifications}) + :org_agenda_templates templates}) (let [orgmode (util.prequire :orgmode)] (orgmode.setup_ts_grammar) |