]> git.eshelyaron.com Git - emacs.git/commitdiff
NS: Make s-<left/right> to move to beginning/end of line
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Mon, 12 Oct 2020 11:24:25 +0000 (14:24 +0300)
committerAlan Third <alan@idiocy.org>
Mon, 9 Nov 2020 14:49:52 +0000 (14:49 +0000)
* lisp/term/ns-win.el: Bind 's-<left>' to 'move-beginning-of-line';
bind 's-<right>' to 'move-end-of-line'.
* etc/NEWS: Mention new bindings.

etc/NEWS
lisp/term/ns-win.el

index 8b5acafe3190a63c4502b517b04b475294b9cf0b..68a4aac82b1f9185fbc9485d78854fd94ebad20c 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1957,6 +1957,11 @@ image API via 'M-x report-emacs-bug'.
 ---
 ** The user option 'make-pointer-invisible' is now honored on macOS.
 
+--
+** On macOS, 's-<left>' and 's-<right>' are now bound to
+'move-beginning-of-line' and 'move-end-of-line' respectively. The commands
+to select previous/next frame are still bound to 's-~' and 's-`'.
+
 \f
 ----------------------------------------------------------------------
 This file is part of GNU Emacs.
index cc7a3762b4a93a868744b4b7213f90a1f8457873..8273c067f8bf582585ffd2f78a72fe30b3a1c8c7 100644 (file)
@@ -148,9 +148,8 @@ The properties returned may include `top', `left', `height', and `width'."
 (define-key global-map [?\s-|] 'shell-command-on-region)
 (define-key global-map [s-kp-bar] 'shell-command-on-region)
 (define-key global-map [?\C-\s- ] 'ns-do-show-character-palette)
-;; (as in Terminal.app)
-(define-key global-map [s-right] 'ns-next-frame)
-(define-key global-map [s-left] 'ns-prev-frame)
+(define-key global-map [s-right] 'move-end-of-line)
+(define-key global-map [s-left] 'move-beginning-of-line)
 
 (define-key global-map [home] 'beginning-of-buffer)
 (define-key global-map [end] 'end-of-buffer)