From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [ascii] box Date: Wed, 10 Apr 2013 01:03:46 +0200 Message-ID: <87obdnnw6l.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPha0-0004r9-1U for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 19:03:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPhZz-0007xc-2N for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 19:03:55 -0400 Received: from plane.gmane.org ([80.91.229.3]:44155) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPhZy-0007xL-TG for emacs-orgmode@gnu.org; Tue, 09 Apr 2013 19:03:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UPhZx-0001MP-Px for emacs-orgmode@gnu.org; Wed, 10 Apr 2013 01:03:53 +0200 Received: from e178121168.adsl.alicedsl.de ([85.178.121.168]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Apr 2013 01:03:53 +0200 Received: from tjolitz by e178121168.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Apr 2013 01:03:53 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos 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