から使用Emacs
しています。デフォルトでは、私はキーとして持っています、そしてOS X
mac ports
CtrlControl
⌘</kbd> Command as Meta
key. Thogh, this is quite handy, I'm missing possibility to move cursor one word backward/forward by pressing M-arrrow key
, i.e. ⌘</kbd>+←</kbd> to move one word forward. What I realy want to have:
- ⌥</kbd>+←</kbd> move 1 word backward
- ⌥</kbd>+→</kbd> move 1 word forward
- ⌘</kbd>+←</kbd> move to 1st non-whitespace charachter of the line
- ⌘</kbd>+→</kbd> move to the line end
- 他のすべての場合⌘</kbd> ≡ Meta
をマッピング(kbd "A-left")
で使用しようとしましたが、うまくいき"\A-left"
ませんでした。そこで、ここに 2 つの質問があります。
更新しました
- のマッピングを作成する方法⌥</kbd>
Option
key?
(setq mac-option-modifier 'hyper)
;; now you can easily use mappings with Hyper key modifier
- 矢印キーへのマッピングを作成する方法は?
(define-key evil-insert-state-map (kbd "<H-left>") 'left-word)
;; defines Hyper+left arrow combination