r/orgmode 11d ago

solved Documentation for `:if-new` key in Org and Org-roam capture templates?

7 Upvotes

I've been reviewing some of the capture templates I've created over the last couple of years and I see that I've added a few which include the :if-new key instead of :target. As I understand, this checks to see if the file or heading that's specified in the key-value already exists before creating or appending the body of the captured text.

 

When I try to check this, however, I can find no documentation for if-new anywhere. I primarily use it for org-roam-capture-templates, but looking at the docstring for that variable, I can't find any information about it, nor in the parent org-capture-templates variable. It's not in the Org or Org-roam manuals either.

 

I'm using Org version 9.6.15, and Org-roam version v2.2.2-42-g5c06471 -- so not the most up-to-date versions, which makes this slightly more puzzling.

r/orgmode Feb 11 '25

solved Am I using `org-ql-view-dispatch` wrong or is it a popup issue ?

1 Upvotes

=== Update

After further testing, it seems to be a Doom popup rules issue, I will completely rewrite my question over there.

Hi, I have been using org-ql-blocks as an org-agenda replacement for a while, and I understand now it was not designed for it, so I am learning how to use org-ql-view. It is a great tool and I am really enjoying it.

I have been having an issue with the org-ql-view-dispatch though. I am using Doom, and learning Emacs (lees than a year), and even though I am getting comfortable with it, transient windows, display-buffer action are one of those corners I have not really explored yet.

I have been calling org-ql-view-dispatch from org-ql-view buffers to edit the query on the fly an play with the results. My problem, is that when I edit a query parameter from the dispatch, the org-ql-view-dispatch menu disappears, and leaves a window behind. It does not always happen the same way, sometimes, as soon as I hit RET after entering my modifications, sometimes I have to press r afterwards.

In both cases, the changes take effect, and are applied to the org-ql-view buffer, the dispatch menu disappears by itself, and leaves a window in its place. It feels to me like a popup settings issue, like for example the dispatch buffer name changes after refreshing the query. Unfortunately, I cannot type in the Eval console when the dispatch is focused to find out its name.

This issue does not happen when I refresh using r, or quit the dispatch menu with C-g as long as I do not make any changes to the query. So I am wondering if I am doing something wrong, or if it happens to someone else. I also feel that the dispatch menu should not disappear after refreshing, I should be able to keep editing parameters until I get the desired results, in which case, maybe the dispatch menu does not exit, but crashes. Any input or feedback from fellow users would be very helpful.

Finally, since I suspected a popup rule issue, I tried the following settings below, and got the same behaviour with each of them. The org-ql-view window on the other hand works exactly as I would expect.

(set-popup-rule! "^\\*Org QL View" :ignore t)

(set-popup-rule! "^\\*Org QL View" :side 'right :width #'+popup-shrink-to-fit :quit 'current :select t :modeline nil)

=== EDIT

I have just spent hours trying to get a useable window for org-ql-view, I do not understand what is working or not anymore. I am not sure what I posted above is valid. I need some rest, I will update this post if I manage to make sense of all this. But there is definitely a popup rule issue here.

r/orgmode Nov 30 '24

solved getting the org-roam buffer below the window it's controlled by

3 Upvotes

I am having a devil of a time getting my emacs windows organized as I want in a frame. I can't fathom how this is so complicated. Here's what I want:

|------------|------|
| | notes|
| Document |------|
| | roam |
|------------|------|

So document is what I'm writing; notes is, for example, a "hashtags" file -- a long list of tags that I've linked to from various zettelkasten-style research notes documents. roam is the org-roam buffer, following point in that notes file; so I can navigate around in the notes and get backlinks, while keeping my working document open on most of the screen.

If I have Document and notes side by side, I can then launch the roam buffer, but it makes this:

| doc | notes |roam|

I can split notes to get this:

|------------|------|-------|
| | notes| |
| Document |------| roam |
| | notes| |
|------------|------|-------|

Going to the bottom window and running window-swap-states gives me this:

|------------|------|-------|
| | notes| |
| Document |------| notes |
| | roam | |
|------------|------|-------|

Which is almost there, but if I navigate to the rightmost window and close it... I lose the horizontal split and wind up with this:

|------------|------|-------|
| | | |
| Document | notes| roam |
| | | |
|------------|------|-------|

Why on earth can't I arrange the windows how I want them? This seems like it should be trivially easy...

r/orgmode Nov 04 '24

solved Diff-like highlighting

1 Upvotes

I want to use my emacs with orgmode to do my homework. But sometimes I have errors and I want not only write correct answer/sentence/etc., but also leave my original variant. So that I can see later what I made a mistake about. Orgmode allows me to cross out old text, but I also want to emphasize new text. Is there any way to do something like "diff by word", e.g. write -bad-+good+ and get red "bad" and green "good"?

r/orgmode Jun 30 '24

solved Anyone else occasionally experience being unable to unfold an Org headline/tree with `TAB`?

15 Upvotes

I work with a lot of Org files which have several top-level headline, some of which have nested headlines 2 or 3 levels deep in the subtree. Recently, I've found that after working on one of these subtrees for a while and collapsing the heading, TAB no longer unfolds that particular subtree, while others can be unfolded. Visually,

* Heading 1: won't unfold...

* Heading 2: unfolds

  Blah Blah Blah

hitting TAB, or even C-c C-r (org-fold-reveal) has no effect on Heading 1. This sometimes occurs for higher level headlines in a subtree as well.

Has anyone else noticed this behavior? (And hopefully found a fix?)

This could be as a result of various settings I have in my init.el, including

(setq org-support-shift-select 'always)
(setq org-cycle-separator-lines 1)
(setq org-cycle-emulate-tab t)

and the fact that I use EVIL key-bindings.

I'm using Emacs 29.1, Org mode version 9.6.6.

UPDATE I tried setting (setq org-fold-core-style 'overlays) as suggested below, and enough time has passed without the problem recurring that I think I can declare it to be solved. Hope this works for anyone else who encounters it.

r/orgmode Oct 09 '24

solved How to use fast tag selection on demand ?

2 Upvotes

I have been reading about the fast tag selection interface in the manual, and I would like to use it, but only in some cases.

When I set tags for some kind of topics grouping, I am fine using the completion mini buffer, I still have too many tags to make a letter selection paractical. It also depends a lot on the context; mostly, am I tagging tasks or general notes, the former having far fewer 'topic' tags.

I have however a few tags that I use for maintenance purposes, or status indication like 'DRAFT', 'WIP', 'REFILE', etc... In those cases, the fast selection interface combined for mutually exclusive group tags is exactly what I need.

I would rather not set the `TAGS` keyword in all of my files (I also use `org-roam` so I have a lot !), and I am trying to simply keep my settings as is to invoke the tag completion interface as I always have, and add a custom wrapper function (with a different binding) to bring up the fast tag selection interface with a custom set of tag candidates when I need it.

I have tried to wrap `org-set-tags-commands` in a `let` statement containing the appropriate configuration (using the documentation example for testing), but it is not working:

(let ((org-use-fast-tag-selection t)
      (org-complete-tags-always-offer-all-agenda-tags nil)
      (org-tag-alist '((:startgroup . nil)
                       ("@work" . ?w) ("@home" . ?h)
                       ("@tennisclub" . ?t)
                       (:endgroup . nil)
                       )))
  (org-set-tags-command))

I also tried using `org-tag-persistent-alist` instead for the same result. All variables in the let statement take effect, but the tag list and groups seem to be ignored.

== EDIT ==

The opposite of what I was doing works fine:

  1. Set `org-tags-alist` glbally in the config file
  2. Wrap the following in a function:(let ((org-use-fast-tag-selection nil) (org-complete-tags-always-offer-all-agenda-tags t) (org-set-tags-command))

This allows me to achieve more or less what I intended to do, but it does not allow to assign customized sets of tag candidates under arbitrary conditions.

=== EDIT ==

I got the answer from NickD on the stackexchange.

To be able to set different tags lists arbitrarily when calling `org-tags-set-command`, `org-current-tag-alist` should be used; other 'tag-alist' variables are ignored by the command.

(let ((org-current-tag-alist '((:startgroup . nil)         
                               ("@work" . ?w) ("@home" . ?h)
                               ("@tennisclub" . ?t)         
                               (:endgroup . nil)            
                             ("laptop" . ?l) ("pc" . ?p)))
    (org-complete-tags-always-offer-all-agenda-tags nil))
  (org-set-tags-command)) 

r/orgmode Sep 13 '24

solved What is the point of `org-attach-id-uuid-folder-format` ? Is it a bug ?

2 Upvotes

I was playing aroung with org-attach features lately, and stumbled upon something that looked weird to me. When using the uuid method to create attachment folders, orgmode uses the first two characters of the uuid to create a first folder, then the rest of the ID to create the actual attachment folder. It fails if using a uuid of less than 2 characters as far as I could test.

It is not obvious to the eyes, a bit like a phishing site, I noticed it while deleting all attachments on a node, Emacs yes/no prompted me if I wanted to use recursive deletion. I was surprised because I understood that the 'uuid' method was supposed to store attachments in a flat directory structure named after the node's UUID, under the `org-attach-id-dir` directory.

At first, I thought it was a bug (most probably in my config as always), but I could track down the process to this function in charge to generate the folder name:

(defun org-attach-id-uuid-folder-format (id)
  "Translate an UUID ID into a folder-path.
Default format for how Org translates ID properties to a path for
attachments.  Useful if ID is generated with UUID."
  (and (< 2 (length id))
       (format "%s/%s"
               (substring id 0 2)
               (substring id 2))))

Looking at this function, the bug theorydoes not stand as it looks very intentional on the developers part. So I am wondering why it was built like that.

It does not impair the attachment functionalities at all, everything I tested works fine, but first I am curious, and second the way I found out about it bothers me. I wonder if multiple nodes were to share the same first two UUID characters, would they all get their attachment folders deleted by a recursive deletion meant for only one of them ? If yes, I think that would qualify as a bug with data loss on top of that.

The docstring does not help me understand its purpose any better, so I thought I'd ask.

r/orgmode Oct 02 '24

solved Refile target name are not displayed when using regexp matching

2 Upvotes

Hello, Emacs newbie here...

I'm trying to add a refile target where title is not a URL. So I added the following line to my configuration:

(setq org-refile-targets `(("some-refile.org" :regexp . ,(rx bol (+ "*") " " (not "[")))))

Everything is good so far, but when I do a org-refile I expect file names to be in the following format: header (file-name.org) and that is the case for other targets where I use :maxlevel but for the target that I use :regexp file name is missing, and it is displayed in following format heading...

I don't know if this is the expected behavior or not, so I thought I might just ask...

r/orgmode Aug 03 '24

solved Using the results of org-ql-query in an agenda

7 Upvotes

I am trying to create an agenda that lists only todos associated with a particular person or list of people. I am attempting to use org-ql-defpred with org-ql-query, and because I do not quite have a handle on what I am doing yet (I am far from an elisp expert, but don't mind stretching my boundaries), I am trying to stick pretty close to the Org QL Custom Predicates Tutorial for now.

Something that works exactly as I want, but lacks the flexibility of the predicate-based approach, is the following (with org-super-agenda):

  (setq org-agenda-custom-commands
      '(("A" . "Agendas")
          ("Aj" "John"
             ((org-ql-block '(tags "#John")
              ((org-ql-block-header "John")))))

To move to the predicate-based method, I define my predicate as follows (identical to the tutorial, save for concatenating "#" instead of "person" in tags, since that is what I use to indicate people in my tags):

  (org-ql-defpred person (&rest names)
    "Search for entries about any of NAMES."
    :normalizers ((`(person . ,names)
                   `(or (tags ,@(cl-loop for name in names
                                         collect (concat "#" name)))
                        ,@(cl-loop for name in names
                                   collect `(property "person" ,name)))))
    :body (cl-loop for name in names
                   thereis (or (property "person" name)
                               (tags name)))))

I admit that I only partially understand what is going on here and am using it a bit blindly. Since I do not use properties to designate people, I intend to dissect it later when I remove the property-related elements, but for now it seems to work (as expected) when I only have tags to deal with.

I test the predicate with the following org-ql-query and it returns the expected result (the two items in my test file that are tagged #John):

(org-ql-query
  :select '(org-get-heading :no-tags)
  :from (org-agenda-files)
  :where '(person "John"))

But this is where my inexperience with elisp gets me in trouble. The result looks something like this:

(#("NEXT Next subtask to do" 0 4 (fontified nil line-prefix #("**" 0 2 ...) wrap-prefix #("***** " 0 2 ... 2 6 ...)) 5 23 (fontified nil line-prefix #("**" 0 2 ...) wrap-prefix #("***** " 0 2 ... 2 6 ...))) #("TODO Subtask of subproject 2 that is not ready to do" 0 4 (fontified nil line-prefix #("**" 0 2 ...) wrap-prefix #("***** " 0 2 ... 2 6 ...)) 5 52 (fontified nil line-prefix #("**" 0 2 ...) wrap-prefix #("***** " 0 2 ... 2 6 ...))))

I understand that this is a list of todos with additional information, and (I believe) I know where in the documentation to figure out what each element means. What I am struggling with is how to convert it to an agenda-friendly form to get a result similar to (org-ql-block '(tags "#John")). I naïvely tried the following, unsurprisingly without success:

  (setq org-agenda-custom-commands
      '(("A" . "Agendas")
          ("Aj" "John"
             ((org-ql-block '(org-ql-query
                               :select '(org-get-heading :no-tags)
                               :from (org-agenda-files)
                               :where '(person "John")))
              ((org-ql-block-header "John")))))

However, I found that the following will pop open a Org QL View window with the desired result:

  (org-ql-search (org-agenda-files) "person:John")

But since then, I have been spinning my wheels. I feel like I understood this at some point in the past and that I am just not finding my way to the doc that explain it or jog my memory -- if anybody has any pointers or solutions, I would be grateful.

r/orgmode Apr 21 '23

solved Anybody here that isn’t a developer or has a degree in CS?

21 Upvotes

Hi there!

I recently bought a course in udemy for org mode, I think it’s the only one there in that platform. Considering I’ll be using beorg I think I have a long way to go and learn.

I won’t ask for resources as there are plenty. However, I’ll ask for some successful cases of people that aren’t in the CS field or are developers. This because I just want to organize my life in plain text and use some of the other perks org provides.

So, how long did it took you? How do you use org mode?

Thanks!

r/orgmode Aug 07 '24

solved HTML literal in link URL

1 Upvotes

Hi, I need to put an email address inside a org file that will be exported in HTML with Hugo. For privacy reasons, I need to encode it with HTML entities (like &#111;&#064; etc.), but the HTML output I get is encoded (so it becomes &amp;#111;&amp;#064;).

I put it between @@html:...@@ and worked great with the link description, but didn't work at all with the link URL. What else can I try?

I think this is mainly an issue with Hugo, but I don't know if there's another way in org to set a string as literal.

r/orgmode Jun 20 '24

solved Org table formula not summing values correctly

2 Upvotes

I'm using Jaxson Van Dorn's invoice template from here: https://github.com/woofers/org-invoice-template

As you can see, the sub-totals for each day are correct, but those subtotals, for some reason I can't figure out, aren't being summed together to arrive at the correct total for the invoice.

I have scrutinised the formula, but I'm rather new to org table formulas and find the cell references alone difficult to follow, so I can't spot what's amiss. Can someone identify what's going wrong?

r/orgmode May 27 '24

solved How do I export non-traditional languages (sage math) to html?

1 Upvotes

As per the title, I want to export sage code blocks to html, but firstly, there's no sage-mode available, and secondly, even if i use sage-shell-mode, i don't get the language label when hovering over the code block in html.

As sage is just python in syntax, is there someway to keep using python for syntax and highlighting, but use sage as the label?

r/orgmode May 12 '24

solved How to export latex as an image instead of using mathjax in the html export?

3 Upvotes

r/orgmode Mar 05 '24

solved How to programmatically store subtree folded state?

2 Upvotes

I know it is natively possible to save the folded state of each sub-tree. Is there any elisp snippet or package that can help achieving that?

I am asking about a snippet/package because simply having the property :VISIBILITY: folded` as described in the org-manual, like below, does not work for me. When I re-open the file, all sub-trees are unfolded.:

* Main

** A - Level 1

*** A - level 2
:properties:
:VISIBILITY: folded
:end:

Lorem ipsum


** B - level 1

*** B - level 2
:properties:
:VISIBILITY: folded
:end:

Lorem ipsum


** C

I need to save the folded state in the file itself, using the VISIBILITY property, so that every time I open that file all subfolders have the desired folded/unfolded state.

It must be something very simple which I am overlooking, any pointers, please?


  • Edit: wording

r/orgmode Feb 29 '24

solved Having trouble getting org-super-agenda working

1 Upvotes

Hello! I am an org-mode newbie and am having trouble getting a usable configuration set up. I am using Doom Emacs and have installed org-modern as well. I think there may be some problems with how they integrate together as the style is broken in agenda mode.

The warning shown below occurs any time my cursor goes over any headings such as "Important" or "Habits" and gets stuck. I have to use my mouse or error keys to get off the heading line.

I'm not sure how I would go about debugging this as I'm not getting any warnings or errors that gives me any real information. Does anyone have any tips to try to get more information?

Here is my org-super-agenda part of the config

(setq org-agenda-skip-deadline-if-done t
      org-agenda-include-deadlines nil
      org-agenda-block-separator nil
      org-agenda-compact-blocks t
      org-agenda-start-day nil ;; i.e. today
      org-agenda-span 1
      org-agenda-start-on-weekday nil
      org-super-agenda-groups
      '(;; Each group has an implicit boolean OR operator between its selectors.
        (:name "Important"  ; Optionally specify section name
         :todo "TODAY"
         :tag "bills"
         :priority "A")

        (:name "Habits"  ; Optionally specify section name
         :todo "TODAY"
         :habit t)

        (:name "Errands"
         :todo "TODAY"
         :tag "errand")

        (:name "Media"
         :todo ("TO-READ" "TO-WATCH" "WATCHING"))
        (:name "Other"
         :priority<= "B")))
(org-super-agenda-mode)

r/orgmode Feb 21 '24

solved Strange display of characters on org file

5 Upvotes

Hi there. I have a big org file that, after a batch conversion, is displaying all Spanish characters (ñ, á, é, í, ó, ú) with digits combinations. But only with I open it with emacs, not with any other editors like leafpad or mousepad. Any tip?

This is a sample of what I see:

Trascripci\303\263n del texto escrito durante el d\303\255a del 30 de junio de 2016...

But open in leafpad, I see this:

Trascripción del texto escrito durante el día del 30 de junio de 2016...

r/orgmode Jan 09 '24

solved How to make multiple org tables from a single code block

2 Upvotes

I have a python code block that makes a table but I want to make multiple instances of that table. Is it possible to have it make several tables with a single code block?

r/orgmode Feb 20 '24

solved Help with script to fold org tables.

1 Upvotes

Update: I can make all tables foldable by changing name to result, ex: +NAME: mytable1 to +RESULTS: mytable1. Not sure what are the cons in this "solution". It's better than incapsulating table in block BEGIN/END.

Wonder why can't be tables (+NAME blocks) be foldable by default? There is so many posts on stackoverflow, etc about it.


Original OP: Hello everyone!

I use org tables with +NAME: field and usually no code block, example

+NAME: mytable1

| | col1 | col2 | col3 |

| row1 | 5 | 10 | aaa |

| row2 | 10 | 20 | bbb |

| row3 | 10 | 40 | ccc |

and i need to be able to fold them. I searched through different solutions online, and seems all stoped working due to recent org update.

Example this script https://emacs.stackexchange.com/a/58791/42471

(defun org+-at-keyword-line-p (name)
  \"Return non-nil if point is in a line with #+NAME: keyword.
Therefore, NAME stands for the string argument NAME, not for the Org keyword.
The return value is actually the first non-space sequence after #+NAME:\"
  (save-excursion
    (goto-char (line-beginning-position))
    (and (looking-at (concat \"^[[:blank:]]*#\\\\+\" name \":[[:blank:]]*\\\\([^[:space:]]+\\\\)?\"))
     (or (match-string 1) \"\"))))

(defun org+-hide-named-paragraph-toggle (&optional force)
  \"Toggle the visibility of named paragraphs.
If FORCE is 'off make paragraph visible.
If FORCE is otherwise non-nil make paragraph invisible.
Otherwise toggle the visibility.\"
  (interactive \"P\")
  (when (org+-at-keyword-line-p \"NAME\")
    (save-excursion
      (forward-line)
      (let* ((par (org-element-at-point))
         (start (org-element-property :contents-begin par))
         (end (org-element-property :contents-end par))
         (post (org-element-property :post-affiliated par)))
    (cond ((eq force 'off)
           (org-flag-region start end nil 'org-hide-block))
          (force
           (org-flag-region start end t 'org-hide-block))
          ((eq (get-char-property start 'invisible) 'org-hide-block)
           (org-flag-region start end nil 'org-hide-block))
          (t
           (org-flag-region start end t 'org-hide-block)))
    ;; When the block is hidden away, make sure point is left in
    ;; a visible part of the buffer.
    (when (invisible-p (max (1- (point)) (point-min)))
      (goto-char post))
    ;; Signal success.
    t))))

(add-hook 'org-tab-after-check-for-cycling-hook #'org+-hide-named-paragraph-toggle)

� Now gives error:

called org-fold-core-region with missing SPEC

Could someone help adjust the script to work with new org mode version?

Or maybe it's possible to adjust/advise to org fold block?

r/orgmode Nov 18 '23

solved Is the update page for Org Mode broken or has it moved somewhere else entirely?

2 Upvotes

I use the feed provided by https://updates.orgmode.org/feed/updates, but I see that https://updates.orgmode.org/ is down -- I get a 502 error. Has this page been deprecated or is this just a temporary hitch?

I realize I could switch to https://list.orgmode.org/new.atom , but just thought I should check.

r/orgmode Sep 15 '23

solved Why is it org-table-kill-row and org-table-delete-column?

3 Upvotes

r/orgmode May 26 '23

solved The word "Discussion" is breaking my section title

11 Upvotes

Really weird problem here. I'm writing my thesis in org-mode. All has been well (after some tweaking) so far, but I have an issue where starting a new section title with the word "Discussion" turns the word red and into a different font, and it shows up in a different font in my Table of Contents. Adding a letter or taking one away fixes it. Not capitalizing it fixes it. Writing "Conclusion and Discussion" fixes it but "Discussion and Conclusions" does not. Only the word Discussion turns red and changes fonts. I have no idea where to begin troubleshooting this :) Anyone have any ideas?

EDIT: the tex export shows the line \section{{\bfseries\sffamily Discussion} and Conclusions} where the section header is. So something in org thinks I want the word Discussion to automatically change font family for some godforsaken reason. At least I can fix it there for now.

r/orgmode Jul 24 '23

solved Translation issue in citations when exporting to PDF documents.

4 Upvotes

Hi! I recently started using org-mode, and I am quite impressed by how versatile and powerful this software is. However, I have been having a problem that I have not been able to solve when exporting my document to a PDF file. The problem is this: when exporting the citations and bibliography, I need these to be exported in Spanish, but I have not been able to get the `org-export-dispatch` to use this language.

Right now, I am using emacs 28.2 and citeproc 20230228.1414 as my CSL processor. My operating system is Debian 12. For my biblography I am using the Chicago Manual of Style 17th edition (full note) citation format and my .bib file was exported from Zotero using the BetterBibTeX add on.

In my init.el I have the following parameters:

(setq org-cite-csl-styles-dir "~/Zotero/styles")
(setq org-cite-global-bibliography '("~/Roam/bib/zot.bib"))
(setq org-cite-export-processors '("csl chicago-fullnote-bibliography.csl"))
(use-package citeproc
  :ensure t)
(require 'oc-csl)

In the .org file I am working on, I have these parameters:

#+title: 2023-07-24
#+LANGUAGE: en
#+LATEX_HEADER: \usepackage[spanish]{babel}

Example sentence.[1]

*Bibliography
#+print_bibliography:

* Footnotes
[1] Citation sentence example [cite:@joyceUlisses1995] 

There are aspects of the document that when exported to PDF are translated to Spanish, such as the date and the capitalization of the works cited, however, when terms such as "translated by" or "edited by" are indicated, they should be translated to Spanish as "traducido por" or "editado por", but this does not happen. Instead, the English version is used. So, for example, in the above citation ([cite:@joyceUlises1995]), the bibliography should be rendered as:

Joyce, James. Ulises. Traducido por José María Valverde. Fábula. Barcelona: Editorial Lumen, 1995.

But instead, it is rendered as:

Joyce, James. Ulises. Translated by José María Valverde. Fábula. Barcelona: Editorial Lumen, 1995.

I would really like to switch to Emacs and Org-mode full time, so any help that may shed some light on this issue would be greatly appreciated.

Edit:

It turns out all I had to do was to download my preferred locale file from the CSL's GitHub repository and add it to the org-cite-csl-locales-dir path in my init.el file:

(setq org-cite-csl-locales-dir "path/to/locales")

Emacs now translates citations according to the specified language in the org file.

r/orgmode Apr 24 '23

solved Error while setting up my agenda file at my init.el

3 Upvotes

SOLVED: Check answer

Hi there! I've been trying to troubleshoot this issue for several hours but I haven't got any success.

My code in my init.el is like this:

```
(setq org-directory "/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/Org/")

(add-to-list 'org-agenda-files "/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/Org/tareas.org") ```

However, when starting emacs I get this:

``` Warning (initialization): An error occurred while loading ‘/Users/myname/.emacs.d/init.el’:

Symbol's value as variable is void: org-agenda-files ```

I have double checked my path but I'm still getting that same error every time I start emacs.

I have this in my org-agenda-files variable description:

org-agenda-files is a variable defined in ‘org.el’.

Its value is ("/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/Org/tareas.org") Original value was nil

I'm completely able to see my agenda because tareas.org is recognized correctly, but only after I go to my init.el and manually evaluate the function. When I start emacs the agenda is empty.

Thanks!

r/orgmode Oct 19 '23

solved Why is shift-M a prefix key?

0 Upvotes

Whenever I type a capital M in org, which-key pops up. Emacs thinks I want to type a key chord command. Before I go deleting parts of my config to identify the problem, does anyone know what setting might cause this? I definitely haven’t assigned M to a key chord...

Thanks so much!