From 6f7cba15434c096e6c46a6de4da676890bce45ef Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 26 Aug 2015 08:09:27 -0400 Subject: guile: Add helpful load path tweaking procedure. --- dotfiles/.guile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotfiles/.guile b/dotfiles/.guile index 9038b3b..47dd3a5 100644 --- a/dotfiles/.guile +++ b/dotfiles/.guile @@ -2,3 +2,10 @@ (use-modules (ice-9 readline)) (activate-readline) + +(define-syntax-rule (push! var x) + (set! var (cons x var))) + +(define (add-to-load-path* dir) + (push! %load-path dir) + (push! %load-compiled-path dir)) -- cgit v1.2.3