emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Virtually prefix headlines according to content
@ 2021-06-29 11:25 Rodrigo Morales
  2021-06-29 12:52 ` Eric S Fraga
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rodrigo Morales @ 2021-06-29 11:25 UTC (permalink / raw)
  To: emacs-orgmode


* The context

When taking notes in Org Mode, I usually store Github links of the
repositories that are relevant to the topic I'm taking notes as
headlines. For this reason, I've multiple headlines of the form within
my notes (from my notes on Graph Theory):

#+BEGIN_SRC org
* cytoscape/cytoscape.js: Library for visualisation and analysis
:PROPERTIES:
:GITHUB: cytoscape/cytoscape.js
:END:

* simongray/clojure-graph-resources: List of Clojure resources
:PROPERTIES:
:GITHUB: simongray/clojure-graph-resources
:END:

* DONE What is an undirected graph? ...
* DONE What is a directed graph? ...
#+END_SRC

* The question

What I would like to know is whether it is possible to format a headline
by taking into consideration the properties it has. For example, in this
specific scenario, I would like to make all headlines that have a
"GITHUB" to show "GH" before the actual headline (the content would look
like this).

#+BEGIN_SRC org
* GH cytoscape/cytoscape.js: Library for visualisation and analysis ...
* GH simongray/clojure-graph-resources: List of Clojure resources ...
* TODO What is an undirected graph? ...
* TODO What is a directed graph? ...
#+END_SRC

The reason why I'm asking this is because thus when collapsing
headlines, I would know that an specific headline is a Github
repository. In general terms, to ease the readibility of my Org Mode
file.

* Additional context

A similar behavior is provided by org-num-mode (built-in function), so I
guess that some way to accomplish this would be to look at the
implementation of that mode and try to understand how that is
accomplished.

Any help is appreciated,
Rodrigo Morales.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-29 20:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 11:25 Virtually prefix headlines according to content Rodrigo Morales
2021-06-29 12:52 ` Eric S Fraga
2021-06-29 13:26 ` indieterminacy
2021-06-29 13:34 ` Juan Manuel Macías
2021-06-29 13:53   ` John Kitchin
2021-06-29 20:44     ` Samuel Wales

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).