summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2015-08-26 08:09:27 -0400
committerDavid Thompson <dthompson2@worcester.edu>2015-08-26 08:09:49 -0400
commit6f7cba15434c096e6c46a6de4da676890bce45ef (patch)
tree943ad9010eec5e14f791da3ec55abf3410b9073f
parent7efae64df364016790d7fccb58dbee4c824a8b82 (diff)
guile: Add helpful load path tweaking procedure.
-rw-r--r--dotfiles/.guile7
1 files changed, 7 insertions, 0 deletions
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))