unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Zachary Kanfer <zkanfer@gmail.com>
To: emacs-devel@gnu.org
Subject: proposal: bind C-x r DEL to #'delete-rectangle
Date: Thu, 6 Oct 2016 01:02:27 -0400	[thread overview]
Message-ID: <CAFXT+RMmiAGX_OVz0E4FM1JgEV_tJae7qowSZm5Ny2bZPxVtuA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Rectangle bindings are off `C-x r`. Currently, #'delete-rectangle can
be ran with `C-x r d`. I think it's intuitive to bind `C-x r DEL` to
#'delete-rectangle also. This patch does not touch `C-x r d`; that
keybinding still calls #'delete-rectangle.

[-- Attachment #2: 0001-Make-C-x-r-DEL-call-delete-rectangle.patch --]
[-- Type: text/x-patch, Size: 746 bytes --]

From fada67a7640c4a0d015bdbd1b3b39a64286dfc69 Mon Sep 17 00:00:00 2001
From: Zachary Kanfer <zkanfer@gmail.com>
Date: Wed, 5 Oct 2016 00:15:34 -0400
Subject: [PATCH] Make C-x r DEL call #'delete-rectangle

---
 lisp/bindings.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/bindings.el b/lisp/bindings.el
index c13f4b1..3f87945 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -1212,6 +1212,7 @@ ctl-x-r-map
     (define-key map "c" 'clear-rectangle)
     (define-key map "k" 'kill-rectangle)
     (define-key map "d" 'delete-rectangle)
+    (define-key map [backspace] 'delete-rectangle)
     (define-key map "y" 'yank-rectangle)
     (define-key map "o" 'open-rectangle)
     (define-key map "t" 'string-rectangle)
-- 
2.7.4


             reply	other threads:[~2016-10-06  5:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-06  5:02 Zachary Kanfer [this message]
2016-10-06 16:18 ` proposal: bind C-x r DEL to #'delete-rectangle Drew Adams
2016-10-10  4:20   ` Zachary Kanfer
2016-10-10  5:03     ` Drew Adams
2016-10-10  5:17       ` John Wiegley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFXT+RMmiAGX_OVz0E4FM1JgEV_tJae7qowSZm5Ny2bZPxVtuA@mail.gmail.com \
    --to=zkanfer@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).