Home Sweet Home
A place to feel safe!
Pretty recent feature of enabling external access to emacs and org. From a 2019-09-27 point of view.
In the manual for org version 8.2.9, which comes with my installed org version 9.1.6, pointing to an elpa folder 9.0.9. there is just a short paragraph about the protocols.
"You can set up org for handling protocol calls from outside applications that are passed to emacs through
emacsserver
. For example, you
- can configure bookmarks in your web browser to send a link to the current page to org and create a note from it using capture. Or you
- could create a bookmark that will tell emacs to open the local source file of a remote website you are looking at with the browser." 9.4 Protocols for external access of the org manual, version 8.2.9
But it points to a worg tutorial, which in turn leads to the configurational requirements of the protocols feature:
The 9.2 version of the manual expands on these requirements and offers three predefined protocols called, with increasing complexity of the invocation:
The setup for gnome on ubuntu is to
url-handlers/org-protocol
entries into the ๐ย /desktop/gnome
section..gconf/desktop/gnome/url-handlers/org-protocol/%gconf.xml
of my home directory.gconf "is a system for storing application preferences" (โ gnome.org) and "similar to the Windows Registry" (โ enWiki). See also GConf: Manageable User Preferences [Pennington2002].
sudo apt install gconf2
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/bin/emacsclient %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
gconftool-2 -R /desktop/gnome/url-handlers