-
Notifications
You must be signed in to change notification settings - Fork 17
Using with Emacs
David Goodwin edited this page Sep 18, 2024
·
2 revisions
Kermit 95 has a dedicated keyboard mode for Emacs giving you Alt as the Meta key as you'd expect (the command screen being moved from Alt+x to Alt+F4) among other settings. It can be activated with: set terminal keyboard-mode emacs
This mode isn't perfect though - when used with the Linux terminal type at least it leaves a handful of keys incorrectly mapped or not mapped at all making org-mode more difficult to use. If you run into these issues, the following may help correct them:
set term key emacs \4388 \Kansif49 ; Home key: end start of document -> start of line
set term key emacs \4387 \Kansif57 ; End key: end of document-> end of line
set term key emacs \4398 \Kansif61 ; Delete key: delete character to the left -> delete character to the right
set term key emacs \2317 \27\269 ; Alt+Enter -> Meta+Enter
set term key emacs \6437 \27\27[D ; Alt-LeftArrow -> Meta-LeftArrow
set term key emacs \6439 \27\27[C ; Alt-RightArrow -> Meta-RightArrow
set term key emacs \2829 \3\24\77 ; Alt+Shift+Enter -> C-c C-x M (synonym for M-S-RET in org-mode)