TransWikia.com

How to set org-mode category icon on per file basis?

Emacs Asked by Klorax on January 26, 2021

Can you set org-mode category icon on per file basis? If so, then how?

It is usually set by adding icons to org-agenda-category-icon-alist globally, like so:

(setq org-agenda-category-icon-alist '(
    ("computer" ,(list (all-the-icons-material "computer" :height 1.0)) nil nil :ascent center)
))

Further, there is an option available to specify the category (but not the icon, which would be really nice) on per file basis, as follows (e.g., in a file called not_computer.org)[1]:

#+CATEGORY: computer

Finally, there is a way to specify file local variables, but I do not think that would help (my elisp is not sufficient to solve this)[2]:

-*- mode: modename; var: value; ... -*-

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP