Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs network keyboard

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?

like image 987
stralep Avatar asked Jan 18 '12 06:01

stralep


2 Answers

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.

like image 133
Lindydancer Avatar answered Sep 28 '22 23:09

Lindydancer


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.)
like image 32
Prof. Falken Avatar answered Sep 28 '22 21:09

Prof. Falken