summaryrefslogtreecommitdiff
path: root/fnl/config
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-16 21:57:58 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-05-16 21:57:58 +0200
commitcb129352321700c03b0ba24cf8c30dbb6b37b024 (patch)
tree2185565ccb6001a650972f83a1cf1794d452e8ec /fnl/config
parentf9ea89db9b38c64469c1dc8b75659e7b74917236 (diff)
Add spell check in org
Diffstat (limited to 'fnl/config')
-rw-r--r--fnl/config/autocmd.fnl2
-rw-r--r--fnl/config/orgmode.fnl6
2 files changed, 6 insertions, 2 deletions
diff --git a/fnl/config/autocmd.fnl b/fnl/config/autocmd.fnl
index d344015..911d8dc 100644
--- a/fnl/config/autocmd.fnl
+++ b/fnl/config/autocmd.fnl
@@ -24,6 +24,6 @@
(autocmd :FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"})
-(autocmd :FileType {:pattern [:gitcommit :markdown] :command "setlocal spell"})
+(autocmd :FileType {:pattern [:gitcommit :markdown :org] :command "setlocal spell"})
(autocmd :VimResized {:command "tabdo wincmd ="})
diff --git a/fnl/config/orgmode.fnl b/fnl/config/orgmode.fnl
index 5913069..81c24a3 100644
--- a/fnl/config/orgmode.fnl
+++ b/fnl/config/orgmode.fnl
@@ -1,5 +1,9 @@
;; Orgmode for nvim.
-(module config.orgmode {autoload {util util}})
+(module config.orgmode {autoload {nvim aniseed.nvim
+ util util}})
+
+(nvim.ex.set "conceallevel=2")
+(nvim.ex.set "concealcursor=nc")
(let [orgmode (util.load-plugin :orgmode)]
(orgmode.setup_ts_grammar)