explore all possible features
Created: 2026-11-26 Thu 14:45
: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.

Figure 1: org-mode
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.
We can see the content of this file with a columnview
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.
CLOSED: [2026-09-19 Sat 14:05]
you can define variable for every component of the file and pipe it to other blocks
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.
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
We have multiple formatting options: [C-c C-x C-f] (org-emphasize)
verbatimcode
Here we have a verse
Here we have a quote
Here we center
Here is literal text
other example
Sparse-trees and special-lists create indices based on section properties scanning the different tags.
C-c / m or C-c \ (org-match-sparse-tree)
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
| 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 |
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
#+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.
| 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 |
: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

Figure 2: column view
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 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:
And pipe all together as you like.
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:
We can ask as well to put a note by some status changes
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
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 replacels *#+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:
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
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 |
Figure 3: gnuplot graph of model benchmark
I can subset a part of that table and sort it:
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;
}

;;(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)
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
Figure 4: gnuplot graph of model benchmark
CLOSED: [2026-06-21 Sun 00:21]
Org files can integrate with many external programs and directly bind to their results.
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))

Figure 5: gnuplot graph
size(2cm);
draw(unitcircle);
We can create sheet music with lilypond
\version "2.24.4"
\relative c' {
g a b c
d e f g
g1
}

Figure 6: lilypond sheet music
We can define many types of links
We can specify line numbers or id within a file
[[file:~/code/main.c::255]] line number[[file:~/xx.org::My Target]] matching pattern[[file:~/xx.org::*My Target]] org headline[[file:~/xx.org::#my-custom-id]] with CUSTOM_ID property[[file:~/xx.org::/regexp/]] regexp[[attachment:main.c::255]] line number
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] :
Here we create a diagram using mermaid
(use-package ob-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
Figure 7: diagram of the implementation
But we can use plantuml or graphviz
#+begin_src plantuml :exports both :file ../../f/f_twin/plantulm_dia.svg@startumlstart:initialize;repeat :do something;repeat while (finished?) is (no)->yes;stop@enduml#+end_src
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"))
)

Figure 8: emacs d2
direction: right
db.shape: cylinder
roam -> db: write
rag -> db: read
roam -> rag: /POST 1
rag -> roam: ok
Figure 9: org d2
#+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
SCHEDULED: <2026-07-28 Tue>
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.
Each section can be linked to a data by inserting an agenda entry [C-c .].
We can put:
| Headline | Time |
|---|---|
| Total time | 0:00 |

Figure 10: org agenda
We can move subtrees (tasks) between agenda files:
(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))
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:
(seconds-to-string 1)
We can set a time-down timer
[C-c C-x] :
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>

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@.+} ]
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]
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")))

Figure 12: capture template
Logbook is a drawer were we can note the time we spent on an activity and a note (journal)

Figure 13: org logbook
We can archive activities moving them to another file like agenda_done.org
#+ARCHIVE: task_archive.org::
goodbye
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 + ++ +++ ++++ +++++
CLOSED: [2026-09-13 Sun 22:56]
[1/4][ ] 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)))
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
Figure 14: Gantt representation of the project
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' }
Figure 15: Kanban representation of the project
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}}\).
\[
\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.
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
(*(/ 1920 4) 3)
1440
We have many elements like tables, spreadsheets, checklists…
We have few options for code blocks:
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)
You can use macros to perform certain operations during export:
GNU/Ciccia
org has a set of predefined macros
Turn into:
org files features - org files features - sabeiro - <2026-06-22 Mon> - tmp.org - {{{property(OPTIONS}}}
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 |
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 |
(print x)
| simple | list |
argument
default value
setting1 1234
setting2 <<argsubst1()>>
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 are created by starting typing |
|col1|col2||----+----||en1 | en2|
Commands ref:
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 |
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 {]`
| 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 |
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;
Enable org-babel with R
(org-babel-do-load-languages
'org-babel-load-languages
'((R . t)))
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
return 2+2
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

In 2d or 3d

We add MOC (Map Of Content) to the header marking this file as an index file.
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 |
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}
We can use other software apart emacs to work with org files
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)
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)