[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support.
From: |
Ludovic Courtès |
Subject: |
[bug#33466] [PATCH 2/2] repl: Add 'colorized' and 'readline' support. |
Date: |
Sun, 25 Nov 2018 21:40:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Oleg Pykhalov <address@hidden> skribis:
> * guix/scripts/repl.scm (guix-repl): Add 'colorized' and 'readline' support.
> ---
> guix/scripts/repl.scm | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
> index 1a105f51e..eeaf4acc4 100644
> --- a/guix/scripts/repl.scm
> +++ b/guix/scripts/repl.scm
> @@ -188,6 +188,23 @@ call THUNK."
> (save-module-excursion
> (lambda ()
> (set-current-module user-module)
> + (cond ((false-if-exception (resolve-interface '(ice-9
> readline)))
> + =>
> + (lambda (module)
> + ;; Enable completion and input history at the REPL.
> + ((module-ref module 'activate-readline))))
What about simply loading ~/.guile when it exists?
Ludo’.