commit 45d48102c1d745e2d70daabe507e7fcde9efffbe Author: Bram Schoenmakers Date: Wed Nov 23 15:09:27 2022 +0100 Add first gist with Termux keys geared towards Emacs usage diff --git a/README.org b/README.org new file mode 100644 index 0000000..73bc624 --- /dev/null +++ b/README.org @@ -0,0 +1 @@ +Gists referred from my Mastodon account (@bram85@emacs.ch). diff --git a/gists.org b/gists.org new file mode 100644 index 0000000..1591e51 --- /dev/null +++ b/gists.org @@ -0,0 +1,24 @@ +#+title: Gists by bram85 +#+PROPERTY: header-args :mkdirp yes + +#+begin_src org :tangle README.org + Gists referred from [[https://emacs.ch/@bram85][@bram85@emacs.ch]]. +#+end_src + +* Termux keys + +Put this in ~/.termux/termux.properties for a better Emacs experience inside Termux. + +#+begin_src conf :tangle gists/termux-emacs-keys.conf + extra-keys = [[ \ + {key: ESC, popup: {macro: "CTRL g", display: "C-g"}}, \ + {key: CTRL, popup: {macro: "CTRL x", display: "C-x"}}, \ + {key: ALT, popup: {macro: "ALT x", display: "M-x"}}, \ + {key: TAB}, \ + {key: DEL, popup: {macro: "CTRL k", display: C-k}}, \ + {key: LEFT, popup: HOME}, \ + {key: DOWN, popup: PGDN}, \ + {key: UP, popup: PGUP}, \ + {key: RIGHT, popup: END} \ + ]] +#+end_src diff --git a/gists/termux-emacs-keys.conf b/gists/termux-emacs-keys.conf new file mode 100644 index 0000000..4db7210 --- /dev/null +++ b/gists/termux-emacs-keys.conf @@ -0,0 +1,11 @@ +extra-keys = [[ \ + {key: ESC, popup: {macro: "CTRL g", display: "C-g"}}, \ + {key: CTRL, popup: {macro: "CTRL x", display: "C-x"}}, \ + {key: ALT, popup: {macro: "ALT x", display: "M-x"}}, \ + {key: TAB}, \ + {key: DEL, popup: {macro: "CTRL k", display: C-k}}, \ + {key: LEFT, popup: HOME}, \ + {key: DOWN, popup: PGDN}, \ + {key: UP, popup: PGUP}, \ + {key: RIGHT, popup: END} \ +]]