Duplicate current line. Duplicate a selection when selection is active.
Emacs Lisp
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.markdown
duplicate-thing.el

README.markdown

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