简体   繁体   中英

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

When I have elisp function

(defun hello (param)
    ... )

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

ADDED

As this post explains, I have (runmate) and (runeditor (something)) elisp command.

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

在此处输入图片说明

SOLVED

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

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

[I'm assuming abc.txt is actually a string]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM