[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] How to utilize the vc package inside of the edit source block bu
From: |
Aaron Ecay |
Subject: |
Re: [O] How to utilize the vc package inside of the edit source block buffer? |
Date: |
Tue, 23 Sep 2014 14:19:49 -0400 |
User-agent: |
Notmuch/0.18.1+51~gbbbdf04 (http://notmuchmail.org) Emacs/24.4.50.2 (x86_64-unknown-linux-gnu) |
Hi Grant,
2014ko irailak 23an, Grant Rettke-ek idatzi zuen:
>
> Good afternoon,
>
> The ability to org-edit-special inside of source block is truly priceless.
>
> There is a delightful workflow to be found with approach.
>
> It has got me spending more and more time in the edit buffer though,
> wanting to utilize
> vc-next-action to initiate a commit. This is not possible because the
> buffer is not associated
> with a file.
>
> Is there some way to get tell Emacs to execute the action on the
> source buffer from which the
> source edit block buffer originated?
One approach might be to advise the vc commands like (pseudocode):
(defadvice vc-foo (around org-src activate)
(when (in-src-edit-p)
(org-edit-src-exit))
ad-do-it)
--
Aaron Ecay