duplicate-thing icon indicating copy to clipboard operation
duplicate-thing copied to clipboard

Duplicate current line. Duplicate a selection when selection is active.

README

Name

duplicate-thing

Description

duplicate-thing.el is Emacs lisp. Easy duplicate line or region, with comment out.

  1. Duplicate current line.
  2. Duplicate a selection when selection is active.
  3. Only C-u, replicate, comment out the range.
  4. Numerical prefix is specified as 'C-u 5': do multiple times repeatedly.

Authors

License

GPLv3

Install

;; auto-install
(auto-install-from-url "https://raw.github.com/ongaeshi/duplicate-thing/master/duplicate-thing.el")

.emacs.d/init.el

(require 'duplicate-thing)
(global-set-key (kbd "M-c") 'duplicate-thing)

Thanks

  • @a_ars: Idea, Can determine the difference between 'C-U' and 'C-U 4'
  • @k_somemo: Bug report