Org-mode: embed links to info files

elisp, emacs, org-mode

Solution

You do it as in any of the supported link types (see the "Handling links" section in the manual). In the info file, you say `M-x org-store-link`, (bind it to `C-c l` as suggested in the manual) and then in your org file, you insert the link with `C-c C-l`. There you just have to select the link to your info file from the list of stored links.

Problem

I maintain a diary (internal blog containing thoughts to remember) in org-mode, and sometimes, as i study Emacs, i store learned skills and tricks with references to info files. Currently i do the following. I open the needed info file, press c to copy current node name, press < s TAB - that is an easy template which unwraps into a src-block. Then i add lisp expression and paste node name and finally the link looks like this: ``` #+begin_src emacs-lisp (info "(org) Properties and Columns") #+end_src ``` When i need to view the info file, i put cursor after lisp sexp and press C-x C-e (eval-last-sexp). This process is tedious and inelegant. What is the best way to embed links to info files in org-mode? Edit: I've found how one can add links to info nodes. Org-mode manual on External links describes these equivalent methods using links: ``` [[info:org#Tags]] [[elisp:(info "(org) Tags")]] ``` With the first variant i'm not sure how to automatically transform `(org) Tags` in `org#Tags`. How can i further simplify this process?

Original source