[Top][All Lists]

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

RE: [External] : sort-block

From: Drew Adams
Subject: RE: [External] : sort-block
Date: Mon, 1 Aug 2022 14:21:55 +0000

> Useful?

It's up to you.

> Maybe something like this already ... somewhere!
> (defun sort-block ()
>   (interactive)
>   (let ((beg (progn (backward-paragraph) (point)))
>         (end (progn (forward-paragraph)  (point))) )
>     (sort-lines nil beg end) ))

`M-h M-x sort-lines'

Or if you're going to add a key binding, it might
be more useful to add one for `sort-lines' than
for `sort-block' (aka `sort-paragraph').

reply via email to

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