Not a direct answer to your question, but Org has a built-in concept of links that can be used for elisp commands and other things. Links are displayed in a certain way and can be followed using the command org-open-at-point
(C-c C-o
).
If you are looking at the Help buffer for a command, try invoking org-store-link
. Then switch to an org buffer and call org-insert-link
(C-c C-l
). This will create a link to that documentation.
You can create help and lisp links, e.g.
;; link to command help, displays "help:find-grep-dired"
[[help:find-grep-dired]]
;; link to command help, displays "find-grep-dired"
[[help:find-grep-dired][find-grep-dired]]
;; link to execute command, displays "elisp:find-grep-dired"
[[elisp:find-grep-dired]]
;; link to execute lisp form, displays "find foobar"
[[elisp:(find-grep-dired "~/org" foobar)][find foobar]]