Questions tagged [org-mode]

is an Emacs major mode for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system. Because Org mode is a vast subject area, other tags must accompany the `org-mode` tag.

Filter by
Sorted by
Tagged with
0
votes
1answer
43 views

How can I export my org file to be locally exactly like the github version?

I am new to emacs. In addition, I decided to learn org-mode which seems to be fantastic. I wrote this .org file that you can check here. In Github, the file has this appearance: In Emacs, it has a ...
1
vote
0answers
27 views

Line wrapping in select parts of buffer

When modifying an org buffer, is it possible to have line wrap selectively in different sections of the buffer? I would to wrap my text outside code blocks. But inside the code blocks, we get some ...
0
votes
0answers
14 views

Disable auto-capitalize-mode inside org-mode code blocks?

I use auto-capitalize-mode with org mode files and enabled it in my init.el as follows: (autoload 'auto-capitalize-mode "auto-capitalize" "Toggle `auto-capitalize' minor mode in ...
0
votes
2answers
23 views

Org timestamp prompt that returns timestamp as a string?

The function #'org-time-stamp prompts a minibuffer that reads control strings from the user, and call #'org-insert-time-stamp to insert the resulting time stamp as a string into the buffer. For ...
1
vote
1answer
19 views

Use variable in reference with remote in Org-table

I have one table called GRADING containing names and points entered by hand, and another table (FOO) containing the grading scheme. Is there a simple formula which allows to lookup the number of ...
0
votes
1answer
98 views

Possible to copy-paste without markup in Org-mode?

You can add inline code and verbatim text in Org-mode using this syntax: ~<code>cd ~~</code>~ =verbatim /text/= This is expected to display: <code>cd ~</code> verbatim /text/...
0
votes
0answers
24 views

org-agenda: How to use alternative calendars (e.g., the Persian calendar)?

E.g., I have #+TITLE: agenda/gen * test ** TODO cats DEADLINE: <2021-06-29 Tue> I want to make the deadline to be in the Persian calendar. What do I do?
0
votes
0answers
24 views

Execute org mode code block without escape codes

When I run a bash code block I get a response which contains a lot of escape codes/sequences, which makes the results output less readable. Example below: How can execute the code block, without the ...
0
votes
1answer
33 views

From an org item, launch a shell command with the item text as parameter

From an org list item, I want a function that I can bind to a shortkey or an org-speed shortcut, to be able to launch a shell command with the org list item text as parameter. Then I want to add tag ...
1
vote
0answers
54 views

How to add a default #+SETUPFILE: header to every published org-mode file

I have a bunch of org-mode files in a directory structure and would like to export to html using org-publish. Not all of them have the #+SETUPFILE: header, and I'd like to avoid having to add that in ...
0
votes
1answer
52 views

How to have folding and unfolding of headers in orgmode file persist through emacs sessions

Suppose I open an orgmode file and fold and unfold a bunch of headers, is it possible to let the folds and unfolds be the same next time I open emacs. I feel the startup function wont be enough. #+...
2
votes
0answers
47 views

View logbook notes taken today, this week

I wonder if it is possible to get a list of notes taken today or for given period that are stored in :LOGBOOK: drawer?
3
votes
1answer
111 views

How can I open an org file at a specific header postion via a command line?

I wan't to be able to programmatically open a file in org mode and scroll to a specific header. the file is quite big, so opening the file at a certain place is qhat I am looking for. Any idea how to ...
0
votes
0answers
26 views

Current timestamp. Incorrect time

Linux, Emacs 27.2 I want in org file to insert current data and time. Now in my machine is 02 June 10:56 AM. So I use command C-u C-c . Here result: Why time is incorrect?
2
votes
1answer
150 views

Publish a book as HTML/website with org-mode that is similar to bookdown

I've written a book using org-mode and I'm trying to export as an HTML/website, similar to this example. That was written using R and Bookdown, but since it all ends up as CSS/HTML, I don't see why ...
0
votes
0answers
25 views

Babel source block export format customization

I have this #+begin_src haskell :results silent :exports code :{ maximum'' :: (Ord a) => [a] -> a maximum'' = foldl1 (\x acc -> if x > acc then x else acc) :} #+end_src but on export ...
0
votes
1answer
49 views

How to only include entries with a certain tag for icalendar export in org-mode?

Long story short: I'd like to implement something like the opposite of org-icalendar-exclude-tags (i.e., org-icalendar-include-tags). I would like to export some entries from my org files into an ICS ...
1
vote
1answer
61 views

How to pass org-babel code block as variable to another code block?

I would like to pass the code from code block test_python to script. I do not want test_python to be evaluated, but simply to have the source code inserted into script when I evaluate script. The goal ...
1
vote
1answer
27 views

emacs org mode define a function in src block and call it

is there a method/package to use the following syntax to define and call a function? #+NAME: retX #+BEGIN_SRC python :var x=5 def retX (x): return x #+END_SRC ... Some text later... #+begin_src ...
0
votes
1answer
31 views

Add a filter when generating today's agenda view

what I want to achieve Say a ++2d habit not accomplished yesterday, I don't want it shown in today's agenda view but shown in tomorrow's and 2 days after tomorrow's and so forth. what I tried (defun ...
1
vote
0answers
30 views

Org mode to latex exports themes or templates

Where can i find some good org to latex export templates, for example, i found some good ones for HTML exports see fniessen excellent work here is there any similar projects for org-to-latex export?
0
votes
1answer
108 views

org-mode: force heading subtree to start folded

I know :ARCHIVE: does this, but I use that tag to mean the subtree is essentially useless now. I want sth like :FOLD:.
3
votes
1answer
65 views

How can I make source block in org mode to be scrollable?

As the title says, I'm trying to make the source blocks, when export, to be scrollable (e.g. vertical) so that the long source blocks don't mess up with the rest of content and the html/pdf files look ...
1
vote
1answer
24 views

org files are not refreshed in emacsclient

My org files are stored on the cloud so I can edit them from multiple machines. Whenever I make a change to an org file (from a different machine), emacsclient does not reflect these changes, but a ...
1
vote
1answer
35 views

How can I prevent pasting after org-copy-visible leaving cursor at end of text?

In evil-mode, if I use 3yy to copy three lines, then move somewhere else in my file and do P (evil-paste-before), the three lines are pasted before the line with the cursor, and the cursor is left at ...
3
votes
1answer
103 views

How can I copy+paste `org-mode` headlines only?

I have an org-mode file containing a structure like this: *** H1 **** H2 - Foo Foo **** H2 Foo Foo I would like to make a copy of H1 and all it's subheadings, but none of the non-headline content. ...
1
vote
0answers
623 views

First function not working: Device 1 is not termcap

(defun next-upper-heading () (interactive) (outline-up-heading) (org-forward-heading-same-level) ) When calling, I get the error: how can i research, what is going on here? ...
0
votes
1answer
31 views

Key to move to next ancestor heading in org mode

I would like to jump to the next parent heading from a lower level directly. Is there a shortcut for that in org mode? * a ** b ** c * d So to jump, say, from b to d.
0
votes
0answers
20 views

Emacs Shell/Makefile Command to Generate Org HTML for Org Journal Files

I'm using a Makefile to generate HTML for my org folder to turn into a website, but I'm just starting to use org-journal which doesn't put filename extensions on it's files. When trying to run a ...
1
vote
2answers
65 views

org-mode: Make C-a and C-e go to beginning or ending of logical line

What I'm trying to do is have C-a and C-e take me to the beginning or ending, respectively, of the logical line, not the visual line, in org-mode (with visual-line-mode active). I see that C-a is ...
0
votes
2answers
27 views

Bulk convert text under heading to individual sub-headings?

I have this in an org-mode buffer * Synonyms culture discipline improvement information learning literacy scholarship and would like to simply highlight this list starting with culture and ending ...
0
votes
0answers
24 views

Disable pretty entities for empty subscripts and superscripts in Org mode

Is there a way to disable pretty display for empty subscripts and superscripts in Org mode? So "X_{}" wouldn't be prettily displayed, but everything else, e.g. "X_{1}", would be. I ...
1
vote
1answer
19 views

org-map-entries says "Wrong type argument: char-or-string-p, nil"

I have this code: (defun org-get-logbook-notes () (save-excursion (unless (org-at-heading-p) (outline-previous-heading)) (when (re-search-forward ":LOGBOOK:" (save-excursion ...
0
votes
0answers
25 views

Show all (or some) markup in current line in Org-mode

I want to unhide/show all the markup of the line my cursor is on. For example: If the image is in preview mode, when I put my cursor on the line the image is in, I want it to show the full link e.g. [...
1
vote
1answer
25 views

Weird error on org-capture

I got my command for Ctrl+C - c - t (i.e. invoke org-capture) slightly wrong (i.e. missed a key or something when trying to type it). I know I got it wrong because it didn't work but instead changed ...
0
votes
2answers
83 views

How can I use the physics package in mathjax for org-mode HTML export?

I’m trying to use org-mode to export something as an HTML document, with MathJax equations. I know that MathJax supports the physics package, so it seems like it should be possible to tell emacs to ...
0
votes
0answers
59 views

Clocktable formula to get average of a column in a single cell

I have a table I'm generating: #+BEGIN: clocktable :maxlevel 0 :block thisyear :scope get-journal-files-for-current-year :fileskip0 t #+CAPTION: Clock summary at [2021-05-19 Wed 20:31], for the year ...
2
votes
0answers
43 views

Switch README from Markdown to Org, having problem with image rendering

I have a repository on Gitlab, I'm trying to change my README from Markdown to Org, I'm fully able to make the changes, but for reasons the the images are having some sizing issues, they expand ...
1
vote
0answers
35 views

olivetti misbehaving on save, in org buffers

I'm getting this very strange behavior while using olivetti: when calling save-buffer the display goes back to the left margin, as if olivetti has stopped working. If I call olivetti-mode, it shows ...
0
votes
1answer
91 views

Override org-mode indentation function in evil insert mode

How can I override the org-mode indentation function of TAB in evil-insert-state-map? I'd like it to always fold and unfold the current or parent header, and switch the indentation functionality to ...
0
votes
1answer
59 views

How to disable certain org-mode blocks from accidental execution

I have some shell code that can be dangerous to run on local machine in a org-mode source code block. Globally, I have configured org-mode to prompt for execution, but I would still like to make sure ...
0
votes
0answers
25 views

org-agenda won't show up when entries have timestamp with time range

been using org-mode for quite a while now (native emacs 26 on win10). Since yesterday, my org-agenda won't show up anymore if there is an entry to be displayed with an active timestamp that has a time ...
0
votes
0answers
17 views

Stop links from auto-expanding

Running Spacemacs 0.300 on Emacs 27.2. When my cursor is on a link in an org buffer, the link automatically expands. So, what appeared as 'Description' changes to something like [[id:xxxxxx][...
0
votes
1answer
240 views

Indentation in Org Mode Source Block with Return

I have a weird behavior in org-mode. When I create a source block, pressing RET indents the current and all previous lines with 2 spaces, resulting in something like #+begin_src bash :results output ...
0
votes
0answers
34 views

How to define absolute directory paths and use them as file prefixes in org files

I need to represent absolute paths to several directories by some constant names to use them as prefixes in org mode for a number of files contained in each of these directories. For instance they ...
2
votes
1answer
81 views

How to delete a single column cell in an org-mode table?

In Excel etc it is possible to delete a cell in a column and have the cells below it "shift up" without affecting the content of the other columns. I haven't found a command for this in org-...
1
vote
1answer
50 views

Why is electric-indent-mode adding extra indentation after pressing return twice in org source blocks?

When I try to write code in source block in Org mode, pressing return once acts as expected while hitting it a second time increases the indentation to two levels if it's currently less than that. ...
2
votes
1answer
39 views

How to hide the *Org Links* buffer when insert org links

When insert org links with org-insert-link, an Org Links buffer is created. How can I hide it?
0
votes
1answer
31 views

Tasks with indefinite intervals in org-habit

I'm trying to figure out a way to keep track of habits that do not have a definite interval for repetitions. I created the following habit without a deadline and time interval because I don't know ...
1
vote
2answers
49 views

How to disable org-mode 9.4.4 from indenting

After upgrading to org-mode 9.4.4 when I create a simple org file with a list (though it could be a heading) like below: - test And hit return, then it automatically indents. This doesn't make any ...

1 2 3
4
5
94