如何在Emacs组织模式下调用Emacs Lisp函数? [英] How to call Emacs Lisp functions in Emacs org-mode?

查看:171
本文介绍了如何在Emacs组织模式下调用Emacs Lisp函数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我有elisp功能

(defun hello (param)
    ... )

如何运行(hello abc.txt)组织模式?我学到了如何链接http [[mine:...]] 标签。我希望类似的方式,像 [[lisp:hello(abc.txt)]] 或某事。

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.

由于此帖子解释说,我有(runmate)(runeditor(something)) elisp命令。

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

它在emacs中的 alt-x runmate 正常工作,但是当我运行 [[lisp: runmate)]] ,我得到以下对话框。

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

应该使用 [[elisp:(runmate)]]

推荐答案

关。你需要[[elisp:(helloabc.txt)]]

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

[我假设abc.txt实际上是一个字符串]

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

这篇关于如何在Emacs组织模式下调用Emacs Lisp函数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆