Is it possible to have more than 3 priority statuses in Orgmode? I'd like to have A B C and D. Thank you.
This has been working for me with priorities ranging from A to J:
(setq org-enable-priority-commands t
org-highest-priority ?A
org-default-priority ?J
org-lowest-priority ?J
)
However, I nearly never make use of F,G,H,I,J ... At the time being I use org 9.3.4. It seems to work without the first line "org-enable-priority-commands t" as well.
So you could write:
(setq org-highest-priority ?A
org-default-priority ?B
org-lowest-priority ?D
)
-
Yes, it does work, thanks. I realized that for some reason in some manuals I find the variable org-priority-highest while in others org-highest-priority, and in my latest Emacs only the later works. For instance, @Juancho referred to org-priority-highest, which would not work in my case. Jan 6 at 11:06
-
Both of them should work in recent Emacs (correction: the version of Org mode that is distributed with emacs does not seem to have these aliases):
org-highest-priorityis aliased toorg-priority-highest. But there was a bug that was fixed on 2020-03-10 with these aliases (commit ID 097b4e6ca0d9265710a61f41d4a332eeb20a2e40).– NickDJan 12 at 12:11
You can change the number of priorities by customizing org-priority-highest and org-priority-lowest, and there is also org-priority-default.
Or you can set it on a per-file basis.
Check for more options in the documentation.
-
Thanks, for some reason when I set (setq org-priority-highest ?A) (setq org-priority-lowest ?D), nothing happens. I can only go from A to C. Jan 5 at 8:11
-
1Actually, org-priority-highest does not work, but org-highest-priority works. I suppose there is an error in the documentation? Jan 5 at 8:21
-
No: the two are aliased together, although there was a bug with the aliases. But the version of Org mode that is distributed with emacs does not seem to have these aliases.– NickDJan 12 at 12:15
-
The aliases went into version 9.3.3 of Org mode. The version that is distributed with current emacs 28.0.50 seems to be 9.3.– NickDJan 12 at 12:22