(defconst my/termux-p (getenv "ANDROID_ROOT")) (defun my/clipboard-get () "Return the text on the system clipboard. This function treats Termux systems differently, the clipboard is only accessible through the termux-clipboard-get commandline interface, part of the the termux-api package." (if my/termux-p (shell-command-to-string "termux-clipboard-get") (current-kill 0))) (defun my/get-url-title (url) "Attempt to retrieve the title string from the given URL. Assuming the URL points to an HTML source. Returns nil if there is a non-200 return status or no title could be found." (let* ((command (format "curl --fail --silent %s" url)) (html (shell-command-to-string command)) (regexp (rx (seq "