summaryrefslogtreecommitdiff
path: root/lua/config/orgmode.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/config/orgmode.lua')
-rw-r--r--lua/config/orgmode.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/lua/config/orgmode.lua b/lua/config/orgmode.lua
new file mode 100644
index 0000000..82dac48
--- /dev/null
+++ b/lua/config/orgmode.lua
@@ -0,0 +1,12 @@
+local status_ok, orgmode = pcall(require, "orgmode")
+if not status_ok then
+ return
+end
+
+-- Load custom tree-sitter grammar for org filetype
+orgmode.setup_ts_grammar()
+
+orgmode.setup {
+ org_agenda_files = { "~/.local/share/org/**/*" },
+ org_default_notes_file = "~/.local/share/org/refile.org",
+}