TL;DR: Store your important Org notes in a "PINNED" drawer near the top of the heading.
Some of my TODO items require a brief set of instructions in order to
complete them. I'd been using org-add-note
(C-c C-z) to store these instructions for later review. But after a
dozen other notes have been added, these instructions can be hard to
find.
So then I used a keyword to help locate them. For example, when I
check the status of all my library checkouts, I run custom code on the
web page in order to export the list in a useful form. I stored the
code in a note. I included the keyword "CODE" with that code so I
could jump to it simply by pressing C-s CODE.1
But still I wondered, how can it be that Org has no way to pin a note? Notes can be sorted chronologically, from old to new or from new to old. But how does one ensure that a note stays at the top regardless of sorting?
"Well, PROPERTIES and LOGBOOK stay near the top," I thought to myself. "These are drawers. So why don't I create my own drawer,2 call it PINNED, and put all my important notes in it?" And that's exactly what I've been doing. But there are some shortcomings.
One shortcoming is that nothing prevents me from adding a PINNED drawer if one already exists. It's not as robust as the PROPERTIES drawer, which will add a property value to an already-existing drawer or create the drawer and then add it.
Another shortcoming is that org-insert-drawer will create the drawer
at point, not at a particular location near the top of the heading.
Then there's the fact that hiding drawers lacks granularity. It
would be nice if I could hide all drawers except for PINNED. That
would be possible if the org-hide-drawer-startup variable allowed
for a list of regular expressions of drawer names to hide.3
Alas, it is boolean, at least in (org-version) "9.8.10".
These shortcomings are minor and of little consequence compared to the convenience of knowing my important notes are tucked safely in my drawers.
1 I'm aware of source blocks, but all I need to do is to load the lisp file and then invoke one of it's functions. The function needs to be run while the buffer with the library listing data is active. It's not worth making a keybinding for.
2 With org-insert-drawer (C-c C-x d)
3 Well, Emacs regular expression syntax seems to lack a
negation operator (perhaps because it doesn't make sense), so I'd
hide the drawers that I do use with this (untested):
(setq org-hide-drawer-startup "PROPERTIES\|LOGBOOK"). This is preferred
anyway since it will avoid hiding any future drawers I might want to
see.













![Screenshot of a small part of author's Emacs frame. It shows the title as [1:00] (Pay Medical Bills). Below that is the menu and the first three lines of author's Org file.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFNyCR7wNhE7OWS_SXA_uLC2am3qYCtmfYDNH5xTyQX0BNV-oBjPc38n2YX6i3_FToGd26IlzITVpwBJa14DkhAI_iW_oCjUxsnwQcYYnWyOfcIg8itUJK7DMOVJkVtUr-HbMPgXudvivO-0vIyMJSUWP4z_IPecQdr0xEwiUveuahC81Js3BpO5WO5xc/s320/org_clocked_task_in_titlebar.gif)
