简体   繁体   English

如何在Emacs组织模式下调用Emacs Lisp函数?

[英]How to call Emacs Lisp functions in Emacs org-mode?

When I have elisp function 当我有elisp功能时

(defun hello (param)
    ... )

how can I run the (hello abc.txt) with org mode? 如何在组织模式下运行(hello abc.txt) I learned how to link http with [[mine:...]] tag. 我学习了如何使用[[mine:...]]标记链接http I expect similar way, something like [[lisp:hello(abc.txt)]] or something. 我期望类似的方式,例如[[lisp:hello(abc.txt)]]或类似的东西。

ADDED 添加

As this post explains, I have (runmate) and (runeditor (something)) elisp command. 正如这篇文章所解释的,我有(runmate)(runeditor (something)) elisp命令。

It works fine with alt-x runmate in emacs, but when I run [[lisp:(runmate)]] , I get the following dialog box. 它与emacs中的alt-x runmate一起正常工作,但是当我运行[[lisp:(runmate)]] ,出现以下对话框。

在此处输入图片说明

SOLVED 解决了

It should have used [[elisp:(runmate)]] . 它应该使用[[elisp:(runmate)]]

You're close. 你近了 You need [[elisp:(hello "abc.txt")]] 您需要[[elisp:(hello“ abc.txt”)]]

[I'm assuming abc.txt is actually a string] [我假设abc.txt实际上是一个字符串]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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