diff options
author | Andrii Kolomoiets <andreyk.mad@gmail.com> | 2020-10-12 14:24:25 +0300 |
---|---|---|
committer | Alan Third <alan@idiocy.org> | 2020-11-09 14:49:52 +0000 |
commit | b4ec9cf79c67c16096d93b4ed682d8e19278bab3 (patch) | |
tree | 3c223c44e7c427171d7fc43a1ddfa0642332d67f /lisp/term | |
parent | 4469e0de011c2c5862f6c1c970b9ad1dfbbda496 (diff) | |
download | emacs-b4ec9cf79c67c16096d93b4ed682d8e19278bab3.tar.gz |
NS: Make s-<left/right> to move to beginning/end of line
* 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.
Diffstat (limited to 'lisp/term')
-rw-r--r-- | lisp/term/ns-win.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index cc7a3762b4a..8273c067f8b 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -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) |