New answers tagged

1

Set the variable org-indent-indentation to nil by running the command M-x set-variable.


1

time-stamp, which comes with Emacs by default, will allow you to do exactly what you want with the appropriate settings. E.g. I have: # Local Variables: # time-stamp-line-limit: 1000 # time-stamp-format: "[%Y-%m-%d %H:%M]" # time-stamp-active: t # time-stamp-start: "version = \"" # time-stamp-end: "\"" # End: in some ...


0

Besides @Zeta‘s answer. a less intrusive way could be: (evil-set-command-property 'org-open-at-point :jump t) for how it works, just inspect evil--jump-hook which is in pre-command-hook.


0

Why it does make sense: plain list entry doesn't limit to single line. Below is legit list. - In publishing and graphic design, Lorem ipsum is a placeholder text commonly used to demonstrate the visual form of a document or a typeface without relying on meaningful content. How can I disable this? Usually C-j and RET(or C-m) behave differently, one ...


1

AFAIK, you cannot use org-habit without a repeater intervals in date. for logging DONE state (or other todo keywords) (setq org-todo-keywords '((sequence "TODO" "|" "DONE(!)"))) ;mind the ! for more: https://www.gnu.org/software/emacs/manual/html_node/org/Tracking-TODO-state-changes.html


5

This is because no variable org-refile-targets has yet been defined when that code in your init file is being evaluated. (Obviously you've loaded the relevant library by the time you attempt this manually.) It looks like org-refile is the library which defines this, so you can either forcibly load that before using the variable: (require 'org-refile) (add-to-...


0

Only way I can think of is to use a function which sets the variable and then calls the dispatcher. Something like: (defun my/org-agenda-dispatcher-PERSONAL () (interactive) (setq org-agenda-custom-commands '(("1" "Week Agenda + All Tasks" ((agenda "w" ((org-agenda-span 'week))) (todo "...


3

Update: noweb references I misunderstood your question. My original solution works for text outside of code blocks, when you asked for updating values inside code blocks. To accomplish this, we can use (org) Noweb Reference Syntax. This allows us to insert the value of one code block in another. Using your example, this looks like: #+TITLE: My Nice Class ...


0

Here is my solution, which is a combination of @Leu_Grady's and @kuwze's. (1) Put the following snippet in .emacs: (defun my-indent-org-block-automatically () (interactive) (when (org-in-src-block-p) (org-edit-special) (indent-region (point-min) (point-max)) (org-edit-src-exit))) (define-key org-mode-map (kbd "C-i") #'my-indent-org-...


3

You can use org-table-map-tables for iterating over the tables of an Org file. Example for the Shell command: emacs --batch table.org --eval '(org-table-map-tables (quote org-table-export))' You should give the file names for the exported tables and the export format in the org file like that: * First Section :PROPERTIES: :TABLE_EXPORT_FILE: first.csv :...


0

(setq org-id-link-to-org-use-id 'create-if-interactive-and-no-custom-id) use org-store-link to store a link (works on non-org files, too) use org-insert-link to insert the stored link If you want more features: org-super-links org-roam Update: org needs some kind of config to actually find the IDs after renames. One way to do this is to: Install org-...


2

Just C-c C-l on the link and C-a C-k in the minibuffer to delete the link part will do it.. This used to produce an error before Org mode version 9.4, but it no longer does (see commit https://code.orgmode.org/bzg/org-mode/commit/6d62c76d2).


0

The culprit is Material theme. I like it, but it interferes with font size in Org's column view.


1

I think there are better methods to keep track of the modification time of the file: e.g. ls -l on the directory will tell you exactly what you are asking: the time that the file was last modified. Even better, keep it under source control and then you'll know every change, as well as when that change was made. THe point is that the modification time is ...


0

Since the graphs are pre-made, you can use export blocks to include the appropriate version for the appropriate export (IIRC, ox-reveal defines an exporter that's derived from HTML, hence the html tag in the block below): #+BEGIN_EXPORT html [[file:/path/to/img.svg][An SVG image]] #+END_EXPORT #+BEGIN_EXPORT latex [[file:/path/to/img.pdf][A PDF image]] #+...


0

The answer was to be found here: https://orgmode.org/worg/org-configs/org-customization-guide.html "Just open a .org file, press C-c [ to tell org that this is a file you want to use in your agenda, and start putting your life into plain text. "


1

advice is the magic to solve many Emacs problems, (defun my-org-export-as-hack (orig-func &rest args) (let* ((result (apply orig-func args)) (backend (nth 0 args))) (when (eq backend 'html) ;; use `replace-regexp-in-string' to process exported result (message "result=%s" result)) result)) (advice-add 'org-export-...


2

If I do M-x describe-variable <RET> org-capture-templates, I learn that %f expands to the filename you desire and %F the full path of the file. From there, you should be able to cook a link.


1

You could place the style in an HTML block: #+BEGIN_HTML <style> h1, h2 { color: #00abff; } </style> #+END_HTML


0

I was inspired by user3871's amazing idea to go a bit further, including configuring a safety exception so you don't get prompted to allow the code to run when opening the file. I append this to the file to generate an HTML version of the same file on every save: # Local Variables: # after-save-hook: (lambda nil (org-export-to-file 'html (format "...


1

You can use ox-slimhtml, an alternative HTML exporter. It produces minimalistic HTML output and in particular does not wrap each heading in a div.


0

[SOLVED] Oh boy, this post had the answer: Org-mode: No images to display inline Apparently if you add a description to the image the inline display won't work.


0

Assuming macOS, to get the clipboard as HTML, install: git clone https://github.com/chbrown/macos-pasteboard cd macos-pasteboard make install Then you can use the function function pbpaste-html() { command pbv public.html public.utf8-plain-text } Together with pandoc: input="$(gmktemp)" pbpaste-plus > "$input" ...


0

I'm a little late but I just figured out a pretty neat way to do this using :file and without using :var. As the other anwser already pointed out plt.show() doesn't produce output. However you can use :results output file instead of :results file (which is the same as :results value file). This means that the data to create the image is taken from stdout ...


0

There is no function org-ref-insert-cite-link in org-ref. You must mean org-ref-insert-link. Org-ref contains several implementations that add completion to allow interactively select values. You could write your own replacement for one of these functions depending on the framework you use. For example, write your own org-ref-ivy-insert-cite-link and use ...


0

You have two issue here and probably should have 2 questions. First is indent second is bracket matching for smartparens You can indent the whole tangled source file after saving it. This idea is taken from https://github.com/grettke/help The relevant code is (defun help/org-babel-post-tangle-hook-fn () (interactive) (indent-region (point-min) (point-max)...


1

I don't think that there is anything ready-made, but it does not take too much work to create something like that. The main question is what interface you find convenient. org-toggle-inline-images (bound to C-c C-x C-v) calls the function org-display-inline-images underneath the covers (that is mentioned in the doc string BTW - do C-h f org-toggle-inline-...


2

(org-collect-keywords '("PROPERTY")) could also be helpful, as mentioned in https://emacs.stackexchange.com/a/63102/31740. The org-collect-keywords doc string states: Return values for KEYWORDS in current buffer, as an alist. KEYWORDS is a list of strings. Return value is a list of elements with the pattern: (NAME . LIST-OF-VALUES) where NAME is ...


0

NickD's solution is a good enough approximation. Here's a custom function based on it: (defun ps/isearch-forward-visible-org-heading () (interactive) (let ((search-invisible nil)) (isearch-forward nil 1) (isearch-yank-string "* ")))


1

Ordinary interactive search (C-s) is almost exactly what you are describing: C-s * a does what you want, C-s alphaz ditto. Ordinarily, isearch searches through invisible, as well as visible text, so C-s * g would find the second level Gamma even if folded, but you can toggle that behavior: C-s M-s i * g would skip invisible text, so it would end up at the ...


1

If you don't mind what Org mode defines as inactive time stamps of the form [2021-04-28 Wed] (do C-h i g (org)Timestamps for more info), then Org mode has all the facilities you need: (defun ndk/org-insert-heading-and-inactive-time-stamp () (interactive) (org-insert-heading) (org-time-stamp-inactive) (insert "\n")) (define-key org-mode-...


1

Try the following: (defun ndk/org-todo-list-current-file () (interactive) (when (derived-mode-p 'org-mode)) (org-agenda nil "t" 'buffer)) (define-key org-mode-map (kbd "<f7>zt") #'ndk/org-todo-list-current-file) Since we assume that the current file is an Org mode file (it does not make any sense to ask ...


0

After experimenting with custom backends using org-export-define-derived-backend, I learned that we can define custom properties and reference their values in the way my question states. For example: We can derive a backend from the existing one and provide customizations. In this case, we can define a custom property mapped to the export property. (org-...


2

Ok. Found the culprit: org-startup-folded According to the built-in help: This variable was introduced, or its default value was changed, in version 9.4 of the Org package that is part of Emacs 27.2. While this answers the questions posed, it throws up another question as to why this was changed. However, since "why"-questions can be dug in ...


3

The python implementation in Org babel has a couple of long-standing problems: If you specify :results value, then the body is implicitly wrapped in a function and you have to add a return statement to indicate the value of the block - but only if you are not using a session. If you specify :`:results value but you use a session, you have to wrap the body ...


1

I found using a higher value, eg (setq split-width-threshold 100) resolved the issue.


0

I use https://github.com/jkitchin/scimax/blob/master/org-db.el for something like this. It doesn't directly support your syntax. I have toyed with storing hashtags (which is pretty similar), with mixed success. There are a lot of false positives especially with org-mode and src-blocks. I added support for @labels, and if it goes well in the next few days, I ...


0

I know this is an old question but it suddenly happened to me too. squidly had the correct answer but his reply was hidden so I had to work it out for myself. I had accidentally pressed 'NumLock' (top-right-hand-corner, 4-keys to the left on my keyboard). I hadn't realised for at least a year that there are two 'Enter' keys on my keyboard and Emacs thinks ...


1

The doc string of org-refile says: At the target location, the entry is filed as a subitem of the target heading. Depending on ‘org-reverse-note-order’, the new subitem will either be the first or the last subitem. If you don't want to set it permanently, you can let-bind it in your own org-refile wrapper command: (defun my/org-refile () (interactive) ...


1

based on tuh8888's answer https://emacs.stackexchange.com/a/59475/33499 i have an enhanced version to contribute: I patched his solution using el-patch.el to: number the choices from 1..0 (use 0 for the 10th choice) using dash.el because of readability (feel free to change this) only include the first 10 choices (-zip-with limits to shortest argument-list)...


Top 50 recent answers are included