How to call Emacs Lisp functions in Emacs org-mode?

When I have an elisp function

(defun hello (param) ... ) 

how can i run (hello abc.txt) with org mode? I learned how to associate http with the tag [[mine:...]] . I expect a similar path, something like [[lisp:hello(abc.txt)]] or something like that.

ADDED

As explained in the post, I have the command (runmate) and (runeditor (something)) elisp.

It works fine with alt-x runmate in emacs, but when I run [[lisp:(runmate)]] , I get the following dialog box.

enter image description here

solvable

He should have used [[elisp:(runmate)]] .

+4
source share
1 answer

You're close You need [[elisp: (hello "abc.txt")]]

[I assume that abc.txt is actually a string]

+6
source

Source: https://habr.com/ru/post/1340348/


All Articles