GNU bug report logs - #1475
Bind a few more common key combinations in mac-key-mode.el

Previous Next

Package: notemacs;

Reported by: "Brett Hoerner" <bretthoerner <at> gmail.com>

Date: Tue, 2 Dec 2008 23:10:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Brett Hoerner" <bretthoerner <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#1475: Bind a few more common key combinations in mac-key-mode.el
Date: Tue, 2 Dec 2008 17:01:57 -0600
In other Mac application it is common to be able to combine Shift with
Command + Direction shortcuts to select text in that direction.

The following is a tiny patch that makes it so you can, for example,
Command+Shift+Left to select to the beginning of the line, or
Common+Shift+Down to select the rest of the buffer.

Brett


--- a/mac-key-mode.el	2008-12-02 16:56:30.000000000 -0600
+++ b/mac-key-mode.el	2008-12-02 16:57:04.000000000 -0600
@@ -117,6 +117,10 @@
     (define-key map [(alt c)] 'clipboard-kill-ring-save)
     (define-key map [(alt v)] 'clipboard-yank)
     (define-key map [(alt a)] 'mark-whole-buffer)
+    (define-key map [(alt shift left)] 'beginning-of-line-mark)
+    (define-key map [(alt shift right)] 'end-of-line-mark)
+    (define-key map [(alt shift up)] 'beginning-of-buffer-mark)
+    (define-key map [(alt shift down)] 'end-of-buffer-mark)
     (define-key map [(alt f)] 'isearch-forward)
     (define-key map [(alt meta f)] 'occur)
     (define-key map [(alt g)] 'isearch-repeat-forward)





This bug report was last modified 14 years and 114 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.