Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードがあるとします。
(defun dummy () (interactive) (message "aaa")) (local-set-key (kbd "<left>") 'dummy)
<left>現在のバッファでキーをクリックすると、「aaa」と出力されます。
<left>
押された任意のキーにこのアクションをアタッチすることは可能ですか?
解決策は次のとおりです。
(defun dummy () (interactive) (message "aaa")) (local-set-key [t] 'dummy)