emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Juan Manuel Macías" <maciaschain@posteo.net>
To: Eric S Fraga <e.fraga@ucl.ac.uk>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: [tip] Export and open a PDF in Android via Termux
Date: Thu, 19 May 2022 18:01:57 +0000	[thread overview]
Message-ID: <87mtfd5rl6.fsf@posteo.net> (raw)
In-Reply-To: <875ym13lne.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Thu, 19 May 2022 11:40:53 +0200")

Eric S Fraga writes:

> Same with me.  I have to have a smartphone as our institution made the
> decision to remove all landlines and have all staff use MS Teams as our
> work "phone".  I use termux to give me access to Emacs + org so that I
> at least get some real use out of the "smart"phone.

Smartphones are the opium of the 21st century... And worst of all, they
will become the new identity cards. For example, until recently I could
do transactions with my bank through its website. But now it is
mandatory to have a smartphone and download an application, of course

Anyway, termux and Emacs, without a physical keyboard, is torture. I
usually connect a compact mechanical keyboard that I have for my laptop.

By the way, I've noticed how easy it is to write Elisp functions that
call Termux commands from Emacs. I recently wrote this to send SMS (you
can enter the phone number directly or choose a contact saved in BBDB
data base, if you use BBDB). To see the list of contacts it works better
if you use also some completion framework like ivy or helm:

(defun send-sms ()
  (save-window-excursion (bbdb ".+"))
  (let* ((tlf (if (yes-or-no-p "Enter a contact: ")
		  (let ((record (bbdb-get-records "Contact: ")))
		     (car (aref (car record) 5)) 1))
		(read-from-minibuffer "Phone number: ")))
	 (sms (read-from-minibuffer "Texto del SMS: "))
	 (cmd (format "termux-sms-send -n %s %s" tlf sms)))
    (call-process-shell-command cmd)))

Best regards,

Juan Manuel

      reply	other threads:[~2022-05-19 18:03 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-15 11:54 [tip] Export and open a PDF in Android via Termux Juan Manuel Macías
2022-05-16  8:04 ` Eric S Fraga
2022-05-16 12:35 ` Ihor Radchenko
2022-05-16 15:00 ` Max Nikulin
2022-05-16 16:05   ` Juan Manuel Macías
2022-05-17 16:22     ` Max Nikulin
2022-05-17 17:56       ` Juan Manuel Macías
2022-05-18 16:14         ` Max Nikulin
2022-05-19  9:40         ` Eric S Fraga
2022-05-19 18:01           ` Juan Manuel Macías [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtfd5rl6.fsf@posteo.net \
    --to=maciaschain@posteo.net \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).