This note, when opened in emacs and tangled using org-babel-tangle-file, creates a bunch of
files (see :tangle field in source code blocks below). The files that are created here are
termux "shortcuts". These eventually convert into executable widgets on an android
phone. So, this note is meant to be executed inside emacs running on android. (literate programming).
Create ~/.shortcuts directory
rm -rf ~/.shortcuts
mkdir -p ~/.shortcutsOpen Agenda View
emacsclient -c -e "(org-agenda nil \"a\")"Capture
emacsclient -c -e "(org-capture)"Launch Emacs
emacsStart Emacs Server
emacs --daemon
while [ true ]; do
echo "Emacs server is running here."
echo "Don't exit this window".
echo "Type qqq if you really want to exit"
read input
if [ "$input" = "qqq" ]; then
break
fi
doneKill Emacs Server
pkill emacsOpen Inbox
emacsclient ~/h/org/personal/inbox.orgOne Weekly Note
emacsclient ~/h/org/weekly.orgRoam Search
emacsclient -c -e "(org-roam-node-find)"Sync
cd ~/h
git add .
git commit -m "termux commit on $(date)"
git pull --rebase
git push
cd ~/repo/digital-garden
git add .
git commit -m "termux commit on $(date)"
git pull --rebase
git pushLinks to this note
- emacs on android: Orgzly does the job well, but doesn't work well with org roam. On the other hand, termux is
- emacs on android: All my termux configuration is published at termux setup.