emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [ascii] box
Date: Wed, 10 Apr 2013 01:03:46 +0200	[thread overview]
Message-ID: <87obdnnw6l.fsf@gmail.com> (raw)
In-Reply-To: CANU-iVDitLjgaCk2aQ5Hi8vMeGhK=-zHgJ2gMwd6DVKk_vXe+Q@mail.gmail.com

Nick Dokos <ndokos@gmail.com> writes:

> I use message-mark-inserted-region to mark code in email:
>
> --8<---------------cut here---------------start------------->8---
> #+name: r-with-ggplot2
> #+begin_src R :results output graphics :var tbl=foo :file foo-output.png
> :width 400 :height 300
>   library(ggplot2)
>   res <- ggplot(tbl, aes(a_foo_var))
>   res + geom_histogram(aes(y=..density..)) +
>   geom_density(weight=2) + xlab("A foo variable")
> #+end_src
> --8<---------------cut here---------------end--------------->8---
>
> That allows easy cut-and-paste. I use boxquote-region for documentation etc
> that I don't expect the reader to cut and paste.
>
> They are bound to C-c m and C-c q resp. using this initialization code:
>
> --8<---------------cut here---------------start------------->8---
> (define-key mode-specific-map [?q] 'boxquote-region)
> (define-key mode-specific-map [?m] 'message-mark-inserted-region)
> --8<---------------cut here---------------end--------------->8---

Cool, I've seen this sometimes but did not know how its produced. And
although I like the looks of boxquoted regions better, they are really
not so good for URLs, keybindings for .emacs and other stuff that will be
copied. 


-- 
cheers,
Thorsten

      parent reply	other threads:[~2013-04-09 23:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-09 21:28 [ascii] box Samuel Wales
2013-04-09 22:42 ` Nick Dokos
2013-04-09 23:02   ` Samuel Wales
2013-04-09 23:03   ` Thorsten Jolitz [this message]

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obdnnw6l.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).