Skip to content

rangilin/duplicator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

duplicator

Duplicator is a small package that help you duplicate lines.

  1. Duplicate current line if no region is active
  2. Duplicate all lines in the region if region is active
  3. Support prefix argument to execute multiple times
  4. Never pollute kill ring

duplicate current line

duplicate lines in region

Usage:

(require 'duplicator)
(global-set-key (kbd "C-c d") 'duplicator/duplicate-lines)

Limitations:

Enable transient-mark-mode is required

Change Log:

0.2.2

  • fix bug when duplicate lines in region with newline character at the end

0.2.1

  • fix duplicate whole lines in region may duplicate line above region
  • duplicate whole lines in region should now works with prefix argument properly

0.2.0

  • support prefix argument

0.1.0

  • duplicate current lines/whole lines across region

License:

Copyright (C) 2014 Rangi Lin

Author: Rangi Lin Version: 0.2.2

This file is not part of GNU Emacs.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Duplicate lines in Emacs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published