11

Maybe the header argument :wrap can help, e.g., #+BEGIN_SRC elisp :wrap src sh (format "echo %s" (shell-quote-argument user-full-name)) #+END_SRC #+RESULTS: #+BEGIN_src sh echo Xu\ Chunyang #+END_src #+RESULTS: : Xu Chunyang


10

Here is a link to another thread you may be interested in, entitled "Is it possible to create an org-mode scratch buffer?": Is it possible to create an org-mode *scratch* buffer? New buffers that are not the *scratch* buffer, should default to fundamental-mode; e.g., when calling get-buffer-create. As to the *scratch* buffer, you can customize the initial-...


8

You can attach something to org-ctrl-c-ctrl-c-final-hook: Hook for functions attaching themselves to ‘C-c C-c’. This can be used to add additional functionality to the C-c C-c key which executes context-dependent commands. This hook is run after any other test, while ‘org-ctrl-c-ctrl-c-hook’ is run before the first test. To add something to a ...


7

I believe that setting org-hide-emphasis-markers to something non-nil will do what you want. The doc string of the variable says: org-hide-emphasis-markers is a variable defined in ‘org.el’. Its value is nil This variable is safe as a file local variable if its value satisfies the predicate ‘booleanp’. Documentation: Non-nil mean font-lock should hide ...


7

Multiple cursors asks you for unknown commands if they should be run for all cursors or not: "Do org-self-insert-command for all cursors? (y or n)". If you answer this prompt with no it will remember your choice and never ask again. Therefore using that command afterwards is not run for all cursors. See the unknown commands section in the readme: ...


7

One option is to check the source. M-x find-library outline You'll find in the header comments: ;; Copyright (C) 1986, 1993-1995, 1997, 2000-2019 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. M-x find-library org ;; Copyright (C) 2004-2019 Free Software Foundation, Inc. ;; This file is part of GNU Emacs. So, both are ...


7

Consider to customize variable org-special-ctrl-a/e. Possibly that will ease your flow. From the documentation. Note in particular the "item" part. When t, ‘C-a’ will bring back the cursor to the beginning of the headline text, i.e. after the stars and after a possible TODO keyword. In an item, this will be the position after bullet and check-box, ...


6

If you mark the heading as "archived" then it's ignored for the default visibility toggling. C-c C-x a (org-toggle-archive-tag), which just adds/removes the "ARCHIVE" tag to the heading -- all the subtree content remains. Even when marked as archived you can force expansion with C-TAB on the heading if you want, or just remove the archive tag. See the ...


6

PDF export is handled by LaTeX, which provides endless ways to customize your document presentation. A relatively simple way to apply side-by-side formatting to tables in org-mode is to wrap them in minipage environments: #+ATTR_LATEX: :options {0.4\textwidth} #+begin_minipage | one | two | three | |-----+-----+-------| | cat | dog | fish | |-----+-----+---...


6

Use the T option to turn off the color (you can learn all possible options on http://wttr.in/:help, I learnt this from https://github.com/chubin/wttr.in): T # switch terminal sequences off (no colors) For example, #+BEGIN_SRC sh :results output curl 'wttr.in/?0T' #+END_SRC #+RESULTS: : Weather report: Yancheng, China : : \ / ...


6

I think you are actually looking for publishing of projects. This does not only work for HTML but also for LaTeX. Projects are managed in org-publish-project-alist. Each entry of that list is one project. There you specify things like project path, publishing path, whether to create latex files that can be translated separately or body only files that can ...


6

upcase is hard-coded into org-ascii-template--document-title of Org-version 9.2.6. The following Elisp code neutralizes that upcase by temporarily setting upcase to identity. Note that one of the preconditions of the advice is that the source code of ox-ascii is available to Emacs. That is the case if you have installed the Melpa version of Org or you have ...


6

(widen) is enough for it, there is no need of an specialized function. Usually bound to C-xnw Also, you may find interesting those parts from the manuals: Narrowing from the Emacs Manual. narrowing from Elisp Reference Manual.


5

Here's a function that does that: (defun get-parent () (save-excursion (catch 'found (while (org-up-heading-safe) (when (and (member "@Project" (org-get-tags nil t)) (looking-at org-complex-heading-regexp)) (throw 'found (match-string-no-properties 4)))))))


5

Hold down the shift key while you use the arrows. Shift-right and left will move by days. Alt-Shift right and left will move by months, and Alt-Shift up and down will move by years.


4

Finally, this has been implemented in the package org-sidebar:


4

TL;DR: Using a persistent library of babel stored in one file can be a simple 3-step setup: Create an org-mode file ~/.emacs.d/library-of-babel.org. Add a line (org-babel-lob-ingest "~/.emacs.d/library-of-babel.org") to your Emacs conf. Collect useful functions in that file, they will be read during emacs startup. The Library-Of-Babel-file is where e.g. ...


4

Unlike org-mark-element, the function org-babel-mark-block only selects the contents of a block.


4

What's happening is that org-babel-python-evaluate-session sends an extra newline when the indentation level goes down, this causes the interpreter to close out the top-level block. What I've done is just commented out that bit (forgive the wonky indentation, my file as received from elpa mixes tabs and spaces) ob-python.el (defun org-babel-python-...


4

You can easily define your own link type that runs source blocks: (org-link-set-parameters "run" :follow #'org-babel-ref-resolve) Afterwards a click on run:hello executes the source block in the following Orgmode file. #+name: hello #+begin_src emacs-lisp :var n=1 (message "Hello. n=%s" n) #+end_src #+RESULTS: hello : Hello run:hello [[run:hello(n=2)]...


4

The Org documentation says Many commands in Org work on the region if the region is active. And indeed defining a region followed by C-c C-t acts on all headlines in that region. Note that customizable variable org-loop-over-headlines-in-active-region must be set. A further way is to use the respective bulk agenda action. Possible steps are as follows:...


4

Assuming that the org- libraries have already been loaded ... Type: M-x customize-face RET org-ellipsis RET To see a list of all faces for the org- library, type: M-x customize-group RET org-faces RET If the org- libraries have not yet been loaded, then evaluate (require 'org) using something like M-x eval-expression aka M-: before querying a particular ...


4

Customize the variable org-id-link-to-org-use-id and set it to t (AKA Create ID to make link). Then when you do C-cl (i.e. org-store-link), an ID property will be added to the headline with a UUID as value. When you save the link somewhere else (perhaps in another file) with C-cC-l (i.e. org-insert-link), the link will appear like this: [[id:b7b07a14-5dbb-...


4

Your init file defines a notes class that can be used by org when exporting to LaTeX: #+LATEX_CLASS: notes It works fine, in the sense that it produces a latex output that starts out like this: \documentclass{notes} ... But then, the org exporter calls pdflatex (or xelatex or something else depending on your setup) to process the LaTeX file. And guess ...


4

(setq org-log-done t) It will look like this: * DONE A task CLOSED: [2019-08-28 Wed 17:59] As it says in the documentation you can invoke with describe-variable: Information to record when a task moves to the DONE state. Possible values are: nil Don’t add anything, just change the keyword time Add a time stamp to the task note ...


4

You can use ansi-color to format the text. It doesn't have an interactive function, so you need to evaluate something like: (require 'ansi-color) (ansi-color-apply-on-region (point) (point-max)) That would treat the output in the current buffer from point to the end of buffer. Note that some of the formatting gets lost if you save the file, close it, and ...


4

There is a lot of inputs you can give to specify a date or time. The whole overview is here. Just some notable examples: Relative dates: +1 or just +: tomorrow +1w: next week sat: next saturday Absolute dates are a bit weird. It uses ISO YMD format by default: 3-2-5 expands to 2003-02-05. I prefer to use 23 jan 19 or 23 jan 2019 (equal to 19-1-23) to use ...


4

Try this package exec-path-from-shell which should solve your problem.


4

Two rules to take into account when solving your problem: Do not persistently mess up the syntax table if you do not see through all the consequences. It is used for many tasks. Do not advice forward-word to solve your problem. It is also used for many tasks you do not aprehend at the first look. But, what you can do is rebinding the keys for forward-char ...


4

You don't have one list here: you have two. The Text here... is a separate paragraph and that's not something you can have within a single list. The best that you can do, I think, is to tell your second list numbering to start with 3 (see the [@3] construct below), but note that if you add a third element to the first list, you will need to tweak the ...


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