[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sort list w/o the mouse
From: |
Emanuel Berg |
Subject: |
sort list w/o the mouse |
Date: |
Wed, 26 Jan 2022 05:49:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
(defun erc-sort-list (col)
"Pretty COL function."
(interactive (list (read-number "column: " 2)))
(let ((buffer-read-only nil)
(beg (point-min))
(end (point-max)) )
(if (= col 1)
(sort-fields col beg end)
(sort-numeric-fields col beg end) )
(reverse-region beg end) ))
--
underground experts united
https://dataswamp.org/~incal
- sort list w/o the mouse,
Emanuel Berg <=