From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony day Subject: indentation following yas snippet insert Date: Wed, 24 Oct 2012 15:36:43 +1100 Message-ID: <61CD95DB-FE26-4200-86FF-DCF587ABE1F8@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQsi2-0000EF-C7 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 00:36:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQsi1-0003sF-E2 for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 00:36:50 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:46029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQsi1-0003sB-7s for emacs-orgmode@gnu.org; Wed, 24 Oct 2012 00:36:49 -0400 Received: by mail-pa0-f41.google.com with SMTP id fa10so100444pad.0 for ; Tue, 23 Oct 2012 21:36:48 -0700 (PDT) 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: orgmode Inserting a yas snippet consisting of a code block is a very common = occurence in my work flow. Now I have the right yas settings to make it = all happen I think. #+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. What I also often find myself doing unconsciously is hitting C-c C-c = (just outside the source block) and it it says "C-c C-c can do nothing = useful in this spot". O yes it can! It can refresh the indentation is = what it can do for me. Would anyone else agree that C-c C-c would be = useful to work on a normal line in this way? But on to my main question which is is there actually an = "org-refresh-indentation-around-point" command? =20 I've looked and looked and the closest I can find is = org-indent-indent-buffer. But this seems a little over-the-topish for = the task. Tony