summaryrefslogtreecommitdiff
path: root/init.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2021-06-23 18:46:22 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2021-06-23 18:46:22 +0300
commitf49835c11b16b0d8cf136f076c31cbc28f1f4931 (patch)
treedacf3c29ce3849835e5d4c7f934a7f42a6a0e7c2 /init.fnl
parent89229826da0c2b8e019f2f078c2e8de7471e1d7e (diff)
refactor library to use new init-macros.fnl feature
Old way of requiring the library: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib.macros) New way: (local clj (require :fennel-cljlib) (import-macros cljm :fennel-cljlib)
Diffstat (limited to 'init.fnl')
-rw-r--r--init.fnl4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.fnl b/init.fnl
index 2eafa45..845ebbb 100644
--- a/init.fnl
+++ b/init.fnl
@@ -54,7 +54,7 @@ non-ASCII strings."})
(import-macros {: fn* : into : empty : with-meta
: when-let : if-let : when-some : if-some}
- (if (and ... (not= ... :init)) (.. ... :.macros) :macros))
+ (if (and ... (not= ... :init)) (.. ... :.init-macros) :init-macros))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Utility functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -740,7 +740,7 @@ Map `mul' over two tables:
Basic `zipmap' implementation:
``` fennel
-(import-macros {: into} :macros)
+(import-macros {: into} :init-macros)
(fn zipmap [keys vals]
(into {} (mapv vector keys vals)))