unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* bug#1475: Bind a few more common key combinations in mac-key-mode.el
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2008-12-02 23:58 UTC (permalink / raw)
  To: Brett Hoerner; +Cc: 1475

reassign 1475 notemacs
stop

"Brett Hoerner" wrote:

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


mac-key-mode.el is not part of Emacs.






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

* Processed: Re: bug#1475: Bind a few more common key combinations in mac-key-mode.el
  2008-12-02 23:58 ` Glenn Morris
@ 2008-12-03  0:05   ` Emacs bug Tracking System
  0 siblings, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2008-12-03  0:05 UTC (permalink / raw)
  To: Glenn Morris; +Cc: Emacs Bugs, notemacs #1475

Processing commands for control@emacsbugs.donarmstrong.com:

> reassign 1475 notemacs
bug#1475: Bind a few more common key combinations in mac-key-mode.el
Warning: Unknown package 'notemacs'
bug reassigned from package `emacs' to `notemacs'.

> stop
Stopping processing here.

Please contact me if you need assistance.

Don Armstrong
(administrator, Emacs bugs database)





^ 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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).