From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: quoting code blocks in Gnus without Org functions
Date: Wed, 06 Apr 2011 09:21:09 -0500 [thread overview]
Message-ID: <87sjtvpiju.fsf@lifelogs.com> (raw)
In-Reply-To: <sa3y63n5ux6.fsf@cigue.easter-eggs.fr>
On Wed, 06 Apr 2011 16:14:13 +0200 Julien Danjou <julien@danjou.info> wrote:
JD> On Wed, Apr 06 2011, Ted Zlatanov wrote:
>> I wonder if there's an easier way, maybe even with language completion
>> or auto-guessing based on the original buffer's mode, that doesn't
>> involve Org functions? IIRC Julien posted how to do it with Org.
JD> I'm not sure I understand what you want to do. Could you elaborate?
I want to copy some text into the clipboard and then paste it into an
Emacs buffer (not necessarily Gnus). The original mode, e.g. lisp-mode,
should be considered when specifying the language of the code block. So
if I copy my function, it should look like this when pasted:
#+begin_src lisp
(define-skeleton skeleton-src-quote
"Insert a quoted Gnus source listing" "language: "
\n
> "#+begin_src " str \n
> "(CODE GOES HERE)" \n
> "#+end_src" \n \n)
#+end_src
...and I'd like to do it all without using Org functionality. Is that
possible?
Ted
next prev parent reply other threads:[~2011-04-06 14:21 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 4:02 draft group weirdness Eric Abrahamsen
2011-04-05 10:48 ` Richard Riley
2011-04-06 0:24 ` Lars Magne Ingebrigtsen
2011-04-06 1:43 ` Eric Abrahamsen
2011-04-06 13:28 ` quoting code blocks in Gnus without Org functions (was: draft group weirdness) Ted Zlatanov
2011-04-06 14:14 ` quoting code blocks in Gnus without Org functions Julien Danjou
2011-04-06 14:21 ` Ted Zlatanov [this message]
2011-04-06 14:45 ` Julien Danjou
2011-04-06 16:24 ` Ted Zlatanov
2011-04-07 7:38 ` Julien Danjou
2011-04-07 19:57 ` Ted Zlatanov
2011-04-07 21:20 ` Ted Zlatanov
2011-04-08 5:52 ` Ted Zlatanov
2011-04-08 9:34 ` Balázs Tóth
2011-04-08 9:40 ` Julien Danjou
2011-04-11 18:47 ` Ted Zlatanov
2011-04-10 15:50 ` draft group weirdness Eric Abrahamsen
2011-04-11 18:39 ` Ted Zlatanov
2011-04-10 15:54 ` Eric Abrahamsen
2011-04-12 16:21 ` Lars Magne Ingebrigtsen
2011-04-12 23:02 ` Eric Abrahamsen
2011-04-12 16:19 ` Lars Magne Ingebrigtsen
2011-05-18 11:39 ` Eric Abrahamsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjtvpiju.fsf@lifelogs.com \
--to=tzz@lifelogs.com \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).