summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--content/posts/emacs-on-android-setup/index.org45
1 files changed, 30 insertions, 15 deletions
diff --git a/content/posts/emacs-on-android-setup/index.org b/content/posts/emacs-on-android-setup/index.org
index edb7e23..04f673c 100644
--- a/content/posts/emacs-on-android-setup/index.org
+++ b/content/posts/emacs-on-android-setup/index.org
@@ -15,15 +15,15 @@ Not too long ago I purchased a Samsung Galaxy Tab A. I bought it
mostly for browsing the internet and reading PDFs, but I've been using
it a lot more for working in Emacs recently.
-With the help of Termux, I've gotten more or less a fully operational
-development and writing environment which has both a small size, and
-long battery life. With the use of a bluetooth keyboard, I have
-everything required to work, and comfortably at that.
+With the help of [[https://termux.com/][Termux]], I've gotten more or less a fully functional
+development and writing environment which has both a small physical
+size, and long battery life. With the use of a bluetooth keyboard, I
+have everything required to work, and comfortably at that.
I use the HHKB Professional Hybrid, which I highly recommend for the
-task, as it's nearly impossible to rebind keys on Android, and I need
-the control key to be in the place of caps lock to be effective at
-using Emacs.
+task. It's nearly impossible to properly rebind keys on Android, and I
+need the control key to be in the place of caps lock to be effective
+at using Emacs.
In addition, I have a stand case for my tablet, so it is able to sit
up in landscape mode by itself.
@@ -40,8 +40,8 @@ on my computer, since the fullscreen nature of Termux tends to stop me
from getting distracted by other things I'm working on in the
background.
-#+ATTR_HTML: :title The Emacs welcome screen
-#+ATTR_HTML: :alt Emacs running on termux, showing the emacs welcome screen
+#+ATTR_HTML: :title Emacs in Termux
+#+ATTR_HTML: :alt Emacs running on termux, showing the Emacs welcome screen
[[file:termux emacs screenshot.jpg]]
The first thing I had to do was install Emacs and git, which are as
@@ -51,11 +51,11 @@ easy as running a single command.
pkg install emacs git
#+END_SRC
-Since I host my Emacs on [[https://github.com/dantecatalfamo/emacs.d][GitHub]], getting things started here is
-effortless. All I had to do was clone it onto my system, and open
-Emacs, it even sets itself up courtesy of =use-package=, which
-installs all the required packages and dependencies without requiring
-my intervention.
+Since I host my Emacs configuration on [[https://github.com/dantecatalfamo/emacs.d][GitHub]], getting things started
+here is effortless. All I had to do was clone it onto my system, and
+open Emacs. It completely sets itself up courtesy of =use-package=,
+which installs all the required packages and dependencies without
+requiring my intervention.
Because I host my blog's contents in a git repository as well, I'm
also able to clone that and work on it using the =hugo= package.
@@ -87,7 +87,7 @@ gdb-many-windows t)=.
[[file:termux emacs gdb screenshot.jpg]]
-I'm also able to work on my Org documents, which I store in a personal
+I'm also able to work on my org documents, which I store in a personal
Nextcloud instance, thanks to =rclone=. I have two small scripts which
I've written so I'm able to sync the files before I start editing
them, and after I'm done.
@@ -142,3 +142,18 @@ installed as a dependency by default, =ecl= requires the
They also provide an up to date version of [[https://raku.org/][Raku]], a language which I
really enjoy toying around with, along with [[https://julialang.org/][Julia]], [[https://www.gnu.org/software/octave/][octave]], and [[https://www.r-project.org/][R]],
among other things.
+
+One shortcoming of running my large Emacs configuration on such a low
+power device is that it can take a couple of seconds to start the
+first time. Fortunately =emacsclient= works perfectly in Termux, so
+I'm able to simply launch the Emacs daemon in the background when I
+fist launch it. I have an alias in my =.bashrc= to do this
+automatically.
+
+#+BEGIN_SRC shell
+alias em="emacsclient -c -a ''"
+#+END_SRC
+
+I just call =em= instead of =emacs= when I want to edit a document. It
+will either open a new frame connected to an already running Emacs
+daemon, or launch the daemon, and then connect once it's started.