/r/orgmode

Photograph via snooOG

Org-mode is an Emacs major mode for taking notes, managing to-do lists, planning projects, authoring documents, literate programming and devops, and more, using a fast and effective plain-text system.

About Org mode

Org mode is an Emacs major mode for taking notes, managing to-do lists, planning projects, authoring documents, literate programming and devops, and more, using a fast and effective plain-text system.

Support the Project

Donate via Liberapay

Resources

Related Subreddits

/r/orgmode

22,456 Subscribers

11

How do you use properties?

I am very curious about how you use properties in orgmode. My question is about functionality: I can use tags for filtering, for example... but properties? Do you use them to store details? Isn't a simple bulleted list enough?

6 Comments
2024/11/01
15:12 UTC

10

PSA: ORG-NEWS changes and Emacs NEWS (= etc/NEWS or C-h n) changes will / has started appearing in /r/planetemacs and https://planet.emacslife.com/

ORG-NEWS feed is now part of planet.emacslife.com's blog roll.

You will see an ORG-NEWS post to /r/planetemacs as soon as a future commit happens on ORG-NEWS.

At the time of this post, you can already see plenty of etc/NEWS entries.

0 Comments
2024/11/01
07:30 UTC

2

How do I generate reminders for scheduled tasks in org-agenda in Emacs?

I am pretty new to emacs and I am using doom emacs. I recently discovered org-agenda and want to get reminders for my scheduled tasks.

All the options I could find online seem to be for Linux and not for Windows.

I did come up with below solution with org-wild-notifier.el.

(use-package! org-wild-notifier
  :config
  (setq org-wild-notifier-alert-time 10) ;; Alert 8 minutes before the event
  (org-wild-notifier-mode))

(defun windows-notification (title message)
  "Display a Windows notification using PowerShell."
  (message "Sending notification: %s - %s" title message) ;; Log to *Messages* buffer
  (start-process "powershell-toast" nil "powershell"
                 "-Command"
                 (concat "New-BurntToastNotification -Text '" title "', '" message "'")))

;; Advise the org-wild-notifier--notify function
(defun my-org-wild-notifier--notify (message)
  "Call the original notify function and send a Windows notification."
  (windows-notification "Reminder" message)
  ;; Call the original notify function
  (org-wild-notifier--notify message))

;; Replace the original notify function with our advised version
(advice-add 'org-wild-notifier--notify :override #'my-org-wild-notifier--notify)

But this is sending 30 notifications for every event instead of 1 notification. Below is the log from messages buffer.

Sending notification: Reminder - TEST THIS at 01:23 AM (in 10 minutes) [30 times]
error in process sentinel: apply: Creating pipe: Too many open files
error in process sentinel: Creating pipe: Too many open files

Please help with fixing this code or suggest another solution I can use to generate notifications in Window.

2 Comments
2024/11/01
05:23 UTC

2

Configuration callback md4rd in Emacs

Has anyone managed to configure the md4rd Reddit client library in Emacs? I’ve managed to configure my client ID, but I can’t understand how to handle the callback redirection - what web server is it performed on?

https://github.com/ahungry/md4rd

I appreciate any guidance

2 Comments
2024/10/31
15:51 UTC

1

org babel and python classes

I was wondering if there is a setting somewhere that would allow org babel to correctly tangle a file when you have different parts of a class in different code blocks. I try and do something like this:

# -*- org-src-preserve-indentation: t -*-

  • Here's the first title

+BEGIN_SRC python :tangle "foo.py" :mkdirp yes :comments link

class foo:

def bar(self)
print("hi")\

+END_SRC

  • Here's a title

#+BEGIN_SRC python :tangle "foo.py" :mkdirp yes :comments link

def func(self):

print("bye")

+END_SRC

The code that gets generated looks like this:

class foo:
def bar(self)
print("hi")

def func(self):

print("bye")

Which obviously breaks the code since the definition of the second method is not properly indented. I have tried the options to preserve spacing but it doesn't seem to be working as expected. Is this a bug or am I mising a parameter to handle situations like this?

3 Comments
2024/10/31
15:40 UTC

6

org-mode links and backlinks

For a long time I didn't know, that org-mode also supports backlinks. I searched for it yesterday, on a whim to make a text document more navigable and found it in the documentation: https://orgmode.org/guide/Hyperlinks.html#Internal-links-1

What I do with this is, that I have a heading "Remarks" for example and under that heading I have multiple lower level headings, one for each remark I have. Then in the rest of the document I can link to those remark headings using the usual links (org-store-link and org-insert-link) to headings and for each link to a heading, a target for a backlink, using the <<target>> syntax. Under each remark heading, I put a backlink, linking back to the target.

That way I can have something like footnotes, but more flexible in how it can be used. I can use that for remarks, but also for other annotations.

14 Comments
2024/10/31
10:51 UTC

3

Show parent title + TODO title in agenda view

[SOLVED]

org-agenda-prefix-format %b

Let's say my agenda file looks like this:

* Tasks
** TODO Project XPTO [1/10]
*** TODO [#B] read docs
*** ...

My agenda view filtered by priority B would look like this:

TODO [#B] read docs

Which gives me no context about what project its associated.

Is there a property to show TODOs like this or similar?

TODO Project XPTO [1/10] > [#B] read docs

I couldn't find another post about that, but I'm sure someone asked something similar

1 Comment
2024/10/29
21:42 UTC

0

Basic help with journaling and agenda

I'm starting out in org mode. I want a daily notes set up in a similar format to Logseq/Roam. I also find use in the agenda/Todo functionality, using quick capture to add scheduled events and todos.

My problem is I've used chatgpt to tell me how to configure all this, and it just can't do it properly.

Has someone got an .emacs file I can use which will do what I want?

3 Comments
2024/10/29
19:06 UTC

1

How can i make my recurring reminders show up on cal-fw

So i am using org and calfw. I have two types of reminders that I use (and a capture template for both); recurring and 1 off.

1 off reminders set the date for the heading in org's normal format and show up without issue. I can even do two dates seperated by -- and they show up as a span. That is great.

The problem is my recurring items do not show up. I'm certain this is becuase of the formatting:

<%%(memq(calendar-day-of-week date) '(2))>

Any ideas on how to solve this so that these recurring items show up? In the interium i'm manually adding an entry but I get double entries on my normal agenda.

4 Comments
2024/10/29
18:56 UTC

7

How to customize the output of org source blocks in LaTeX export?

OK this is a relatively small thing, but I am working on the course materials for the course I am teaching, and one thing that irks me is how the code block (exported using the `engraved` backend) exports in a different size than the output (large, black-color monospaced text) of same code block.

Is there any way to make sure the code block and the output are consistent in terms of font size?

Screenshot of the current PDF output of my org text. I want the code block output to have the same size as the code block itself.

4 Comments
2024/10/29
12:29 UTC

2

How do you represent this type of task in Emacs?

In my work we usually develop features for clients with schedules and deadlines based on weeks.

So in the contract we say we will start doing Feature XYZ at the week 1 of september and it will be ready until week 3 of october.

Of course, I could schedule the taks to september 1st and put a deadline to october 15th, but this would only remind me about the task when I am near the schedule or deadline. The interval in between for regular agenda views would be empty.

And I could also break the task in a bunch of subtasks and select a time slice for each.

But anyways it's not so clear to me what tasks me and my colleagues should be focused.

Its not easy to tell if this week is very busy because we have a bunch of features to develop in parallel, and next week we would have more time because there are less features to develop.

Some people recommend me to use gantt graphs and I really liked the idea. I just wanted to know if you have any other suggestions for handling such type of tasks that span multiple weeks, when you have multiple of them in parallel.

10 Comments
2024/10/29
03:29 UTC

0

GenAI from Orgmode notes

Hello everyone, has anyone a solution or package to perform textual generative response from personal notes?

3 Comments
2024/10/28
19:34 UTC

4

Can I set a level boundary?

Hi,

I want to create a org mode doc like this:

* Lv1
text

** Lv2
text

more text for Lv1

However, org-mode thinks the last line in the example belongs to Lv2 and is folded when I try to fold Lv2.

Is there a way to tell it where Lv2 ends?

Thanks

5 Comments
2024/10/27
22:23 UTC

5

You don't need org-alert, Emacs has it built-in (kinda)

0 Comments
2024/10/27
20:02 UTC

6

Org-Collector vs org Column View?

I am just starting to explore this topic, but it seems there is a big overlap between org-collector and the standard Column Views (specifically the "capturing column view" part).

Does anybody know the history of these features? Are they related? Is one strictly a superset, or do both have uses the other cannot cover?

3 Comments
2024/10/26
22:54 UTC

1

Khalel and Org-Capture

I am using Khalel a package for interacting through Emacs with locally-stored calendars via the console application khal and syncing with remote CalDAV calendars using vdirsyncer.

When I use my custom capture template the khalel-add-capture-template stops working. Whesn I comment out my custom capture template the khalel-add-capture-template starts working again.

I tried to add khalel-add-capture-template manually to my config, but it somehow hijacks so I just get

"e" calendar event" and not the other three entries I want.

Why does the Fleeting Note, Permanent Note and Task not show up? My full config.org is here for reference.

** Capture Templates

#+begin_src emacs-lisp

(use-package org

:config

:custom

(org-goto-interface 'outline-path-completion)

(org-capture-templates

'(("e" "calendar event" entry #'khalel--make-temp-file "* %?\12SCHEDULED: %^T\12:PROPERTIES:\12:CREATED: %U\12:CALENDAR: \12:CATEGORY: event\12:LOCATION: \12:APPT_WARNTIME: 10\12:END:\12"

("" "" entry

(file "~/Dropbox/Documents/notes/calendar.org"))

"")

("f" "Fleeting note"

item

(file+headline org-default-notes-file "Notes")

"- %?")

("p" "Permanent note" plain

(file denote-last-path)

#'denote-org-capture

:no-save t

:immediate-finish nil

:kill-buffer t

:jump-to-captured t)

("t" "New task" entry

(file+headline org-default-note

s-file "Tasks")

"* TODO %i%?"))))

#+end_src

0 Comments
2024/10/26
05:38 UTC

6

org-agenda with .ics (vdir)

Hello there!

I keep a backup of my google calendars in sync in a folder using https://vdirsyncer.pimutils.org/en/stable/, that in it self uses the vdir standard (https://vdirsyncer.pimutils.org/en/stable/vdir.html), meaning a folder with a bunch of .ics items.

I'd like to know if there is anything I can do to integrate it with org-agenda. Meaning I'd like all the items to appear in org-agenda and org-agenda being able of modifing/creating/delete any .ics.

Would I have to keep running imports/exports from/to a calendar.org? How would you approach this?

Thanks!

8 Comments
2024/10/23
21:24 UTC

1

Using in Neovim and mobile app?

Anyone use orgmode or something similar on Neovim and with mobile app? Currently I only use Emacs for orgmode and for mobile app I'm using Orgzly-Revived.

In Neovim, last I checked Neorg plugin is the most promising org-mode-like (it doesn't fully support .org file which is fine for me)--it has a mobile app as part of its roadmap but there's been no progress for 2+ years.

What I like most about org-mode its org-agenda features (and plugins like org-super-agenda and org-ql that make it easy to view TODOs with preset filters).

Something like VimWiki or markdown-like TODO lists aren't suitable because they are too close to "text-based", e.g. it's not nearly as powerful when it comes to searching notes where it naively simply searches by words (I use org-goto to search TODO headlines which usually yields desired results quicker). Hotkeys to set deadlines, TODO state, tags, and priorities are very convenient.

A mobile app makes it super easy to quickly add a TODO note when random thoughts come up. The widget on the Orgzly-Revived mobile app e.g. shows my updated (via Syncthing) shopping list on a homepage of Android so I don't even have to open the app (I can also select a pre-configured sets of filters to view their results from the widget, e.g. upcoming deadlines, etc.).

3 Comments
2024/10/23
19:30 UTC

2

Is there a way to set margins for Beamer export ?

Hi all,

If I want to reduce the margins of a presentation (I usually have plots, I need the maximum screen real estate), I have to do it in the final version directly in the .tex file, which is annoying.

I have to add the simple command : \setbeamersize{text margin left=5mm,text margin right=5mm}, but it has to appear after the beamer theme. But org export settings seem to put the theme at the end of the preamble, or at least after #+latex_header or #+latex_header_extra. Any ideas ?

EDIT: I found keywords for it ! Actually there is #+BEAMER_HEADER that is just for that. Couldn't find it through convoluted google seatch, but company finally tipped me off ^^

5 Comments
2024/10/23
09:32 UTC

7

Has any one used an org-file with code blocks for cron jobs?

Hi all,

I am wondering if one can use an org-file for cron jobs.

Benefits would be all the structure/folding/navigation benefit and everything (logging + code) would be in one place.

On a theoretical level: Is this smart or dumb? Curios what your opinions are!

And on a practical level: How can I let "org-babel-load-file" update the #+RESULTS section?

I have this MWE:

#+title: Cronjobs

#+begin_src emacs-lisp :results output prepend

  (princ
   (concat "I'm here because someone run the code block at "
           (current-time-string)
           "."))

#+end_src

#+RESULTS:
: I'm here because someone run the code block at Fri Oct 18 08:39:30 2024.
: I'm here because someone run the code block at Fri Oct 18 08:39:27 2024.

But the printed results came from C-c C-c-ing the code block. Running org-babel-load-file does print the message but doesn't modify the file...

Best

Jonas

2 Comments
2024/10/18
07:08 UTC

1

org-agenda-do-date-later for repeated tasks

Hi guys,

Let's say I have a recurring task in Agenda like

* TODO Water the flowers weekly
  SCHEDULED: <2024-10-17 Thu 09:00 +1w>

If I this week decide I instead should water the flowers on friday, I just press the S-RIGHT (org-agenda-do-date-later)

But then it (as is described in manual) moves all instances of "Water the flowers" to Fridays.

Is there an (easy / built in) way of pushing a single instance of a recurring event forward to Friday, while keeping the rest of the instances on Thursday?

My guess is not, as it would require somehow cloning the instance for this week as a new task and leaving the recurring task alone?

12 Comments
2024/10/17
09:13 UTC

7

Voice-Powered Org-Capture Workflow?

Hi everyone,

I use Org-mode for task management and note-taking, and I’m wondering if there’s a voice-powered workflow to capture entries hands-free via voice commands or speech-to-text. Tools like OpenAI Whisper exist, but I haven’t seen anything that integrates them directly with Org-mode for capturing tasks or notes.

Has anyone seen or built a solution for this? I’m on Emacs with Arch and android (termux).

Thanks!

3 Comments
2024/10/17
05:36 UTC

4

org-drill gives me the error "Not an Org time string"

Is anyone here still using org-drill?

In Emacs version 30.0.50 and Org version 9.7.5, it does a great job for my son learning Latin. But when I start a cram session with org-drill-cram, it seems to make use of the saved property :DRILL_LAST_REVIEWED: [Y-10-16 Mi 16:%] (this is the one for today), and it doesn't run, giving me the error message:

Not an Org time string: [Y-10-16 Mi 16:%].

Has Org changed so much that this older package org-drill doesn't work properly anymore? Has anyone found a work-around?

4 Comments
2024/10/16
15:21 UTC

3

Is orgmode overkill coming from Dynalist and Workflowy?

I know almost nothing about orgmode aside from some videos here and there. In terms of programming and code I even know less.

I liked apps like Dynalist, Workflowy or Logseq for its infinite outlining capabilities and how fast and easy I could organize my ideas into infinite bullets.

However, those apps have strong limitations: aside from Logseq they are cloud based(that makes me fear of losing my notes if the company disappears), they have monthly payment requirements for some features(again not Logseq) and they have clunky use or lack basic outlining things like numbered lists(on mobile at least) and so on.

Maybe those apps have workarounds to some of those problems but I ended up here since it seems orgmode solves all of the above problems, free, and it’s expected to last for as long as needed it. It sounds great to be honest.

But…

Is it too much? Is it too much effort to set up/learn? Will I be able to easily use it on multiple devices like pc, Mac, iOS with basic gdrive or iCloud sync without it being slow or having files rewriting themselves during those sync processes and losing information?

I fear I’ll need a masters degree in computer science to write my daily to do list or make a novel writing outline quickly(again I don’t know enough about the app)

Any kind of advice would be welcomed.

As a side note. I tried obsidian but I absolve need more advanced outline capabilities. Obsidian outlining plugins are way too basic and clunky.

15 Comments
2024/10/16
01:29 UTC

0

org-table misalignment

I'm having trouble with org-tables. When I hit tab to auto-align table cells after an edit, sometimes a row won't align. Looking into it, it turns out a character, often the pipe | but not always, somehow has a double width. Poking at it with describe-char shows the following:

Character code properties: customize what to show
  name: VERTICAL LINE
  old-name: VERTICAL BAR
  general-category: Sm (Symbol, Math)
  decomposition: (124) ('|')

There is an overlay here:
 From 36582 to 36583
  face                 region
  priority             (nil . 100)
  window               #<window 9 on AIOTMLWTF>


There are text properties here:
  display              ((min-width ((2 . width))))
  face                 org-table
  fontified            t
  line-prefix          #("    " 0 4 (face org-indent))
  org-category         "20210913T141637-aiotmlwtf"
  wrap-prefix          #("    " 0 4 (face org-indent))

I turned off various minor modes like visual-wrap-prefix-mode, visual-line-mode, visual-line-column-mode, org-indent-mode, and aggressive-indent-mode to no avail. So have no idea what causes the insertion of that special character feature. (Running a recent Emacs31.)

Edit: it turns out the problem is visual-wrap-prefix-mode. See bug report here.
Edit2: bug fixed.

0 Comments
2024/10/15
20:28 UTC

7

best workflow to benefit from books read and annotated

Hallo

my use case although noble is quite difficult, here the A) Abstract and B) Specific formulation:

Abstract

I read a lot and want an efficient way to use the information i read inside the books

Specific

As reader I want to benefit from the content of the books i annotated, and kind of run queries to have the annotations available as i prefer. For instance I could have assigned a tag about a topic to every annotation, or a rating of importance from 1 to 10, and so I could have the need to retrieve the title of the chapters and paragraphs of a book, or the chapters, paraghraphs and notes, or and here becomes interesting all the notes that have a specific rating with a sparse tree (chapters, paragraphs) and notes with importance > 5 or even more interesting across the books with a specific tag as for instance statistics all the notes with a rating >9

IMPLEMENTATION

I do not know what is the most convenient way, really I have not idea, but i confine that there are other avid readers that develop org mode that thought about a convenient workflow

* annotating pdf of digital documents so that can see on the side the original pdf and another side the notes and assinging multiple tags and running researches across the org files

* using org roam to make a kind of wiki using a lot of links,or a lot of org files in subfolders and run a research with a kind of specialized engine to retrieve what I need

* see if can use SQL in org files so that for instance the headers of one level would be assigned to a table/column, and the nested ones will be automatically assigned with an id beloging to the table or something similar that will simplify to transform the org mode to SQL

* org table files

* Some SQL tables in Postgree sql via a star model or model vault key that will be queried in some way inside org mode

CONCLUSION

All I want is to capitalize the books i read in a way I can extract information, confront sources, highlights, adding notes etc

3 Comments
2024/10/15
16:10 UTC

1

Keyboard shortcut to close all literals

Is there a keyboard shortcut in Emacs (or Evil, which I use) to close all Literals (#+begin_* sections) in the entire document? Or at least a command that I could bind to a shortcut?

6 Comments
2024/10/14
23:34 UTC

2

Is there any downside to using a different file extension than .org for orgmode?

Basically the title. I think I remember reading somewhere it was officially recommended to switch the file extension to .txt and not use the unique .org extension as they are functionally the same. Both are plain text formats, you might just have different txt files, that are not formatted in orgdown there too. Is that all or have I missed something? Is there an actual downside like a dependency of org-roam that you end up in dependency hell if you decide to use txt or another file extension instead of .org. Bc otherwise everytime you don't have an org parser around and are on a system like a tablet, it will straight up refuse to open the file, locking you out of your data complete. This can be avoided by using orgdown formatting, but utilizing the .txt extension.

Cheers and thanks for your insights

7 Comments
2024/10/13
13:21 UTC

Back To Top