-
Notifications
You must be signed in to change notification settings - Fork 61
Expand file tree
/
Copy pathorgmode.lua
More file actions
32 lines (30 loc) · 706 Bytes
/
Copy pathorgmode.lua
File metadata and controls
32 lines (30 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
local M = {}
M.setup = function()
local status_ok, org_mode = pcall(require, "orgmode")
if not status_ok then
return
end
org_mode.setup {
org_agenda_files = { "~/shared/orgs/**/*" },
org_default_notes_file = "~/shared/orgs/refile.org",
org_agenda_templates = {
T = {
description = "Todo",
template = "* TODO %?\n DEADLINE: %T",
target = "~/shared/orgs/todos.org",
},
w = {
description = "Work todo",
template = "* TODO %?\n DEADLINE: %T",
target = "~/shared/orgs/work.org",
},
},
mappings = {
global = {
org_agenda = "go",
org_capture = "gC",
},
},
}
end
return M