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 ~/.shortcuts

Open Agenda View

emacsclient -c -e "(org-agenda nil \"a\")"

Capture

emacsclient -c -e "(org-capture)"

Launch Emacs

emacs

Start 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
done

Kill Emacs Server

pkill emacs

Open Inbox

emacsclient ~/h/org/personal/inbox.org

One Weekly Note

emacsclient ~/h/org/weekly.org

Roam 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 push

Links to this note