home | imprint | privacy

org files features

explore all possible features

sabeiro

2026-06-22 Mon 00:00

Created: 2026-11-26 Thu 14:45

active org-mode

:RATING: ++
:EFFORT: 4:30
SCHEDULED: <2026-09-18 Fri>

org-mode from being a note taking tool has become a full featured project tool and turns text files into dynamic workflow systems.
Org is so reach that we can run project management, create knowledge and presentations, compute, write technical documentation, reports and dashboards.

org_mode_02.gif

Figure 1: org-mode

active features   doc

  • State “active” from “in_prog” [2026-09-19 Sat 14:05]

Org file is so much more than a text file, is a complete productivity suite where you intelligently use metadata to create tools and maintain a single source of truth.

project
agenda, task, logbook, deadlines, assignment
admin
run code, bash, lisp, python
graph
keeps all entities connected: files, attachments, links, items
viz
retrieve information and create figures, diagrams
export
create blogs, slides, blue-prints
multimedia
create music, images

content

We can see the content of this file with a columnview

ITEM EFFORT TODO RATING Tags
org-mode 0:29 active    
  features   active   :doc:
  content        
  headline   in_prog   :UI:
  overview 0:10 cancelled + :executive:
  properties 1:00   + :configuration:
  markup        
  sparse tree 0:15   ++ :feature:
  dynamic block        
  clock table 0:10   +  
  column view 0:10   ++ :UI:
    column view summary        
  org files features 2:00   + :executive:feature:
  todos tags and status 0:20 in_prog + :configuration:
  code block        
  code to graph 0:20   + :tooling:
  plotting 0:20   + :tooling:
  dot graphs        
  code piping 0:20   ++ :tooling:
  further graphs 0:15   + :UI:
task tool integration       :math:
  gnuplot        
  music        
links and nodes        
  attachement       :ATTACH:
  diagrams        
  diagram results        
agenda 0:10 in_prog    
  agenda file        
  agenda bulk action        
  timer        
  habits        
  goal 0:10   ++  
  clocking        
  capture        
  logbook        
  archive        
    archived activity        
  effort        
  lists   done    
  project management        
    Kanban        
    themes and extensions        
    integral        
    bibliography        
    lisp        
exports and execution        
    macros        
    keybinding        
    variables        
    checklists        
    tables        
    spreadsheets        
    database        
    statistics        
piping software        
  inline commands        
org-roam        
  map of content        
  org-roam query        
  markdown compatibility        
conversion        
  sqlite        
  python library        

in_prog headline   UI

CLOSED: [2026-09-15 Tue 10:44]

Headline are sections starting with a * and they define trees and sub-trees.
You can cycle visibility with [TAB] for each section or [S-TAB] globally.

[TAB]
change visibility
[S-TAB]
global change visibility
[S-] [S-]
change status
[S-] [S-]
change priority
[M-] [M-]
change level
[M-] [M-]
change order
[C-c C-w]
change subtree

cancelled overview   executive

CLOSED: [2026-09-19 Sat 14:05]

portability
ascii text files are lightweight and portable
rich text
much more expressive than markdown
customizable
you can define the execution and export of every single element
sections
are tasks, nodes, agenda points, work streams…
data

you can define variable for every component of the file and pipe it to other blocks

connected
you can move sections between files, rename files and your nodes and agendas will stay connected
schedule
specify time (`SCHEDULED:`) and due dates (`DEADLINE:`)
status and tags
each section can have a current status and a tag for search
code
you can execute code with org-babel specifying output and permissions for any language
links
to files, nodes, tags, footnotes, commands
export
to blob posts, slides, images, animations
minimal
Can replace multiple tools (Note-taking, Calendar, Kanban board, Code editor, LaTeX writer, Blog).

It is the “Swiss Army Knife” of Emacs, but like any Swiss Army Knife, you must be willing to read the manual (often hundreds of pages of documentation) to unlock its potential. For a developer or researcher who wants a clean, text-based, code-integrated, and portable knowledge base, it is arguably the best tool available.

properties   configuration

Each section can have a property drawer. Those are the standard properties but any could be used as metadata for that section.
Sections can inherit properties from their top level with (org-use-property-inheritance t)
We can search for the tags inside the properties. The drawer needs to be exactly under the headline.
We can search all the tags for example whose priority are more than 5.

:properties:
:ID:            id for creating node in org-roam
:ARCHIVE: archive location for the subtree
:ALLTAGS:	All tags, including inherited ones.
:BLOCKED:	t if task is currently blocked by children or siblings.
:CATEGORY:	The category of an entry.
:CLOCKSUM:	The sum of CLOCK intervals in the subtree. org-clock-sum must be run first to compute the values in the current buffer.
:CLOCKSUM_T:	The sum of CLOCK intervals in the subtree for today. org-clock-sum-today must be run first to compute the values in the current buffer.
:COLUMN: type of column view
:CLOSED:	When was this entry closed?
:DEADLINE:	The deadline timestamp.
:LOGGING: 
:FILE:	The filename the entry is located in.
:ITEM:	The headline of the entry.
:ORDERED: t respects the order in the subtree [C-c C-x o] task order
:PRIORITY:	The priority of the entry, a string with a single letter.
:SCHEDULED:	The scheduling timestamp.
:TAGS:	The tags defined directly in the headline.
:TIMESTAMP:	The first active keyword-less timestamp in the entry.55
:TIMESTAMP_IA:	The first inactive keyword-less timestamp in the entry.
:TODO:	The TODO keyword of the entry.
:end:

Alternative notation

#+PROPERTY: var  foo

markup

We have multiple formatting options: [C-c C-x C-f] (org-emphasize)

bold
‘*bold*’ bold
italic
‘/italic/’ italic
underline
‘_underlined_’ underlined
verbatim
‘=verbatim=’ verbatim
code
‘~code~’ code
strike
‘+strike-through+’ strike
sup
‘x^2’ x^2 ( ‘#+OPTIONS: ^:{}’ to disable export)
sub
‘x_2’ x_2
symbols
π Γ
footnote
‘1’ first footnote 1 elisp:(org-footnote-action)
inline
‘3’ 2
citations
‘[cite@spiega_tech]’ (??, ????) elisp:(org-cite-insert)

Here we have a verse

Here we have a quote

Here we center

Here is literal text
other example

sparse tree   feature

Sparse-trees and special-lists create indices based on section properties scanning the different tags.

  • [C-c /] create a sparse tree (matching strings)
  • (org-tags-view)

C-c / m or C-c \ (org-match-sparse-tree)

dynamic block

We can introduce a dynamic block with (org-dynamic-block-insert-dblock) which can be local, global, connected to a file named by its id


Table 1: Clock summary at [2026-09-21 Mon 13:10]
Headline Time    
Total time 1d 12:12    
org-mode 17:00    
  sparse tree   2:00  
  clock table   2:00  
  column view   9:00  
    column view summary     5:00
  code to graph   4:00  
task tool integration 0:04    
agenda 19:08    
  clocking   19:05  
  logbook   0:02  

clock table

We can display the current status of the clocking information in a table:
You can activate a clock table with [C-c C-x C-r]
I can use the following parameters

scope
subtree, file, file-with-archives
#+BEGIN: columnview :hlines 1 :id "agenda"

#+END:

#+BEGIN: clocktable :scope file :maxlevel 3 :id "agenda"
#+CAPTION: Clock summary at [2026-09-21 Mon 13:06]
| Headline   | Time |
|------------+------|
| *Total time* | *0:00* |
#+END:

:maxlevel 4 :scope subtree :block thismonth-2 :step week :tstart <2026-09-21 Mon> :tend <2026-09-25 Fri>

You can create a static logbook for timesheet and use it for invoicing.
Archive files will be searched as well.

Table 2: Clock summary at [2026-09-21 Mon 12:57]
Headline Time    
Total time 1d 12:12    
org-mode 17:00    
  sparse tree   2:00  
  clock table   2:00  
  column view   9:00  
    column view summary     5:00
  code to graph   4:00  
task tool integration 0:04    
agenda 19:08    
  clocking   19:05  
  logbook   0:02  

column view   UI

:COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
:EFFORT: 0:20
:RATING: ++

In column view each heading is turned into a table row
We need to specify a format that applies to a specific subtree.
You can activate column view with [C-c C-x C-c] and quit it by hitting [q] on the headline
In column view I can display one particular property from the drawer (say SECTION_LENGHT or SCHEDULE) directly in the headline
To put a todo-tag we hit [C-c C-t]

:COLUMNS: %25ITEM %TAGS %PRIORITY %TODO
%[WIDTH]PROPERTY[(TITLE)][{SUMMARY-TYPE}]
#+columns: %7TODO(To Do) %40ITEM(Task) %10SCHEDULED(scheduled) %TAGS(Tags) %ĈLOCKSUM(Clock) %8Effort(Effort){:} %5Rating(Rating)
#+PROPERTY: Effort_All 0:05 0:10 0:15 0:20 0:30 1:00 1:30 2:00
#+PROPERTY: Rating_All + ++ +++ ++++ +++++

In column view we can see all the headlines in a table and for a given list of properties (efforts, ratings, …) We can hover the cell and with [S ->] [S <-] we can iterate over all properties. The {:} means that the headline gets the sum of its sub-headers

column_view.jpg

Figure 2: column view

column view summary

Columnview is really useful to overview the status of the document and its task. We can use it as table of content with links

Using this syntax

%[WIDTH]PROPERTY[(TITLE)][{SUMMARY-TYPE}]
:COLUMNS:  %25ITEM %9Approved(Approved?){X} %Owner %11Status %10Time_Estimate{:}
:Owner_ALL:    Tammy Mark Karl Lisa Don
:Status_ALL:   "In progress" "Not started yet" "Finished" ""
:Approved_ALL: "[ ]" "[X]"

#+BEGIN: columnview :id global :link t :indent t :format "%ITEM %EFFORT{:mean} %TODO %RATING %10TAGS(Tags)" :id global
#+END:

We can define multiple aggregation

‘+’	Sum numbers in this column.
‘+;%.1f’	Like ‘+’, but format result with ‘%.1f’.
‘$’	Currency, short for ‘+;%.2f’.
‘min’	Smallest number in column.
‘max’	Largest number.
‘mean’	Arithmetic mean of numbers.
‘X’	Checkbox status, ‘[X]’ if all children are ‘[X]’.
‘X/’	Checkbox status, ‘[n/m]’.
‘X%’	Checkbox status, ‘[n%]’.
‘:’	Sum times, HH:MM, plain numbers are minutes.
‘:min’	Smallest time value in column.
‘:max’	Largest time value.
‘:mean’	Arithmetic mean of time values.
‘@min’	Minimum age57 (in days/hours/mins/seconds).
‘@max’	Maximum age (in days/hours/mins/seconds).
‘@mean’	Arithmetic mean of ages (in days/hours/mins/seconds).
‘est+’	Add low-high estimates.

org files features   executive feature

Org files are reach in metadata and can integrate with any tool making it’s function looks like more an operating system than anything else.
Org files are reach in functions cheatsheet.

Few of the functions we can use for our projects:

org files allow a really expressive integration of information:

agenda
to schedule a task or to set an alert [C-c a] [C-c .]
logbook
the time spent on tasks
tags
to specify meta information for that section [C-c C-q]
status
whether an action is done or pending [Space - left/right arrow]
trees
explain hierarchical structures [::]
nodes
tag every element to create interconnections
code
define code to execute `#+begin_src bash` `#+end_src`
graph
interconnect elements
plots
plot data with gnuplot
link
link to anything: files, websites, buffers, images…
webpage content
show the text of a web page [eww]
local org files
open new buffers from shell
roam
organizes the org node information into graphs
formulas on tables

And pipe all together as you like.

in_prog todos tags and status   configuration

  • State “active” from “todo” [2026-10-08 Thu 15:38]

For each section we can set tags and status, data and logbook.
We can define at file level the tags we want to use in that file [C-c C-t]
The #+SEQ_TODO: has the following syntax:

t
hotkey assigned to the tag
@
log the time when is entered
!
log the time when you leave that tag
org-log-done
to customize
org-log-reschedule
to customize
todo
(setq org-todo-keywords ’((sequence “in_prog(p)” “active(a)” “todo(t)” “crit(c)” “|” “next(n)” “review(r)” “|” “done(d)” “milestone(m)” “knwoledge(k)” “cancelled(k)”)))

We can ask as well to put a note by some status changes

#+TODO: active done crit milestone todo review knwoledge task #+tags: executive(e) present(p) hide(h) devops(o) dev(d) science(s) business(b) architecture(a) management(m) #+seq_todo: next(n/!) in_prog(p@/!) active(a/!) todo(t@/!) review(r@/!) optional(k) | done(d@/!) cancelled(k@/!)

We can as well set some behavior for that specific file like how we want to visualize it, what variables should we run, what do we want to export

#+STARTUP: showall #+OPTIONS: tex:t #+PROPERTY: HEADER-ARGS+ :eval no-export

code block

We can add a block with #+begin_src #+end_src (or <s [tab]). I created a template by hitting [C-t c].

#+name: source_name
#+begin_src bash :exports both :results output replace 
ls *
#+end_src

Babel will link to the external language on the system. We need to specify the babel language and activate it:

(org-babel-do-load-languages
 'org-babel-load-languages
 '((shell . t) (python . t) (dot . t) (sql . t) ))

The output is formatted as:

:raw
as per terminal
:table
formatted table
:list
as list
:silent
no results

code to graph   tooling

We run an example, we benchmark the speed of different local models. We run a model comparison script and use gnuplot to show the results.

We first call ollama endpoint to get the list of available models and extract the name of the model using commands like jq, grep and awk. code arguments

curl localhost:11434/api/tags | jq | grep \"model\" | awk -F " " '{print $2}' 
qwen3.6:latest  
dolphin-mistral:latest  
gemma4:latest  
deepseek-coder:6.7b  
llama3.2:latest  
qwen2.5-coder:3b  
qwen3.5:9b  
qwen2.5-coder:7b  

We then run a script to test the speed of each model and extract the token/s.

#echo $model_list
cd ~/lav/src/blender_twin/deploy/test/
#bash benchmark_models.sh
python3 benchmark_stats.py

plotting   tooling

Given the following table write a gnuplot function to be integrated in emacs org

qwen3.6:latest model tokens_per_second token_rate time_rate
dolphin-mistral:latest qwen3.5:9b 20.711123 37.218987 18.767091
gemma4:latest qwen2.5-coder:3b 86.646493 6.607947 0.975372
deepseek-coder:6.7b qwen3.6:latest 9.434619 32.298511 37.218987
llama3.2:latest gemma4:latest 31.166858 18.467557 11.391252
qwen2.5-coder:3b qwen2.5-coder:7b 42.268118 9.068185 2.231556
qwen3.5:9b deepseek-coder:6.7b 15.847756 8.54775 5.17094
qwen2.5-coder:7b dolphin-mistral:latest 54.457944 10.850281 2.096758

llm_benchmark.svg

Figure 3: gnuplot graph of model benchmark

I can subset a part of that table and sort it:

dot graphs

We can create simple graphs

digraph G {
 main -> parse -> execute;
 main -> init;
 main -> cleanup;
 execute -> make_string;
 execute -> printf
 init -> make_string;
 main -> printf;
 execute -> compare;
rankdir=LR;
new_idea [label="CAPTURE" shape=box];
todo[color="red"];
next[color="blue"];
# new_idea -> next;
new_idea -> todo;
new_idea -> main;
}

dot_graph.jpg

code piping   tooling

;;(setf sortedList (sort data #'< :key #'cadr))
;;(print sortedList)
(sort data)
deepseek-coder:6.7b 15.847756
dolphin-mistral:latest 54.457944
gemma4:latest 31.166858
qwen2.5-coder:3b 86.646493
qwen2.5-coder:7b 42.268118
qwen3.5:9b 20.711123
qwen3.6:latest 9.434619
reset
set boxwidth 0.9 relative
set xtics rotate by 15 offset -1.6,-1.2
plot data using 2:xtic(1) with boxes title 'token/s'
reset
set boxwidth 0.9 relative
set style data histograms
#set style histogram cluster
set style solid 2.0 border lt -1
set xtics rotate by 15 offset -1.6,-1.2
set tickslevel 0
plot data using 2:xtic(1) title 'token/s'

Or call the lisp version

(org-plot/gnuplot)

further graphs   UI

reset session
$Data <<EOD
# viol0   viol1   viol2   viol3   viol4   viol5
0.24    -0.24   0.0     0.333   1.299   2.866
0.48    -0.16   1.0     0.599   0.849   0.600
0.28    -0.44   0.583   0.599   0.975   1.066
0.56    -0.28   0.500   0.666   0.799   0.933
0.52    -0.28   0.749   0.699   0.849   0.866
0.32    -0.56   0.083   0.566   0.774   0.733
EOD
set table $kdensity
    plot for [i=0:5] $Data u i+1:(1) smooth kdensity bandwidth 0.15
unset table
set title 'violin plots'
set output "../../f/f_twin/violin.svg"
set border 3
unset key
set linetype  9 lc "#800072b2" ps 0.5 pt 5
set style boxplot nooutliers
set style fill solid border -1
set boxwidth 0.075
set errorbars lt black lw 1
set xrange [-0.5 :(6-0.5)]
set xtics nomirror
set yrange [-1:2]
set ytics nomirror
W = 0.025  
plot for [i=0:5] $kdensity index i u (i + $2*W):1 w filledcurves x=i lt 9,\
     for [i=0:5]        '' index i u (i - $2*W):1 w filledcurves x=i lt 9,\
     for [i=0:5]     $Data         u (i):i+1 w boxplot fc "white" lw 2

violin.svg

Figure 4: gnuplot graph of model benchmark

task tool integration   math

CLOSED: [2026-06-21 Sun 00:21]

Org files can integrate with many external programs and directly bind to their results.

gnuplot

We can use gnuplot to display functions

set title "Simple Plots" font "
set key left box
set samples 50
set style data points
plot [-10:10] sin(x),atan(x),cos(atan(x))

gnuplot.jpg

Figure 5: gnuplot graph

size(2cm);
draw(unitcircle);

music

We can create sheet music with lilypond

\version "2.24.4"
\relative c' {
  g a b c
  d e f g
  g1
}

lilypond.jpg

Figure 6: lilypond sheet music

links and nodes

We can define many types of links

clickable command
‘elisp:‘ set key for gnuplot
node
‘id:‘
file
‘file:‘ access with [C-c C-o]
picture
‘file:‘
node
‘id:‘
source code
with line number ‘gen_ls.py::43‘
search string within file

code line

store links
[C-c l]
default open
elisp:(open-with) to decide what program should open that file type
radio target
python if I hit [C-c C-c] that word will be linked (like [C-s])
bbdb database
org-file

links within a file

We can specify line numbers or id within a file

attachement   ATTACH

We can look for an attachment [C-c C-a]
We can set an attachment folder (setq org-attach-set-directory “~/lav/src/spiega/static/attach/”)
You can create links, symlink, copy, move.
Once we have defined an attachment we can hit [C-c C-a o] and all attachments related to this task will be opened.

[C-c C-a] :

[o]
open
[O]
open in emacs
[f]
open attachment directory
[F]
open attachment directory in dired
[d]
delete attachment
[n]
create a new attachment as emacs buffer
[z]
synchronize the task with attachment directory

diagrams

Here we create a diagram using mermaid

(use-package ob-mermaid)

mermaid

---
title: implementation sketch
---
flowchart LR
KN["`
script
knowledge
agenda
links
tasks
`"]
DOC@{ shape: docs, label: "Knowledge"}
MC@{ shape: procs, label: "mcp server"}
DT@{ shape: lin-cyl, label: "storage" }
EL@{ shape: notch-pent, label: "ellama" }
GP@{ shape: notch-pent, label: "gptel" }
PI@{ shape: notch-pent, label: "pi-coding", pos: "c", w: 60, h: 60, constraint: "off" }
%%A@{ icon: "fa:user", form: "square", label: "User Icon", pos: "t", h: 60 }

E(emacs) --> GP
E --> EL
E -- ask --> EL
EL -- connect --> OL[\ollama\]
OL -- answer --> EL
EL -- insert --> E
GP -- connects --> MC
MC -- summarize --> DOC
GP -- decide --> JT[\vllm\]
JT -- elaborate --> GP
GP -- insert --> E
E -- debug --> PI
PI -- write --> DT
PI -- edit --> E
E -- edit --> OR[org-file]
OR -- contain --> KN

diagram results

flow_diagram.svg

Figure 7: diagram of the implementation

plantuml

But we can use plantuml or graphviz

#+begin_src plantuml :exports both :file ../../f/f_twin/plantulm_dia.svg
@startuml
start
:initialize;
repeat :do something;
repeat while (finished?) is (no)
->yes;
stop
@enduml
#+end_src

d2

D2 is currently the most readable diagram

;; curl -fsSL https://d2lang.com/install.sh | sh -s --
(use-package d2
    :straight (:host github :type git :repo "andorsk/d2-mode")
    :init (setq d2-flags (list "--layout" "elk" "--theme" "200"))
    )

emacs_d2.jpg

Figure 8: emacs d2

direction: right
db.shape: cylinder
roam -> db: write
rag -> db: read
roam -> rag: /POST 1
rag -> roam: ok

org_d2.svg

Figure 9: org d2

d2 examples

#+begin_src d2 :file ../../f/f_twin/org_d2_2.svg :flags “–scale 1”
vars: {
d2-config: {
layout-engine: elk

theme-id: 300
}
}
network: {
cell tower: {
satellites: {
shape: stored_data
style.multiple: true
}

transmitter

satellites -> transmitter: send
satellites -> transmitter: send
satellites -> transmitter: send
}

online portal: {
ui: {shape: hexagon}
}

data processor: {
storage: {
shape: cylinder
style.multiple: true
}
}

cell tower.transmitter -> data processor.storage: phone logs
}

user: {
shape: person
width: 130
}

user -> network.cell tower: make call
user -> network.online portal.ui: access {
style.stroke-dash: 3
}

api server -> network.online portal.ui: display
api server -> logs: persist
logs: {shape: page; style.multiple: true}

network.data processor -> api server

in_prog agenda

SCHEDULED: <2026-07-28 Tue>

  • State “next” from “in_prog” [2026-09-15 Tue 10:53]

You can access the agenda with [C-a], then you specify the view [t] is todo. If you hit [F] you go in follow mode and see the single entry.

  • State “task” from “knwoledge” [2026-09-03 Thu 15:24]

Each section can be linked to a data by inserting an agenda entry [C-c .].
We can put:

dates
<2026-06-20 Sat> [SPC ->] [SPC <-] to move dates
past dates
[2026-11-01 Sun]
date range
<2026-06-26 Fri>–<2026-07-13 Mon>
effort
C-c C-x e (org-set-effort)
timestamp
[C-c .] <2026-09-05 Sat>
schedule
[C-c C-s]
sync
org-caldav package
notification
packages: org-yaap ntfy appt
calendar
elisp:(copy-file%20org-icalendar-combined-agenda-file%20%22./current_agenda.ics%22%20t)
schedules
SCHEDULED: <2026-07-28 Tue> - elisp:(org-schedule) [C-c C-s]
deadlines
DEADLINE: <2026-07-22 Wed> - elisp:(org-deadline) [C-c C-d]
recurrent tasks
pay the server DEADLINE: <2005-11-01 Tue +1m>
from next
<2026-09-21 Mon ++1w>
log activities
elisp:(org-clock-in), elisp:(org-clock-out), elisp:(org-clock-in-last), elisp:(org-clock-report)
timer
elisp:(org-timer-start), elisp:(org-timer-set-timer), elisp:(org-timer-stop)
todos
elisp:(org-todo-list), elisp:(org-agenda-list-stuck-projects)
Table 3: Clock summary at [2026-06-26 Fri 17:45]
Headline Time
Total time 0:00

org_agenda.jpg

Figure 10: org agenda

agenda file

We can move subtrees (tasks) between agenda files:

move
[C-c C-w]
copy
[C-c M-w]

(customize-variable)
(setq org-support-shift-select “”)
(setq org-refile-targets (quote ((org-agenda-files :level . 1))))
(setq org-refile-use-outline-path “”)
(setq org-allow-creating-parent-nodes (quote confirm))

agenda bulk action

In agenda view we can put the cursor on a task and mark it with [m]. A ’>’ will appear at the beginning of the task.
We can then:

$
archive the tasks in the archive file
a
archive by moving to their respective siblings
t
change todo status
+
add a tag
f
apply a function to them
r
refile with a prompt
s
reschedule [C-u b s] remove schedule
d
new deadline [C-c b d] remove deadline
S
scatter over the next n-days [C-u b S] scatter over the next week-days

timer

(seconds-to-string 1)

We can set a time-down timer

[C-c C-x] :

[.]
start 0:00:00
[0]
replace
[,]
pause
[_]
stop

habits

All the recurrent tasks and small jobs.
To track habits

(custom-set-variables
 '(org-modules
   '(ol-bbdb ol-bibtex ol-docview ol-doi ol-eww ol-gnus org-habit ol-info
             ol-irc ol-mhe ol-rmail ol-w3m)))
:PROPERTIES:
:STYLE: habit
:END:
SCHEDULED: <2026-09-23 Wed .+2d/3d>

org_habit.jpg

goal

We can set a goal in column-view with a new property [C-c C-x p]
We can use properties like: Specific Measurable Achievable Reasonable Timely
and force to specify them in a capture template using hierarchy of tags

We set the column-view this way.

#+columns: %7TODO(To Do) %40ITEM(Task) %10SCHEDULED(scheduled) %TAGS(Tags) %ĈLOCKSUM(Clock) %8Effort(Effort){:} %5Rating(Rating) %5Goal(goal)
#+PROPERTY: Effort_All 0:05 0:10 0:15 0:20 0:30 1:00 1:30 2:00
#+PROPERTY: Rating_All + ++ +++ ++++ +++++
#+PROPERTY: Goal_All short med long none
#+TAGS: [Goal : {G@.+} ]

clocking

We can log as much time we spent on a task.

(org-clock-in) [C-c C-x TAB]
(org-clock-out) [C-c C-x o]
(org-clock-in-last) [C-c C-x C-x]
(org-clock-cancel) [C-c C-x C-q]
(org-clock-modify-effort-estimate) [C-c C-x C-e]
switch task [C-u C-c C-x TAB]

capture

We can quickly store notes in dedicated files without interrupting the flow.
We bind it with [f6].
We can define templates which will fill in information like origin file (%a) expansions, each capture will insert in the specified file a note, todo or journal.
Commands: (org-capture) (org-capture-finalize) (org-capture-refile) (org-capture-kill)

(setq org-default-notes-file (concat org-directory "/notes.org"))
(global-set-key (kbd "<f6>") 'org-capture)
(setq org-capture-templates ;; C-c c: creates a link for agenda
      '(("t" "Todo" entry (file+headline "~/lav/src/spiega/project/agenda.org" "Tasks")
         "* TODO %?\n  %i\n  %a")
        ("j" "Journal" entry (file+olp+datetree "~/org/journal.org")
         "* %?\nEntered on %U\n  %i\n  %a")))

capture_template.jpg

Figure 12: capture template

logbook

  • Note taken on [2026-09-14 Mon 12:03]
    A note regarding this activity to save in the logbook
  • Note taken on [2026-09-14 Mon 12:02]
    This is a note I can add to the current task to remember what happened while working at it

Logbook is a drawer were we can note the time we spent on an activity and a note (journal)

(org-clock-in)
log the start of an activity
(org-clock-out)
log the end of an activity
[C-c C-z]
write a note about the specific activity on that task

org_logbook.jpg

Figure 13: org logbook

archive

We can archive activities moving them to another file like agenda_done.org

#+ARCHIVE: task_archive.org::
[C-c] [C-x] [C-a]
archive entry
[C-c] [C-x] [C-s]
archive subtree

archived activity

goodbye

effort

We can put the properties defining a list so in column view we can iterate on a cell with [S-] [S-] changing the value from the list

#+PROPERTY: Effort_All 0:05 0:10 0:15 0:20 0:30 1:00 1:30 2:00
#+PROPERTY: Rating_All + ++ +++ ++++ +++++

done lists

CLOSED: [2026-09-13 Sun 22:56]

  • I can create a list [1/4]
    • and create a second level
    • [ ] and put an undone task
    • [ ] and another one
    • [X] with [C-c C-c] I can tick this box
    • [-] and the upper level [1/2] updates
      • [X] the lower level too
      • [ ] this is not done, top level either

use bullets

(use-package org-bullets)
(add-hook 'org-mode-hook (lambda () (org-bullet-mode 1)))

project management

From the agenda you can directly create a gantt

---
displayMode: compact
title: Ignored if specified in chart
config:
  gantt:
      useWidth: 800
      rightPadding: 0
      topAxis: true  #false
      numberSectionStyles: 2
---
gantt
    dateFormat  <YYYY-MM-DD>
    title  Knowledge base action plan
    excludes  weekends

    review : vert, v1, <2026-06-22>, 1d

    section local models
        deploy LLMs          :done,  deploy, <2026-05-20>, 7d
        coding agent         :done,  deploy, <2026-05-27>, 14d

    section list & summarize
        parse knowledge         :done,  dev, <2026-06-01>, 5d
        create graphs           :done,  dev, <2026-06-07>, 7d

    section hierarchy
        hierarchy     :done, distil, <2026-06-16>, 9d
        visualization :crit, distil, <2026-06-20>, 4d

    section video
        sceencast    :active, create, <2026-06-12>, 5d
        animate text :active, create, <2026-06-17>, 9d

    section publish
        content     :active, share, <2026-06-22>, 10d
        publication :milestone, share, <2026-06-27>, 5d

gantt_agenda.svg

Figure 14: Gantt representation of the project

Kanban

We can as well display the agenda items as a kanban

---
config:
  kanban:
    ticketBaseUrl: 'https://mermaidchart.atlassian.net/browse/#TICKET#'
---
kanban
  Todo
    [compare model serve]
    docs[benchmark vllm, llama.cpp and ollama]
  [In progress]
    id6[blog posts about the local implementation ]
  id9[Ready for deploy]
    id8[cloud webdav]@{ assigned: 'bot1' }
  id10[Ready for test]
    id4[Create parsing tests]@{ ticket: MC-2038, assigned: 'K.Sveidqvist', priority: 'High' }
    id66[last item]@{ priority: 'Very Low', assigned: 'knsv' }
  id11[Done]
    id5[agent confs, org files]
    id2[local deployment]@{ ticket: MC-2036, priority: 'Very High'}
    id3[graph integration]@{ ticket: MC-2037, assigned: bot1, priority: 'High' }

kanban_agenda.svg

Figure 15: Kanban representation of the project

themes and extensions

org-modern
changes the behaviour of org files
org-download
clipboard downloads to file

integral

We can solve math problems using the output of an LLM prompt:
Solve the following integral ∫_0^1 x^2 dx

from sympy import symbols, integrate
x = symbols('x')
integral_value = integrate(x**2, (x, 0, 1))
print(integral_value)
None
1/3

The value of the integral \(\int_0^1 x^2 \, dx\) is \(\boxed{\frac{1}{3}}\).

\begin{equation} x=\sqrt{b} \end{equation}

\[ \int_0^1 x^2 \, dx = \left[ \frac{x^3}{3} \right]_0^1 = \frac{1^3}{3} - \frac{0^3}{3} = \frac{1}{3} \]

Or \[\int_0^1 x dx \].

import sympy as sp
x = sp.symbols('x')
integral = sp.integrate(x, (x, 0, 1))
print(integral)

The output of this code is 1/2.

bibliography

I can provide citation by loading the bibliography file and a citation

#+BIBLIOGRAPHY: bibliography.bib
[cite:@key]

Here I add (??, ) (see ??, p12) as a citation

lisp

(*(/ 1920 4) 3)
1440

elements

We have many elements like tables, spreadsheets, checklists…

exports and execution

We have few options for code blocks:

:export
[code,results,both,none,drawer]
:results
[output,replace,none]
:var
the name of the variable to be read by another code block
:tangle
the file where to write the source code

drawer is some information you can keep in the source without exporting or export it as <aside> speaker notes.
It is important to include files with “#+INCLUDE: ” to add configuration to certain types of exports.
:results output avoids the formatting of the output in tables.

To export drawer, newline, planning, todo

#+options: d:t \n:t p:t todo:nil

(customize-group org-export)

(code, results, both, none, drawer)

macros

You can use macros to perform certain operations during export:

#+MACRO: gnustamp (eval (concat "GNU/" (capitalize $1))) {{{gnustamp(ciccia)}}}

GNU/Ciccia

org has a set of predefined macros

{{{keyword(TITLE)}}} - {{{title}}} - {{{author}}} - {{{date}}} - {{{input-file}}} - {{{property(OPTIONS}}}

Turn into:
org files features - org files features - sabeiro - <2026-06-22 Mon> - tmp.org - {{{property(OPTIONS}}}

keybinding

A small list of useful keybindings in org-mode.

key context effect
M-RET   New headline
TAB / S-TAB   Fold / Unfold
M-RIGHT / M-LEFT   Promote / Demote
  table Move column
M-UP / M-DOWN table Move row
M-S-DOWN table Insert row (?)
C-c RET table Insert horizontal line
C-c ^ table Sort lines
S-RIGHT / S-LEFT task Cycle workflow
  list Cycle bullet type
S-UP / S-DOWN   Cycle priority
C-c C-e   Export menu
C-c a   Agenda
C-c C-c heading edit tags
  on top refresh local setup
C-c ’ code block edit in native mode
C-c ;   Toggle COMMENT of subtree

variables

I can define variables env of code.

1
2
3
4

and read their content to another code block

(length table)
4

I can export this file as presentation and copy its result into the publishing folder:

;; (org-reveal-export-to-html)
(org-re-reveal-export-to-html)
agent_interview.html
echo $outF ${outF/.html/_slide.html}
one 1 2 3 4 5
two 6 7 8 9 10
return [[val + 10 for val in row] for row in tab]
one 11 12 13 14 15
two 16 17 18 19 20
  • simple
    • not
    • nested
  • list
(print x)
simple list
argument
default value
setting1 1234
setting2 <<argsubst1()>>

checklists

Put recurrent tasks and load them elisp:(org-checklist)

SCHEDULED: <2026-07-19 Sun 08:00 +1d> [1/2]

  • [X] docker healthcheck
  • [ ] work on documentation
;;(use-package org-state)
(use-package org-checklist
  :straight (:host github :type git :repo "ilkerkesen/.emacs.d" ))

tables

Tables are created by starting typing |

|col1|col2|
|----+----|
|en1 | en2|

Commands ref:

[TAB]
adjust the size
[M-Left] [M-Right]
move columns
[M-S-Left]
(org-table-delete-column)
[M-S-Right]
(org-table-insert-column)
[S-Up]
(org-table-move-cell-up)
[M-S-Down]
(org-table-insert-row)
[C-c -]
(org-table-insert-hline)
[C-c RET]
(org-table-insert-hline-and-move)
[C-c ^]
(org-table-sort-lines)
(org-table-import)
import and format a table
( org-startup-align-all-table)
align all tables

Limit column length

free size
A very=> Another very long column
   
A very=> Another very =>

Grouping columns

N N^2 N^3 N^4 sqrt(n) sqrt[4](N)
1 1 1 1 1 1
2 4 8 16 1.4142 1.1892
3 9 27 81 1.7321 1.3161

spreadsheets

Within org files we can run formulas in tables. You can edit the formulas for that cell with `[C-c =]` or open the table in another buffer `[C-c ’]`. Debugger is `[C-c {]`

navigation
[tab] next line, [M-arrow] swap row/col, |- insert hline, [M-S-arrow] add row/col, [S-arrow] move field
generate table
[C-c |] or from comma separated value
import table
elisp:(org-table-import)
calculation
insert [C-c =] [C-u C-c =] recalculate [C-c *]
reference
location inline [C-c }] location current [C-c ?] @ row $ col, range .., calculation :=
remote
operate on another table :=vsum(remote(file_types,@2$2..@2$4))
elisp:(calc)
internal emacs calculator
constants
file tool info Mean
txt 0 2 1
md 4 7 5
org 18 9 13
Means 7 6 6
file tool
txt 3
md 3
org 18

database

We can save a table to a database

DROP table if exists file_type;
.import $file_type ftable
SELECT file, tool, info FROM ntable where file is 'org';

We can select data from internal database

SELECT * FROM user_list limit 10;

statistics

Enable org-babel with R

(org-babel-do-load-languages
 'org-babel-load-languages
 '((R . t)))

piping software

I can define a data structure in the document

source quantity link
code 3k3 sources src
tech 120 blog posts spiega
thoughts 30 posts scritti
science 30 works PhD
videos 180 videos viudi

and read it from another code block.

return tab
source quantity link
code 3k3 sources src
tech 120 blog posts spiega
thoughts 30 posts scritti
science 30 works PhD
videos 180 videos viudi
return tab
file tool info Mean
txt 0 2 1
md 4 7 5
org 18 9 13
import re
import pandas as pd
header = tab[0]
data = tab[1:]
df = pd.DataFrame(tab,columns=header)
return df
   txt   0  2   1
0  txt   0  2   1
1  md   4  7   5
2  org  18  9  13

inline commands

return 2+2

org-roam

Org-roam is a package which creates nodes out of files and sections and populates a database with all the knowledge information and create advanced representations with org-roam-ui and searchable information with elisp:org-roam-db-explore and run queries with

(org-roam-db-query [:select * :from nodes])

We can visualize and navigate the information

org_mode_07.gif

In 2d or 3d

org_mode_06.gif

map of content

We add MOC (Map Of Content) to the header marking this file as an index file.


org-roam query

We use a library for adding query language to org-roam

(use-package org-roam-ql
  :straight (org-roam-ql :type git :host github :repo "ahmed-shariff/org-roam-ql"
                         :files (:defaults (:exclude "org-roam-ql-ql.el")))
  :after (org-roam)
  :bind ((:map org-roam-mode-map
               ;; Have org-roam-ql's transient available in org-roam-mode buffers
               ("v" . org-roam-ql-buffer-dispatch)
               :map minibuffer-mode-map
               ;; Be able to add titles in queries while in minibuffer.
               ;; This is similar to `org-roam-node-insert', but adds
               ;; only title as a string.
               ("C-c n i" . org-roam-ql-insert-node-title))))
;;; org-roam-ql-autoloads.el --- automatically extracted autoloads (do not edit)   -*- lexical-binding: t -*-
;; Generated by the `loaddefs-generate' function.

;; This file is part of GNU Emacs.

;;; Code:

(provide 'org-roam-ql-autoloads)

;; Local Variables:
;; version-control: never
;; no-byte-compile: t
;; no-update-autoloads: t
;; no-native-compile: t
;; coding: utf-8-emacs-unix
;; End:

;;; org-roam-ql-autoloads.el ends here

We can then start querying the database

;;(org-roam-ql-search)
;;(org-roam-ql-agenda-block)
;;(org-roam-ql-nodes '([:select [id] :from nodes :where (= todo \"TODO\")]))
(org-roam-ql-nodes '(and (todo "TODO") (tags "tag1" "tag2") "*org-roam*"))
  title tags
link emacs present
link .org files present,dev
  video on agents business,present
  architecture architecture
  models dev
  T D
link emacs  
link .org files  
  video on agents  
  architecture  
  models  
link coding assistant  
  emacs  
  title cat
link emacs knowledge_graph
link .org files knowledge_graph
  video on agents knowledge_create
  architecture agent_call
  models agent_call
link coding assistant agent_call
  emacs agent_call

markdown compatibility

We want to apply markdown compatibility for the org-roam by using the package md-roam which helps extending the knowledge base to old files but lacks some important features. Markdown are though a bit more universal.

\begin{tikzpicture}
\fill[yellow] (0,0) circle (3cm);
\end{tikzpicture}

conversion

We can use other software apart emacs to work with org files

sqlite

import sqlite3
con = sqlite3.connect(os.environ['HOME'] + "/.emacs.d/org-roam.db")
cur = con.cursor()
res = cur.execute("SELECT name FROM sqlite_master")
tabL = res.fetchall()
con.close()
print(tabL)

python library

We can process org files within python

import orgparse as org
import re, os
f = os.environ['HOME'] + '/lav/src/spiega/storia/bronze_age_china.org'
fileO = org.load(f)
dir(fileO)
postamble