about summary refs log tree commit diff
path: root/dev
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-07-26 15:49:13 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-07-26 18:08:57 +0900
commit045a6efa3119c319900756f3847ec2e87a9d2c45 (patch)
tree2a5423521793bd86cdfe77b79c83b32762e87989 /dev
parentf4d9aadefa04e2666c0cc8e27d248cf470d8b43b (diff)
downloaddotfiles-045a6efa3119c319900756f3847ec2e87a9d2c45.tar.gz
Set up a guix system
Diffstat (limited to 'dev')
-rw-r--r--dev/.guile20
1 files changed, 18 insertions, 2 deletions
diff --git a/dev/.guile b/dev/.guile
index bcbc981..ce2bdfc 100644
--- a/dev/.guile
+++ b/dev/.guile
@@ -1,2 +1,18 @@
-(use-modules (ice-9 readline))
-(activate-readline)
+(cond ((false-if-exception (resolve-interface '(ice-9 readline)))
+       =>
+       (lambda (module)
+         ;; Enable completion and input history at the REPL.
+         ((module-ref module 'activate-readline))))
+      (else
+       (display "Consider installing the 'guile-readline' package for
+convenient interactive line editing and input history.\n\n")))
+
+      (unless (getenv "INSIDE_EMACS")
+        (cond ((false-if-exception (resolve-interface '(ice-9 colorized)))
+               =>
+               (lambda (module)
+                 ;; Enable completion and input history at the REPL.
+                 ((module-ref module 'activate-colorized))))
+              (else
+               (display "Consider installing the 'guile-colorized' package
+for a colorful Guile experience.\n\n"))))