summaryrefslogtreecommitdiff
path: root/fnl/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-24 22:57:43 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-01-24 22:57:43 +0100
commit7f9bc5193cf27e1546c093bd809651623952a9dd (patch)
tree670ab31769418bdbed969042f866a51e1337bdf0 /fnl/settings
parentb3e07fe32e3d1b7bc1f098f6a9d5e011d6f20f82 (diff)
Set concellevel for orgmode with autocmd
Diffstat (limited to 'fnl/settings')
-rw-r--r--fnl/settings/autocmds.fnl5
1 files changed, 5 insertions, 0 deletions
diff --git a/fnl/settings/autocmds.fnl b/fnl/settings/autocmds.fnl
index 27d6c2d..f6b02ea 100644
--- a/fnl/settings/autocmds.fnl
+++ b/fnl/settings/autocmds.fnl
@@ -13,6 +13,11 @@
(tset vim.opt_local :number false)
(tset vim.opt_local :relativenumber false))}]
[:BufWinEnter {:command "setlocal formatoptions-=cro"}]
+ [:FileType
+ {:pattern :org
+ :callback (fn []
+ (tset vim.opt_local :conceallevel 2)
+ (tset vim.opt_local :concealcursor :nc))}]
[:FileType {:pattern :qf :command "set nobuflisted"}]
[:FileType {:pattern [:gitcommit :markdown] :command "setlocal wrap"}]
[:FileType