summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Listopadov <andreyorst@gmail.com>2022-03-27 13:26:18 +0000
committerAndrey Listopadov <andreyorst@gmail.com>2022-03-27 13:26:18 +0000
commit60e091c0379950a5851d74a01a8c264c6ccbf3c2 (patch)
tree72a8f4b41b0f7a11fa7bc70e29e643f8a6d8d664
parent72b932cf679f18dc4cfb1a4a6893cc6d68e37fc9 (diff)
parent89dc4f174b1184367f1a14b8238cef17fd09e878 (diff)
Merge branch 'relative-require-shenanigans' into 'master'
fix #4: make relative require work when setting fennel.macro-path Closes #4 See merge request andreyorst/fennel-cljlib!14
-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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;