4

Calling org-store-link by C-c l in file.tex buffer will store a link in the org-stored-links variable. Then, calling org-insert-link by C-c C-l in notes.org buffer will insert the link to your org file by selecting the right stored link in the prompt.


3

Sure. Any time a function inserts text into the current buffer when you want it as a string, you can use the with-temp-buffer macro: (defun add-property-with-date-captured () "Add DATE_CAPTURED property to the current item." (interactive) (org-set-property "CREATED" (with-temp-buffer (org-...


3

The variable org-attach-store-link-p is specifically designed for this purpose. Adding the following line to your init file would make org push a [[attachment:file-name.ext]] type link to org-stored-links every time you add an attachment. So after adding an attachment you can just use C-c C-l to insert the link. (setq org-attach-store-link-p 'attached)


3

You're not doing anything wrong, but org-publish probably is. However, you can fix the problem by using save-excursion: (define-key org-mode-map (kbd "C-c C-p") (lambda () (interactive) (save-excursion (org-publish-project "publish-website")))) save-excursion is a macro that saves the point and the current buffer, ...


3

You can remove the org-move-end-of-line bindings for C-e like so: (with-eval-after-load "org" (define-key org-mode-map "\C-e" nil) (define-key org-mode-map [remap move-end-of-line] nil)) Emacs 26.1 introduced the org-move-end-of-line behaviour change whereby it stops before the elided ... of a collapsed section; but note that prior ...


3

You can select the pasted-in region (if you do it right after you paste it in, it should already be marked) and then run pandoc on the region with C-u M-| pandoc -f markdown -t org RET. The prefix argument says: "replace the region with the output of the command". This is a bit fragile: if you mistype, you might end up with the region erased, but ...


2

Note: this only stores the local timezone and keep it in your timestamps. It'll replace any timezone information by your local one. But at least it'll store your current local one. Note2: all timestamps will work to my knowledge, but time ranges are then ambiguously displayed. Thanks to @He Yifei 何一非 to bring that up. This is what I did: (setq org-time-...


2

Emacs 28 (master branch as of this writing) recently gained support for emitting the necessary ECMA-48 "Select Graphic Rendition" escape sequences in order to render faces with the 'strike-through' attribute on TTY frames. If you're running a version of Emacs 28 that includes this commit, and your terminal's termcap/terminfo database entry has the ...


2

You reach your goal quite simple if you use source blocks instead of special blocks. Define your own major mode, say mypar-mode with the help of define-generic-mode or define-derived-mode and setup the fontification for that major mode like you want it. Make sure that org-src-fontify-natively and org-src-preserve-indentation are both set to t such that the ...


2

You can use a source block with a self-defined major mode. It is easy to define a customized major mode with helper functions like define-derived-mode. Let us name your new major mode myorg-mode. Then the name of the function executed on C-c C-c is org-babel-execute:myorg. It is called with two arguments. The first arg is the content of the source block as a ...


2

@lawlist nailed it. It is a configuration of the theme. I am currently using solarized. I kinda of fixed my issue setting (setq solarized-use-variable-pitch nil) as it is suggested on the README. But I would like to point out that in my case, it removed all boldness rendering from the org file. For me it is enough, hence the answer.


2

The TODO keywords in a heading use both the org-todo and org-level- faces. Does it work as expected if you don't set the :height attribute of the org-todo face? If you are looking to customize how the TODO keywords are displayed, you might want to check org-superstar-mode (in particular the documentation for org-superstar-todo-bullet-alist)


2

You can use youtube-dl for this. For example: (defun insert-youtube-link () (interactive) (let* ((link (read-from-minibuffer "Youtube-Link:")) (title (shell-command-to-string (format "youtube-dl --get-title '%s' 2>/dev/null" link))) (description (shell-command-to-string (format "youtube-dl --get-description '%...


2

See *** =align= STARTUP value no longer narrow table columns and *** Dynamically narrow table columns. Alignment and shrinking are now independent of each other. If you will allow me an editorial comment, I was as upset as you were when I encountered the change, but I no longer miss the old behavior at all. So give it a try, use #+STARTUP: align shrink (or ...


2

I've found my own solution. Here are the changes I've made to the source and configuration code that made this work. Source: #+TITLE: How to Automate Footnote Citations in Org-Mode #+AUTHOR: Sati Bodhi #+BEGIN_abstract This is the abstract. #+END_abstract * Cite Test This is a statement with a footnote reference. [fn:2a55720f42c74dd:This is the footnote ...


2

The org-babel-min-lines-for-block-output variable will help you accomplish this. I've set the following in my configuration files in order to make #+RESULTS code blocks be always enclosed within #+begin_example blocks (setq org-babel-min-lines-for-block-output 0) Here's an example #+begin_src cpp #include <iostream> int main() { std::cout <<...


1

I'm not sure at what point your text comes in, but since this is org-capture, you can use org-capture-prepare-finalize-hook to do postprocessing like this: (add-hook 'org-capture-prepare-finalize-hook (lambda () (unsafelinks nil))) Note that this does the postprocessing globally, so consider using the fourth argument of add-hook to do it locally or write a ...


1

Since current helm-find-files command does not support to insert multiple candidates as org links, a rough improvement can be made as follows: (defun helm-files-insert-as-org-link (candidate) (let* ((marked-files (helm-marked-candidates :with-wildcard t))) (dolist (file marked-files) (let ((target (expand-file-name (helm-substitute-in-filename ...


1

Which 15.6 Results of Evaluation options are needed? Collection: value Why? Because output puts it into scripting mode and you need to write to the standard output stream for the results. My initial problems with value was that I was trying to return an elisp list as the result of the function, and org-mode was pretty printing the list onto a single line ...


1

You can use the appt package, in combination with org-agenda-to-appt to get notifications from agenda items. Something like this should be enough: (require "appt") (org-agenda-to-appt) (appt-activate 1) org-agenda-to-appt adds all the relevant agenda entries to an appt list, that the appt package then uses for notifying you about them. You will ...


1

A solution kindly given by a member of org-mode mailing list: simply add (push '("\\.pdf\\'" . emacs) org-file-apps) in the .emacs file. This works for me.


1

The function org-attach-dired-to-subtree creates attachments based on the marked files (or the file the cursor is on) in a dired buffer - see Attach from Dired for details, including how to bind it to a key sequence (C-c C-x a which happens to be unused by default in dired-mode). The function org-attach-dired-to-subtree-store-links below is almost exactly a ...


1

The logic for setting the mode is in org-edit-src-code. This tests whether it's a src block or not. If it's an example block, it passes nil to the initialize parameter of org-src--edit-element. We can intercept this call using the "advice" feature in :filter-args mode. This will give us a list of arguments to org-src--edit-element. We can change ...


1

(org-babel-result-hide-all) Fold all results in the current buffer.


1

Just use an C-u prefix: From the docs: (org-latex-preview &optional ARG) Toggle preview of the LaTeX fragment at point. If the cursor is on a LaTeX fragment, create the image and overlay it over the source code, if there is none. Remove it otherwise. If there is no fragment at point, display images for all fragments in the current section. With a ‘C-...


1

The location and shape of the notification varies with how each Desktop Environment deals with notifications. Make sure that you satisfy the prerequisites: install the libnotify library: on my Fedora system, I do sudo dnf install libnotify. If you use Debian or a derivative, you will probably have to say sudo apt-get install libnotify and similarly for ...


1

You need to provide a path: [[./KLOCKA6.JPG]], otherwise the link is not recognized as a file link. Alternatively, you can make sure that it is recognized as a file link if you write it explicitly as [[file:KLOCKA6.JPG]]. See External links.


1

A way to achieve this: You can use the built-in function org-journal-new-scheduled-entry to add a timestamp (and TODO when no prefix is given) to your journal entries so they show up in the agenda. I bind it to a key (use-package config): :bind ("C-c j a" . org-journal-new-scheduled-entry) You are prompted for a date. Just hit RET to get the ...


1

First note, that your question is a bit vague. Where do you want to have this special formatting of the paragraph -- in HTML-export or LaTeX-export? Or even in the representation of the Org-buffer in Emacs? I give you here an answer for HTML- and LaTeX-export. The main idea for HTML-export is that MYPAR determines the style class of the text in the special ...


1

You may try the orgtb-aggregate package available on Melpa. It will create new tables from yours. In this example, partial sums are computed for similar values of enable: #+name: mytable | | | col1 | enable | |---+-------+------+--------| | | | 1 | 1 | | | | 3 | 0 | | | | | 0 | | | | 7 | ...


Only top voted, non community-wiki answers of a minimum length are eligible