[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] displaying icons in heading or subheadings
From: |
Cédric ODY |
Subject: |
[O] displaying icons in heading or subheadings |
Date: |
Tue, 25 Apr 2017 10:39:49 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
Hi,
I'd like to be able to display icons just after the stars in heading or
subheadings, by defining the icon as a property. For instance
* Emacs heading
:PROPERTIES:
:ICON: /tmp/emacs.png
:END:
I have tried something like
#+BEGIN_SRC elisp :results value raw
(let ((parsetree (org-element-parse-buffer 'headline)))
(org-element-map parsetree 'headline
(lambda (hl) (org-back-to-heading t) (insert-image (create-image
(org-element-property :ICON hl))))))
#+END_SRC
which inserts the icon before the star.
Any hint to do it? Is this smart enough?
Thanks,
co
--
--------------
02 98 49 86 04
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] displaying icons in heading or subheadings,
Cédric ODY <=