[英]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)]]
或类似的东西。
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)]]
,出现以下对话框。
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.