English | 简体中文
reorder-file is an Emacs plugin that analyzes the content of a buffer and automatically reorders the numbering within the content.
Since this plugin is developed based on cloel, it can fully utilize Clojure's multi-threading capabilities, ensuring that Emacs won't freeze even when processing large files.
-
Install cloel
-
Install reorder-file
- Clone the repository and add it to your Emacs configuration:
(add-to-list 'load-path "<path-to-reorder-file>") (require 'reorder-file)
M-x reorder-file
supports both current buffer and selected region
If the text in the current region starts with numbers, it will reorder the numbers at the beginning of each line.
If the text in the current region is of other types, it will sort all lines in alphabetical order.