Skip to content

Commit 1b647b0

Browse files
maxnikulinyantar92
authored andcommitted
ORG-NEWS: `org-info-description-as-command'
* etc/ORG-NEWS: Mention that `org-info' uses `:insert-description', a new feature of `org-link-parameters'.
1 parent ac2d0a2 commit 1b647b0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

etc/ORG-NEWS

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,17 @@ prompting for a link description. It can be a string (used as-is) or
455455
a function (called with the same arguments as
456456
~org-make-link-description-function~ to return a string to use).
457457

458+
An example of a such function for =info:= links is
459+
~org-info-description-as-command~. To access a manual section outside
460+
of Org, description may be pasted to shell prompt or evaluated withing
461+
Emacs using =M-:= (wrapped into parenthesis). For example,
462+
description of the =info:org#Tags= link is =info "(org) Tags"=. To
463+
restore earlier behavior add to your Emacs init file the following:
464+
#+begin_src elisp :results silent :eval never-export
465+
(with-eval-after-load 'ol-info
466+
(org-link-set-parameters "info" :insert-description nil))
467+
#+end_src
468+
458469
*** New list of languages for LaTeX export: ~org-latex-language-alist~
459470

460471
~org-latex-language-alist~ unifies into a single list the old language

0 commit comments

Comments
 (0)