diff options
| author | Andrey Listopadov <andreyorst@gmail.com> | 2022-03-27 10:27:23 +0300 |
|---|---|---|
| committer | Andrey Listopadov <andreyorst@gmail.com> | 2022-03-27 10:27:23 +0300 |
| commit | 89dc4f174b1184367f1a14b8238cef17fd09e878 (patch) | |
| tree | 29da98ef63daf7443e9f7b757b7d75abb0dbdef1 /init.fnl | |
| parent | 5ad279b79b4a19550b5ee8f86560d8ee7a00b892 (diff) | |
fix #4: make relative require work when setting fennel.macro-path
Diffstat (limited to 'init.fnl')
| -rw-r--r-- | init.fnl | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |