summaryrefslogtreecommitdiff
path: root/lua/user/orgmode.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-10-08 11:57:32 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-10-08 11:57:32 +0100
commitab8abc7f22d2345690b469a5e3bde9f3d63ac180 (patch)
tree8034ed8a16e9712f9f244a3d0ffc26466defa2de /lua/user/orgmode.lua
parent02af2c0299b923946092a49cdbae20ba837cb4be (diff)
Fixed orgmode error message relating to treesitter. Added another latex
template. Tidied up a number of other files
Diffstat (limited to 'lua/user/orgmode.lua')
-rw-r--r--lua/user/orgmode.lua10
1 files changed, 4 insertions, 6 deletions
diff --git a/lua/user/orgmode.lua b/lua/user/orgmode.lua
index 7c0443e..c1a1a4e 100644
--- a/lua/user/orgmode.lua
+++ b/lua/user/orgmode.lua
@@ -1,12 +1,10 @@
-local orgmode_status_ok = pcall(require, "orgmode")
+local orgmode_status_ok, orgmode = pcall(require, "orgmode")
if not orgmode_status_ok then
return
end
-require("orgmode").setup_ts_grammer()
-require("orgmode").setup({
+orgmode.setup({
org_agenda_files = {'~/org/**/*'},
org_default_notes_files = {'~/org/refile.org'}
-})
-
-
+}
+)