Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manateelazycat/duplicate-line
Duplicate line or region, don't need move cursor.
https://github.com/manateelazycat/duplicate-line
Last synced: 12 days ago
JSON representation
Duplicate line or region, don't need move cursor.
- Host: GitHub
- URL: https://github.com/manateelazycat/duplicate-line
- Owner: manateelazycat
- Created: 2019-03-23T15:09:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-06-16T05:51:54.000Z (over 2 years ago)
- Last Synced: 2023-03-15T03:26:15.105Z (over 1 year ago)
- Language: Emacs Lisp
- Size: 4.88 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# What is duplicate-line.el ?
Duplicate line or region, don't need move cursor.Those code wrote at 2009, i extract duplicate functions from my basic-toolkit.el
## Installation
Clone or download this repository (path of the folder is the `` used below).In your `~/.emacs`, add the following two lines:
```Elisp
(add-to-list 'load-path "") ; add duplicate-line to your load-path
(require 'duplicate-line)
```## Usage
Bind your favorite key to functions:| Function | Description |
| :-------- | :---- |
| duplicate-line-or-region-above | Duplicate current line or region above |
| duplicate-line-or-region-below | Duplicate current line or region below |
| duplicate-line-above-comment | Duplicate current line above, and comment current line |
| duplicate-line-below-comment | Duplicate current line below, and comment current line |