emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: keybinding to duplicate the current line.


From: Ken Hori
Subject: Re: keybinding to duplicate the current line.
Date: Sun, 17 Jan 2010 07:13:51 -0800

Oh please...

How about sacrificing one keyseq and make your own keymap like this:

(defvar foo-map (make-sparse-keymap))
(fset 'foo-map foo-map)
(global-unset-key "\C-t")
(global-set-key "\C-t"  'foo-map)

(define-key foo-map "d" 'comment-and-duplicate-region)
(define-key foo-map ...)
(define-key foo-map ...)

Believe me, such keybindings will save a huge amount of time in the long run.

On Sun, Jan 17, 2010 at 7:05 AM, Teemu Likonen <address@hidden> wrote:
On 2010-01-17 05:40 (-0800), alin s. wrote:

> In order to duplicate it I have to press
>
> C-a C-SPACE C-e C-f M-w C-g C-y

Quicker alternatives:

   C-a C-k C-k C-y C-y
   C-a C-SPC C-n M-w C-y




reply via email to

[Prev in Thread] Current Thread [Next in Thread]