Sure thing :) Here it is:
(defun ~/filter-begin-only (type)
"Remove BEGIN_ONLY %s blocks whose %s doesn't equal TYPE.
For those that match, only remove the delimiters."
(goto-char (point-min))
(while (re-search-forward " *#\\+BEGIN_ONLY \\([a-z]+\\)\n" nil t)
(let ((begin-block-type (mat
I am looking forward to the BEGIN_ONLY/END_ONLY kind of solution too.
@Clément Would you please share your draft solution?
Thanks.
On Tue, Sep 6, 2016 at 5:39 PM Nicolas Goaziou
wrote:
> Hello,
>
> Clément Pit--Claudel writes:
>
> > Do you think so? Wouldn't BEGIN_ONLY … END_ONLY work? It wou
On Tue, Sep 6, 2016 at 1:57 AM, Nicolas Goaziou wrote:
> project, tho. It could be useful to add yours to any ELPA and have the
Sure, I will contact marmelade and melpa maintainer asap, for now,
There are also some pull request and bugs I need handle. So it could
take a few days.
--
help me, he
Bart Bunting writes:
> The error that is shown in the messages buffer is:
>
> Template key:
> Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c)
I think this means that you have tried to specify the capture template
key incorrectly. It would be helpful if you could show
Samuel, in case you missed it, you might find this message helpful:
Message-ID:
You might find this package useful (it's mine ;):
https://github.com/alphapapa/helm-org-rifle
Or you can install it from MELPA.
I have plans to look into using external tools to find matches someday.
git grep seems like the most promising, but maybe ag or agrep could work
too. In the meantime,
Thorsten Jolitz writes:
> ...
>
> If you feel you don't need the whole parse tree, but rather want to act
> locally on the Org element at point, you might want to look at
> org-dp.el
> ...
Just a note for the benefit of newcomers to the list: Thorsten's
org-dp.el (and many other goodies) are on
On Mon, Sep 12 2016, John Kitchin wrote:
>> I was wondering if there is some sort of (semi)official API for handling
>> org files programmatically. That's to say, is there a documented way for
>> non-org Emacs packages to manipulate (the contents of) org files?
>
> None that I know of. A non-elisp
On Mon, Sep 12 2016, John Kitchin wrote:
> indeed! Maybe I misunderstood the OP.
>
> You can find more on the API here:
>
> http://orgmode.org/worg/dev/org-element-api.html
>
> There are also a bunch of functions to do other things, e.g.
>
> (org-todo) (org-cut-subtree) (org-entry-put) and many ot
On Mon, Sep 12 2016, Thorsten Jolitz wrote:
> by "non-org Emacs packages" you mean Emacs packages written in Elisp,
> but not part of Org-mode?
Yes, exactly. My wording wasn't entirely clear, I admit.
> The org-mode parser converts an Org document into a nested list and
> provides many convenie
indeed! Maybe I misunderstood the OP.
You can find more on the API here:
http://orgmode.org/worg/dev/org-element-api.html
There are also a bunch of functions to do other things, e.g.
(org-todo) (org-cut-subtree) (org-entry-put) and many others
that let you change properties of headings, cut th
Joost Kremers writes:
Hi,
> I was wondering if there is some sort of (semi)official API for handling
> org files programmatically. That's to say, is there a documented way for
> non-org Emacs packages to manipulate (the contents of) org files?
>
> Specifically, I'm wondering about creating and d
On 2016-09-12 11:36, Aaron Ecay wrote:
> (Arguably this hook function should be added to org-mode, if enough
> people find it useful).
That would be brilliant.
signature.asc
Description: OpenPGP digital signature
Hi Joakim,
The function org-reveal needs to be run after the search is executed.
If you are using the built-in emacs rgrep (for example), I think you
need to add a function to next-error-hook. Grep for “add-hook
'occur-mode-find-occurrence-hook” in org.el for inspiration.
(Arguably this hook fun
Joost Kremers writes:
> Hi all,
>
> I was wondering if there is some sort of (semi)official API for handling
> org files programmatically. That's to say, is there a documented way for
> non-org Emacs packages to manipulate (the contents of) org files?
None that I know of. A non-elisp lib would h
Hi,
Tried to send this to the list a few days back but don't think it made
it.
Sorry if it is duplicated.
-
Hi,
I have the following capture template defined in the customize
interface.
It used to work ok but now gives a cryptic (well at least to me) error:
I think I've narrowed down th
Hi all,
I was wondering if there is some sort of (semi)official API for handling
org files programmatically. That's to say, is there a documented way for
non-org Emacs packages to manipulate (the contents of) org files?
Specifically, I'm wondering about creating and deleting entries (by
entries I
On 2016-09-10 22:12, Karl Voit writes:
> * Alan Schmitt wrote:
>> --=-=-=
>> Content-Type: text/plain; charset=utf-8
>> Content-Transfer-Encoding: quoted-printable
>
> Btw, is there a reason that those two lines are not part of the
> header?
I have no idea, I have no modified what message-mode
18 matches
Mail list logo