Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

enter image description here

SOLVED

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

like image 239
prosseek Avatar asked Feb 18 '11 16:02

prosseek


1 Answers

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

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

like image 129
Wes Hardaker Avatar answered Sep 30 '22 12:09

Wes Hardaker