help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enclosing text in a box


From: Heime
Subject: Re: Enclosing text in a box
Date: Wed, 16 Nov 2022 13:07:56 +0000

------- 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) "═")






reply via email to

[Prev in Thread] Current Thread [Next in Thread]