Johannes Quint schrieb:

> how can i define a function which i can call via M-x?
> thanks for help, jq

This is merely a question for gnu.emacs.help, isn't it?
Anyway, here is an example:

Write the function e.g. in the *scratch* buffer, e.g.

(defun jq-callable-via-M-x ()
  (interactive)
  (print "This is function jq-callable-via-M-x! Yeah!"))

Mark the whole function and do 'M-x eval-region'.  This adds the
function to the, err, system.

Then you can use 'M-x jq-callable-via-M-x'.
The key for M-x callability is the line '(interactive)'.


HTH

_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to