Emacs network keyboard

552 Views Asked by At

I would like to access Emacs on my computer using my android phone. Output would be Emacspeak server on my phone.

What would be the best way to stream keyboard events from phone to Emacs?

2

There are 2 best solutions below

2
On BEST ANSWER

It depends on what you would like to do. I sometimes run Emacs inside an SSH terminal on my phone. This, of course, means that it is displayed on the phone rather than on the computer screen.

0
On

If you want one way communication, in my opinion you have two options, both related to emacsclient. Start emacs on your PC in TCP server mode, then...

either

  • Figure out the emacsclient protocol, and write your own program which to Emacs looks like an emacsclient, but actually is an Android program.

or

  • Run emacsclient on the Android, and give the --eval option. This will make Emacs run elisp functions, and you can make it whatever you want on the Emacs side. (This will only work if your Android can run emacsclient. I don't know if that will involve port to a Java app + NDK or if you can get emacsclient on a rooted phone.)