3 ms·
If you’re willing to give up local editing, Blink.sh/mosh + tmux + emacs/emacsclient on a remote host has done the job for me.
by kickingvegas 8y ago
If you’re willing to give up local editing, Blink.sh/mosh + tmux + emacs/emacsclient on a remote host has done the job for me.
- jwr 8y agoNo, Blink does not work for Emacs. This is a common misunderstanding: a serious Emacs setup will use multiple modifiers (in my case, I need at least Shift, Control, Meta/Alt and Super, preferably also Hyper). My Mac's command key is mapped to Super in my native Emacs. My Emacs as an IDE is basically unusable without the Super modifier. As there is no way to get the additional modifiers through Blink, this is a non-starter. Additionally, the terminal is a bit too slow, and there are a number of other issues (for example, remapping CapsLock to Control kind of works, but there is a small delay, so you get missed keystrokes sometimes). So, while I use and love Blink, it does not help with Emacs at all.
- sedachv 8y ago> Meta/Alt Meta and Alt are two separate modifiers, so if you get a JIS Japanese layout keyboard (QWERTY with extra modifiers), you can have Alt as a separate modifier, at least in X11, which has enough mod bits (mod1 through mod5) to cover everything. Handy for quick input of APL, Greek, etc. Unicode characters.
- vanzorn 8y agoHow well does it handle chords? I had a heck of a time covering a lot of my common key combos using a bluetooth keyboard on an iPad pro. Would love to know if anyone has a good terminal solution for emacs, (ideally kickingvegas' blink.sh/mosh + tmux) ... I returned to XWindows via WSL (Ubuntu 18.04) + VcXsrv for emacs daily use.
- kickingvegas 8y agoBlink.sh has support for swapping caps and control, which goes a long way for the chords I use in emacs. Not all the meta keys are supported if you’re looking for that, but esc is handled fine.
- tosh 8y agoI have a similar setup at the moment (without tmux). One thing I noticed w/ mosh was that copy pasting an input from advent of code (a few hundred lines iirc) caused mosh (?) to hang and I had to restart blink. When I tried copy pasting via ssh instead of mosh it worked. Any idea why this might be (I’d be curious if that was to be expected re how mosh works or whether it might be fixable) and alternatively how I can work around it (instead of fetching the content from a web page via the remote server?).
- kickingvegas 8y agoPossible workaround: create a new Blink shell and paste clipboard via cat > file. Then scp file to the remote host and import into emacs, if scp works. Another approach is to use iCloud sync to move the file over if the remote has it. Note that pasting via cat > file will not echo your clipboard. Don’t worry, it’s there.
- tosh 8y agoty!