From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: indentation following yas snippet insert Date: Sat, 22 Dec 2012 18:53:16 +0100 Message-ID: <87wqw9vex1.fsf@bzg.ath.cx> References: <61CD95DB-FE26-4200-86FF-DCF587ABE1F8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbK-0006Vd-IV for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYbD-0003w4-1r for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:30 -0500 Received: from mail-we0-f178.google.com ([74.125.82.178]:37593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbC-0003vt-RU for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:22 -0500 Received: by mail-we0-f178.google.com with SMTP id x43so2943812wey.9 for ; Sat, 22 Dec 2012 15:35:22 -0800 (PST) In-Reply-To: <61CD95DB-FE26-4200-86FF-DCF587ABE1F8@gmail.com> (tony day's message of "Wed, 24 Oct 2012 15:36:43 +1100") 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: tony day Cc: orgmode Hi Tony, tony day writes: > #+begin_src emacs-lisp > (setq yas/also-auto-indent-first-line t) > (setq yas/indent-line t) > #+end_src > > But on insertion, it isnt indented. Until now I've been inserting a space > on the begin_src line then hitting backspace. That tends to kick org in > the guts somehow and it then coughs up the right indentation. Within source code blocks, and with (setq org-src-tab-acts-natively t) just tab on a line to indent. Otherwise C-c ' C-x h C-M-\ C-c ' should do. HTH, -- Bastien