summaryrefslogtreecommitdiff
path: root/init.fnl
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2022-03-27 10:27:23 +0300
committerAndrey Listopadov <andreyorst@gmail.com>2022-03-27 10:27:23 +0300
commit89dc4f174b1184367f1a14b8238cef17fd09e878 (patch)
tree29da98ef63daf7443e9f7b757b7d75abb0dbdef1 /init.fnl
parent5ad279b79b4a19550b5ee8f86560d8ee7a00b892 (diff)
fix #4: make relative require work when setting fennel.macro-path
Diffstat (limited to 'init.fnl')
-rw-r--r--init.fnl5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.fnl b/init.fnl
index 7dd1696..0ef4e48 100644
--- a/init.fnl
+++ b/init.fnl
@@ -54,7 +54,10 @@ non-ASCII strings."})
(import-macros {: defn : into : empty
: when-let : if-let : when-some : if-some}
- (if (and ... (not= ... :init)) (.. ... :.init-macros) :init-macros))
+ ;; tricky relative require to make it work from
+ ;; anywhere as (require :cljlib) and as well
+ ;; (import-macros cljm :cljlib)
+ (if ... (if (= ... :init) :init-macros ...) :init-macros))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; Utility functions ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;