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

為{幸葍}努か 提交于 2019-12-23 12:41:01

问题


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)]].


回答1:


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

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



来源:https://stackoverflow.com/questions/5043895/how-to-call-emacs-lisp-functions-in-emacs-org-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!