[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to add button to emacs that play a elisp code
From: |
Emanuel Berg |
Subject: |
Re: how to add button to emacs that play a elisp code |
Date: |
Tue, 16 Sep 2014 00:45:12 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Alex Kost <alezost@gmail.com> writes:
> A comment to your hint.
>
> As you are using Gnus, you may just attach your elisp
> file (or buffer) to make it be highlighted inline:
> "C-c RET f" (or "C-c RET b") and choose
> "application/emacs-lisp" type.
I'm using Gnus - but I'm not the one reading the post.
How will that make it look for people not using Gnus?
I like to have my posts totally client-agnostic. But if
it doesn't bloat the post with too much
incomprehensible metadata for the non-Gnuser, I'll
consider it - why not encourage people to switch to
Gnus?
OK - here is the attached Elisp:
Wait - `C-c RET' is undefined, it says.
Do you mean I (or any Gnuser reading such messages)
should use your keystrokes in message-mode to get the
highlight? But there, `C-c RET' is `gnus-article-mail'!
What are the names of the commands?
> Another way is including org source blocks.
You mean like this:
#+BEGIN_SRC emacs-lisp
(defun org-xor (a b)
"Exclusive or."
(if a (not b) b))
#+END_SRC
Org manual example from:
http://orgmode.org/manual/Working-With-Source-Code.html
I have the same concerns for that method, but let's see
how that works, as well.
--
underground experts united
- Re: how to add button to emacs that play a elisp code, (continued)
- Re: how to add button to emacs that play a elisp code, Pascal J. Bourguignon, 2014/09/13
- Re: how to add button to emacs that play a elisp code, Rusi, 2014/09/13
- Re: how to add button to emacs that play a elisp code, Rusi, 2014/09/14
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/14
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/14
- Re: how to add button to emacs that play a elisp code, Alex Kost, 2014/09/15
- Message not available
- Re: how to add button to emacs that play a elisp code,
Emanuel Berg <=
- Re: how to add button to emacs that play a elisp code, Alex Kost, 2014/09/16
- Message not available
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/16
- Message not available
- Re: how to add button to emacs that play a elisp code, Emanuel Berg, 2014/09/11
Message not available
Re: how to add button to emacs that play a elisp code, Pascal J. Bourguignon, 2014/09/11