all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* proposal: bind C-x r DEL to #'delete-rectangle
@ 2016-10-06  5:02 Zachary Kanfer
  2016-10-06 16:18 ` Drew Adams
  0 siblings, 1 reply; 5+ messages in thread
From: Zachary Kanfer @ 2016-10-06  5:02 UTC (permalink / raw)
  To: emacs-devel

[-- 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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-10-10  5:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-06  5:02 proposal: bind C-x r DEL to #'delete-rectangle Zachary Kanfer
2016-10-06 16:18 ` Drew Adams
2016-10-10  4:20   ` Zachary Kanfer
2016-10-10  5:03     ` Drew Adams
2016-10-10  5:17       ` John Wiegley

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.