diff options
-rw-r--r-- | content/posts/emacs-on-android-setup/index.org | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/content/posts/emacs-on-android-setup/index.org b/content/posts/emacs-on-android-setup/index.org new file mode 100644 index 0000000..e014949 --- /dev/null +++ b/content/posts/emacs-on-android-setup/index.org @@ -0,0 +1,80 @@ +#+TITLE: My Emacs on Android Setup +#+DATE: 2020-09-11T03:03:37Z +#+DRAFT: true +#+DESCRIPTION: +#+TAGS[]: emacs android tmux +#+KEYWORDS[]: emacs android tmux +#+SLUG: +#+SUMMARY: + +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. It's also +possible to connect a bluetooth mouse, then enabling +=xterm-mouse-mode=, but I rarely find that necessary. + +Thanks to the mostly frontend agnostic nature of Emacs, everything I +would normally do on my desktop computer or laptop work almost +identically when working from within Termux. + +I actually often find it much easier to write on my tablet than I do +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. + +The first thing I had to do was install Emacs and git, which are as +easy as running a single command. + +#+BEGIN_SRC shell +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 for use thanks to =use-package=, which +installs all the required packages and dependencies without requiring +my intervention. + +From there I'm able to much of the same things as I do anywhere +else. For writing C, I installed =clang= and =gdb=, which are both +available from the default repo as well. + +#+BEGIN_SRC shell +pkg install clang gdb +#+END_SRC + +This setup works particularely well because of Emacs' excellent =gdb= +debugging interface. Thanks to not needing any sort of graphical +interface beyind Emacs, my ability to get things done is completely +unhindered. I'm a huge fan of =gdb= mode, especially with =(setq +gdb-many-windows t)=. + +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. + +Setting up =rclone= to work with my nextcloud instance is incredibly +easy and only took me a minute using [[https://rclone.org/webdav/][this]] guide from the =rclone= +website. + +Both scripts are incredibly simple, consisting of a single line each. + +=nextcloud-pull.sh= +#+BEGIN_SRC shell +#!/bin/sh + +rclone sync -P -i nextcloud:Org Org +#+END_SRC + +=nextcloud-push.sh= +#+BEGIN_SRC shell +#!/bin/sh + +rclone sync -P -i Org nextcloud:Org +#+END_SRC |