emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ascii] box


From: Thorsten Jolitz
Subject: Re: [O] [ascii] box
Date: Wed, 10 Apr 2013 01:03:46 +0200
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux)

Nick Dokos <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]