[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Editing Scheme in the installation image
From: |
Kei Kebreau |
Subject: |
Re: Editing Scheme in the installation image |
Date: |
Thu, 05 Jan 2017 20:54:34 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hello Guix!
>
> One issue that’s often reported is that it’s inconvenient to edit the
> config file with all its parentheses in the installation image given the
> available options (Zile, Nano, and nvi).
>
> Something like Paredit and ‘show-paren-mode’ in Emacs would help avoid
> mistakes such as unbalanced parenthesis. However ‘emacs-minimal’ takes
> 180 MiB and it would be unreasonable to include it.
>
> So I figured we could use Zile-on-Guile¹ (yes!) and extend it to have
> something that resembles Paredit, like:
>
> ;; Poor developer’s Paredit.
>
> (define (paredit-open-paren)
> (insert "()")
> (backward-char))
>
> (define (paredit-close-paren)
> (unless (search-forward ")")
> (insert ")")))
>
> (set-key "(" 'paredit-open-paren)
> (set-key ")" 'paredit-close-paren)
>
>
> Of course, it takes more than these few lines to write a real Paredit,
> but still, wouldn’t it be cool? :-)
>
> What do people (Mike in particular!) think?
>
> Ludo’.
>
> ¹ https://www.gnu.org/software/guix/packages/z.html#zile-on-guile
>
> PS: The closure of Zile-on-Guile is 103 MiB, but Zile-on-Guile itself is
> only 400K and its dependencies are already in the installation
> image.
This sounds useful! Provided that everything is stable in Zile-on-Guile,
I'm for this inclusion.
signature.asc
Description: PGP signature
- Editing Scheme in the installation image, Ludovic Courtès, 2017/01/05
- Re: Editing Scheme in the installation image,
Kei Kebreau <=
- Re: Editing Scheme in the installation image, Ricardo Wurmus, 2017/01/06
- Re: Editing Scheme in the installation image, Mike Gran, 2017/01/06
- Re: Editing Scheme in the installation image, Ludovic Courtès, 2017/01/07
- Re: Editing Scheme in the installation image, Maxim Cournoyer, 2017/01/07
- Re: Editing Scheme in the installation image, Ludovic Courtès, 2017/01/08
- Re: Editing Scheme in the installation image, Mike Gran, 2017/01/08
- Re: Editing Scheme in the installation image, Ludovic Courtès, 2017/01/08
- Re: Editing Scheme in the installation image, Christopher Allan Webber, 2017/01/08
- Re: Editing Scheme in the installation image, Ludovic Courtès, 2017/01/09
Re: Editing Scheme in the installation image, Christopher Allan Webber, 2017/01/07