From: "Brett Hoerner" <bretthoerner@gmail.com>
To: bug-gnu-emacs@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 [thread overview]
Message-ID: <e97e83a30812021501m1299430fg403522e71908b703@mail.gmail.com> (raw)
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)
next reply other threads:[~2008-12-02 23:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-02 23:01 Brett Hoerner [this message]
2008-12-02 23:58 ` bug#1475: Bind a few more common key combinations in mac-key-mode.el Glenn Morris
2008-12-03 0:05 ` Processed: " Emacs bug Tracking System
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e97e83a30812021501m1299430fg403522e71908b703@mail.gmail.com \
--to=bretthoerner@gmail.com \
--cc=1475@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@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 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.