From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Automatically entering org blocks? Date: Mon, 9 Feb 2015 11:25:02 -0600 Message-ID: References: <87zj8nuz7d.fsf@gmail.com> <87egpzuws8.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKs53-0002Tu-73 for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 12:25:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKs52-0004bh-2E for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 12:25:05 -0500 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:51674) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKs51-0004Zp-SD for emacs-orgmode@gnu.org; Mon, 09 Feb 2015 12:25:04 -0500 Received: by mail-wg0-f44.google.com with SMTP id z12so28208342wgg.3 for ; Mon, 09 Feb 2015 09:25:02 -0800 (PST) In-Reply-To: <87egpzuws8.fsf@ericabrahamsen.net> 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: Eric Abrahamsen Cc: "emacs-orgmode@gnu.org" You may easily add your own templates eg: https://github.com/grettke/home/blob/master/ALEC.txt#L4351 The docs explain how, and it is indeed easy. On Mon, Feb 9, 2015 at 5:52 AM, Eric Abrahamsen w= rote: > torys.anderson@gmail.com (Tory S. Anderson) writes: > >> Is there a command for automatically entering org blocks (such as for >> quotes or src), the same way there's a command for inserting drawers? >> I'm sure there must be, but I've searched the "block" and "insert" >> command lists and don't see anything that seems promising. >> >> #+BEGIN_QUOTE >> Deeply insightful quotation! >> #+END_QUOTE >> >> I'm sure I'm missing something; it's a pain to have to manually begin >> and close these things every time. I guess I'm getting spoiled by so >> much of the org mode goodness that makes things easier. > > Yes! Start with a "<" on the left-hand margin, then enter a key letter, > then TAB to expand. Your quote above would start with a " to expand. See the "Easy Templates" section of the manual for details. > > What you can't do is take existing text and wrap it in a block. (Prove > me wrong, someone!) > > E > > --=20 Grant Rettke gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson