* bug#1475: Bind a few more common key combinations in mac-key-mode.el
@ 2008-12-02 23:01 Brett Hoerner
2008-12-02 23:58 ` Glenn Morris
0 siblings, 1 reply; 3+ messages in thread
From: Brett Hoerner @ 2008-12-02 23:01 UTC (permalink / raw)
To: bug-gnu-emacs
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-03 0:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-02 23:01 bug#1475: Bind a few more common key combinations in mac-key-mode.el Brett Hoerner
2008-12-02 23:58 ` Glenn Morris
2008-12-03 0:05 ` Processed: " Emacs bug Tracking System
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.