emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: tony day <tonyday567@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: indentation following yas snippet insert
Date: Sat, 22 Dec 2012 18:53:16 +0100	[thread overview]
Message-ID: <87wqw9vex1.fsf@bzg.ath.cx> (raw)
In-Reply-To: <61CD95DB-FE26-4200-86FF-DCF587ABE1F8@gmail.com> (tony day's message of "Wed, 24 Oct 2012 15:36:43 +1100")

Hi Tony,

tony day <tonyday567@gmail.com> 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

      reply	other threads:[~2012-12-22 23:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24  4:36 indentation following yas snippet insert tony day
2012-12-22 17:53 ` Bastien [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=87wqw9vex1.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=tonyday567@gmail.com \
    /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).