GNU bug report logs -
#1475
Bind a few more common key combinations in mac-key-mode.el
Previous Next
Full log
View this message in rfc822 format
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.