[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Underline the current line (function inside)
From: |
Jean Louis |
Subject: |
Underline the current line (function inside) |
Date: |
Fri, 11 Jun 2021 17:32:26 +0300 |
This function is handy to underline the current line:
(defun underline-line ()
"Underline the current line."
(interactive)
(let* ((start (line-beginning-position))
(end (line-end-position))
(length (- end start)))
(end-of-line)
(newline)
(insert (make-string length ?=))
(newline)))
When there is a line like this, a key binding or M-x underline-line
===================================================================
does that underlining as above.
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
- Underline the current line (function inside),
Jean Louis <=