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.
4,387
questions
0
votes
0answers
3 views
Evaluating inline source code in Title
Is there a way to make my document title dynamic, for instance like this :
#+Title: Annual report for year src_emacs-lisp{(- (string-to-number (format-time-string "%Y")) 1)}
Should render ...
2
votes
1answer
600 views
Cursor disappears when point is at a leading star and org-hide-leading-stars is non-nil
In non-graphic mode I set org-hide-leading-stars to t. Unfortunately, under these circumstances, whenever point is on a leading star, the cursor disappears altogether. IOW, not only the leading star ...
21
votes
6answers
4k views
How to copy links OUT of org-mode?
There's lots of documentation about inserting or storing org-mode-links, but apparently none about copying them to buffers in other formats.
How do you copy the URL of an org-mode-link from an org ...
2
votes
1answer
21 views
Org-mode: disable abbrev-mode in source blocks
I use org-mode to write an executable paper, combining text and code. I make use of abbrev-mode to insert text more efficiently (e.g. type 'bc' to insert 'because') and to correct spelling errors. Is ...
0
votes
1answer
34 views
Italics not shown in block quotes in orgmode
In my blockquotes in org-mode, the fontification does not pick up on italics. I have looked at this question and answer that says it was fixed several years ago, but my issue persists.
I have tried ...
0
votes
1answer
62 views
How to get error messages for org-preview-latex-fragment?
(This took a long time to research, so I'm answering my own question, hoping to save others some time)
Let's say I have a file like this:
one by two is $\froc1{2}$
When I run M-x org-preview-latex-...
17
votes
5answers
5k views
Why do easy templates, .e.g, “< s TAB” in org 9.2 not work?
Easy templates in Org 9.2 are not working for me on GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30.
I have changed my elpa/ directory to smelpa/. I load emacs -q and switch to the *...
9
votes
1answer
318 views
Apply ANSI color escape sequences for Org Babel results
Feature
There is a nice built-in Emacs feature to colorize strings with ANSI color escape sequences. So evaluating the following Elisp code, will insert the "Test text" at the point with proper ...
0
votes
0answers
39 views
+100
Emphasize text snippets in source blocks
If one sets org-src-fontify-natively to t org source blocks are fontified according to the associated major-mode. That is fine.
But, is it possible to emphasize text snippets within the source blocks, ...
0
votes
0answers
11 views
How to turn the result returned by `org-sbe an-src-block` into list (of lists)?
In MWE.org, the source blocks list-files, summarize-files-1, and summarize-files-2 are defined to summarize files.
The list-files source block gives the filenames. The summarize-files-1 and the ...
0
votes
0answers
6 views
Dependent state in org-babel :var arguments
I enjoy using org-babel for testing/exploring API HTTP endpoints.
#+BEGIN_SRC http :var access-token=select-access-token-from-sql :pretty
GET http://localhost:3000/api/items/71
Authorization: Bearer ${...
1
vote
1answer
43 views
where are org-mode issues tracked?
Where are org-mode issues tracked? What I mean, why I ask:
I'm having a problem with arbitrary text immediately preceding inline markup, which is the best way I can find to express the general problem ...
2
votes
1answer
162 views
Searching for org-tags programmatically (without regexp)?
The function org-tags-view allows you to build up semi-complex searches for tags using regexp:
(org-tags-view t "+PROP1={value}&+PROP2={[1-2]}")
However, regexp is very limited. Is there a way ...
0
votes
2answers
29 views
Org Mode evaluate diff code block
I'm writing a programming tutorial. In between the prose I have diff code blocks that show exactly what changes are done to the code on each step. To make sure the diffs are correct I'd like to be ...
1
vote
1answer
14 views
How do I use global-unset-key for non ASCII characters?
I am using QWERTZ with Czech layout and to write certain characters like { and } I have to press down option, however in my emacs (using the emacsformacosx version) the option key is bound to the Meta ...
0
votes
0answers
25 views
Org-mode convert web link to PDF
I am trying to write two functions to do these:
Function 1:
When the point is on a link (in an Org file), generate a PDF from that link (I am thinkng of using wkhtmltopdf. Side question: does ...
1
vote
1answer
129 views
Cannot set correct size for variable pitch font in Doom Emacs
I am trying to use a variable-pitch font for Org-mode:
(add-hook! 'org-mode-hook #'mixed-pitch-mode)
I am specifying a variable pitch font that is normally renders much smaller than the fixed pitch ...
0
votes
1answer
19 views
How to open org-mode table as a pandas dataframe (with column names)?
I can't find how to open an org-mode table as a pandas dataframe.
Here is my example:
#+NAME:tbl
| a | b |
|---|---|
| 1 | 2 |
#+BEGIN_SRC python :var tbl=electro :results replace output :session ...
31
votes
6answers
8k views
Show org-mode hyperlink as plain text
Although it is convenient how org-mode shows hyperlinks, there are times when I want to see the underlying plain text, e.g. [[./file.org][Title]]. How can I do this?
I know about org-insert-link, but ...
1
vote
1answer
40 views
Maintaining consistent visual fill column under `org-indent-mode`
How can one enable org-indent-mode (or otherwise indent content to Org headings) while still maintaining a consistent visual fill column?
0
votes
1answer
83 views
Modifying the size of an asymptote image in latex export
I have been using Asymptote to make pictures that can be included in Latex documents. I recently discovered that Org mode plays well with Asymptote
https://orgmode.org/worg/org-contrib/babel/...
1
vote
1answer
27 views
Multiple timestamps for various states in TODO lists
I'm finding TODO lists in org-mode incredibly useful. For example, say I have a task to send an email, I define the following sequence in my init.el file:
;; Sequence in TODO list
(setq org-todo-...
1
vote
1answer
90 views
Org-mode verbatim tilde (=~=) is still processed by Latex back-end
I have some verbatim text containing a tilde, =some ~ text=. Now, org-mode is supposed to leave the tilde alone. However, upon exporting with the latex backend, I get the following in my .tex: \texttt{...
0
votes
2answers
30 views
How to compute ln in Org-Mode spreadsheet
Is there a formula to compute the natural logarithm of a number in Org-Mode spreadsheet? For example, to compute ln(1), Excel or Calc formula is =ln(1), what would it be in Org-Mode?
The result should ...
0
votes
0answers
11 views
org-mode expand to subtree at saveplace point on opening file
When I open an org-mode file containing a tree of headings, the tree is always opened in fully expanded state.
I'm using spacemacs with default configuration (develop branch), but I think this ...
1
vote
2answers
112 views
Defining variables in org mode using tables
I often want to define a whole bunch of variables at the top of an org file. In some cases I think it would be really nice to define all the variables in a table. So far, the best solution I've come ...
0
votes
1answer
96 views
Capture org-agenda and show-some-entry-text into dynamic block
In summary I want to capture org-agenda into a dynamic block with some entry text.
At the end of the week I provide a report as to what I've been doing and a list of what I intend to work on in the ...
0
votes
1answer
22 views
How to fill in a formula into adjacent cells in org-mode spreadsheet?
For example, in the following table
|------------+------------+-----+-----+-----+-----+-----+-----+-----+-----|
| Pobability | 0.1 | 0.2 | 0.3 | 0.4 | 0.5 | 0.6 | 0.7 | 0.8 | 0.9 |
| Odds ...
0
votes
0answers
21 views
Extracting all annotations from a PDF using org-noter or pdftools in Emacs
Two questions:
(1) I'd like to unify my note-taking flow: I am using both org-noter and org-pdftools.
If I make an annotation using org-noter, it is created in the orgmode document to that end as a ...
0
votes
0answers
9 views
org-noter: how to jump to place without moving cursor
When in org-noter, how to jump to the PDF place of the annotation without moving the cursor to the PDF (usually I don't need to move the cursor, but I want to continue jumping to other PDF places). ...
2
votes
2answers
38 views
Show compilation errors in “#+RESULTS” code blocks
The problem
I'm currently writing notes on C++ classes. Sometimes I annotate what I shouldn't do (because they cause compilation errors) so it would be really helpful if I could automatically insert ...
0
votes
0answers
18 views
org-reveal - auto split long output from babel block to left side
I have a python code to generate a long output text when export to slide (html). I can manually split the output to two columns for sure. is it possible to do it automatically if output too long?
for ...
2
votes
1answer
80 views
How do I convert scheduled recurring entries into clocked data?
I use org-mode for scheduling and logging in tasks. I clock in non-recurring tasks, however I find it strenuous to clock in recurring tasks. Is there any way I can mark the recurring task done and the ...
0
votes
0answers
12 views
Is it possible to have a quick look to org-todo in splitted window?
I believe this can be done but I couldn't find the right wrapper package or approach for it.
I just want have a quick look to TODO and close it. Similar approach is done in org-journal. I am using org-...
0
votes
0answers
9 views
Commenting in and Org-mode block (SRC) indents entire block. How to comment without indenting org src block?
In my org-mode source blocks, any commenting with a function indents the entire source block. Is this normal behavior? Is there a setting to allow commenting of region, or line without indenting the ...
0
votes
1answer
98 views
How to Prevent org-global-cycle Glitch
I'm having an issue when using (org-global-cycle) from a subheading followed by (org-cycle).
For example in the following org file:
* Level 1 Heading 1
** Level 2 Heading 1
** Level 2 Heading 2
*** ...
3
votes
2answers
1k views
org-anniversary entries not appearing in Agenda
What would prevent org-anniversary entries from appearing in the Agenda? Entries such as:
%%(org-anniversary 2015 01 01) New Year's Day
fail to show in the Agenda. I have toggled org-agenda-include-...
0
votes
1answer
29 views
Can't run org-refile function in Spacemacs
I am using GNU Emacs 27.1 with Spacemacs 0.300. I am new to Emacs and Org-mode. I want to use the function org-refile with the shortcut C-c C-w. However, this is what I get:
Why can't I use that ...
17
votes
4answers
3k views
How to change style of hyperlinks within PDF published from org-mode document?
I'm exporting (publishing) an org-mode document to PDF, and the results look great except for the hyperlinks. They look terrible.
Hyperlinks to the Web look the same, only with a pale blue outline. ...
10
votes
3answers
851 views
After change to org-mode 9.1.13, TAB not work when put after `<s`
Usually, TAB after <s expand to #+BEGIN_SRC in org-mode, but today I updated my org to version 9.1.13, and TAB not work this way any more.
I don't know where to start to figure this out, but I C-h ...
0
votes
1answer
90 views
bookmark-jump to org-mode file with collapsed headings not working as expected
I have a bookmark in one of my org files (set using the usual emacs bookmarks), but I'm finding that when I try to jump to the bookmark (with the usual C-x r b, which invokes bookmark-jump), it doesn'...
6
votes
1answer
2k views
How to tangle all code blocks to a common file
I am planning to keep my .emacs file settings inside an org file which I can then tangle to a .emacs file. However, for every emacs-lisp block I don't want to have to type the redundant :tangle .emacs ...
1
vote
1answer
23 views
How to limit mark/kill size of huge (org-mode) files?
I have org-mode files about 50K lines long, which I can edit and save file; but once in a while accidentally marked a large region by typing C-x C-x or C-x h, and copied too much data into clipboard, ...
0
votes
1answer
263 views
Proper syntax highlighting of $…$ in org-mode
I've put
(setq org-highlight-latex-and-related '(latex script entities))
in my emacs config and yet $..$ that contain more than one symbol aren't highlighted properly:
How to fix?
EDIT: This still ...
0
votes
1answer
68 views
Is there any way of getting overview statistics for all checkboxes in a given org subtree?
I have an org document with the following structure
* Tasks
** First category
- [X] Task
** Second Category
- [ ] Task
And I'd like to get statistics for both the overall completion and each ...
0
votes
1answer
19 views
Assign default priority cookie to captured tasks
I looking for a way to explicitly add priority cookies to tasks created via org-capture with default the cookie that represents org-priority-default. This is to avoid the situation that some tasks ...
0
votes
2answers
30 views
Use wildcard in tag search
Hi I would like to use
C-c a m
To create a todo list that is filtered by tags.
If I have a tag like :Makeamilliondollars:
I would like to be able search for it using a wildcard.
Eg I would like to ...
0
votes
0answers
21 views
How to remove spurious whitespace in `org-add-note` LOGBOOK drawer
When using org-add-note (C-c C-z) in Org, I'm unable to automatically remove whitespace that is inserted when finalizing the note and the text is filed into the LOGBOOK drawer. global-whitespace-...
3
votes
1answer
138 views
How would I create smarter HTTP links in org mode?
I have lots of links that look like:
https://domain.com/en/res/main/r1/sm-e/spec/1/1#q=1-1-1
I want to be able to enter a string like:
A-1-1
and be able to create a correct link like:
[[https://...
0
votes
1answer
23 views
How to properly align org table with mixed English-Bengali script?
I am unable to tidy up this table, so that last column is properly aligned, as the other two:
|-----------+----------------+------------|
| English | Bengali s. | Bengali w. |
|-----------+------...