[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Enclosing text in a box
From: |
Alexis Roda |
Subject: |
Re: Enclosing text in a box |
Date: |
Wed, 16 Nov 2022 14:34:09 +0100 |
You were almost there, (make-string (length text") ?=)
https://www.gnu.org/software/emacs/manual/html_node/elisp/Creating-Strings.html
Missatge de Heime <heimeborgia@protonmail.com> del dia dc., 16 de nov. 2022
a les 14:09:
>
> ------- Original Message -------
> On Wednesday, November 16th, 2022 at 12:47 PM, Heime <
> heimeborgia@protonmail.com> wrote:
>
>
> > Would like to enclose some text in a box? The box has to automatically
> adjust its size
> > according to the size of the text.
> >
> > (insert "╔══════╗\n")
> > (insert (concat "║" text "║\n" ))
> > (insert "╚══════╝" )
>
> Is there a repeat character in elisp?
>
> Then I could do
>
> (repeat-string (length text) "═")
>
>
>
>
>
- Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box,
Alexis Roda <=
- Re: Enclosing text in a box, Eli Zaretskii, 2022/11/16
- Re: Enclosing text in a box, Yuri Khan, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box, Eli Zaretskii, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box, Eli Zaretskii, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16
- Re: Enclosing text in a box, Eli Zaretskii, 2022/11/16
- Re: Enclosing text in a box, Heime, 2022/11/16