https://github.com/manateelazycat/reorder-file
Reorder file content base on cloel
https://github.com/manateelazycat/reorder-file
Last synced: 3 months ago
JSON representation
Reorder file content base on cloel
- Host: GitHub
- URL: https://github.com/manateelazycat/reorder-file
- Owner: manateelazycat
- Created: 2024-09-22T10:21:43.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-31T02:41:06.000Z (12 months ago)
- Last Synced: 2025-05-30T06:46:50.624Z (5 months ago)
- Language: Emacs Lisp
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
English | [简体中文](./README.zh-CN.md)
# reorder-file
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](https://github.com/manateelazycat/cloel), it can fully utilize Clojure's multi-threading capabilities, ensuring that Emacs won't freeze even when processing large files.
## Installation
1. Install [cloel](https://github.com/manateelazycat/cloel)
2. Install reorder-file
- Clone the repository and add it to your Emacs configuration:
```elisp
(add-to-list 'load-path "")
(require 'reorder-file)
```## Usage
M-x `reorder-file` supports both current buffer and selected regionIf 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.