summaryrefslogtreecommitdiff
path: root/fnl/plugins/orgmode.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:03:58 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-29 00:03:58 +0200
commit7096adce11b93787170c09b79a6170d97b4a977c (patch)
tree1ccb3901136fc31728652e4db9595c1d7b1cccf5 /fnl/plugins/orgmode.fnl
parentbeb3ed1effdc5dbd047c583598b83615075363b7 (diff)
Replace fn with λ and how cmds are imported
Diffstat (limited to 'fnl/plugins/orgmode.fnl')
-rw-r--r--fnl/plugins/orgmode.fnl21
1 files changed, 13 insertions, 8 deletions
diff --git a/fnl/plugins/orgmode.fnl b/fnl/plugins/orgmode.fnl
index bf8ff0f..0868860 100644
--- a/fnl/plugins/orgmode.fnl
+++ b/fnl/plugins/orgmode.fnl
@@ -29,17 +29,17 @@
(local auto-cmds
[[:FileType
{:pattern :org
- :callback (fn []
+ :callback (λ []
(tset vim.opt_local :foldenable false)
(tset vim.opt_local :foldlevelstart 0)
(tset vim.opt_local :foldlevel 0)
(tset vim.opt_local :concealcursor :nc)
(tset vim.opt_local :conceallevel 2))}]])
-(fn init []
- (let [cmds (require :util.cmds)]
- (cmds.create-user-cmds user-cmds)
- (cmds.create-auto-cmds auto-cmds)))
+(λ init []
+ (let [{: create-auto-cmds : create-user-cmds} (require :util.cmds)]
+ (create-user-cmds user-cmds)
+ (create-auto-cmds auto-cmds)))
(local templates
{:t {:description :Todo :template "* TODO %?\n %u\n DEADLINE: %T\n"}
@@ -77,12 +77,17 @@
(local roam-templates
{:n {:description :node
- :template "#+category: %^{type}\n#+filetags: %^{tags}\n#+date: %u\n\n* %?"
+ :template "#+category: %^{type}
+#+filetags: %^{tags}
+#+date: %u
+
+* %?"
:target "%<%Y%m%d%H%M%S>-%[slug].org"}})
-(local roam-opts {:directory "~/.local/share/org/roam" :templates roam-templates})
+(local roam-opts {:directory "~/.local/share/org/roam"
+ :templates roam-templates})
-(fn config []
+(λ config []
(let [orgmode (require :orgmode)
roam (require :org-roam)
bullets (require :org-bullets)]