Remove "lst:looking-at-org-id" and edit the "Setup Org" section

This commit is contained in:
Gerard Vermeulen 2024-06-23 10:37:17 +02:00
parent 5fc90f281d
commit c9278bb3ea

View File

@ -2003,18 +2003,18 @@ Links to Org-mode videos are:
*** Setup Org *** Setup Org
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: sec:setup-org :CUSTOM_ID: sec:setup-org
:ID: 0D725DA1-7431-40BD-85FF-EFF4F7E4EC95
:END: :END:
I have divided the initial [[https://orgmode.org/][Org-mode]] setup into eleven listings. Here, follows a I have divided the initial [[https://orgmode.org/][Org-mode]] setup into ten listings. Here, follows a
list detailing and motivating each listing: list detailing and motivating each listing:
1. Listing [[lst:basic-org-setup]] handles basic [[https://orgmode.org/][Org-mode]] setup. 1. Listing [[lst:basic-org-setup]] handles basic [[https://orgmode.org/][Org-mode]] setup.
2. Listing [[lst:org-capture-templates]] initializes a simple capture template. 2. Listing [[lst:org-capture-templates]] initializes a simple capture template.
3. Listing [[lst:setup-org-babel]] sets ~ob-core~, ~ob-latex~, and ~ob-lisp~ options. 3. Listing [[lst:setup-org-babel]] sets ~ob-core~, ~ob-latex~, and ~ob-lisp~ options.
See [[info:org#Working with Source Code][working with source code (info)]] for Org Babel information. See [[info:org#Working with Source Code][working with source code (info)]] for Org Babel information.
4. Listing [[lst:looking-at-org-id]] enables recent ~org-id~ features. 4. Listing [[lst:setup-org-mode-map-1]] defines the =org-electric-dollar= command
5. Listing [[lst:setup-org-mode-map-1]] and [[lst:setup-org-mode-map-2]] extend the and binds it into =org-mode-map=.
=org-mode-map= with useful key-bindings. 5. Listing [[lst:setup-org-mode-map-2]] defines the =org-insert-source-block=
command and binds it into =org-mode-map=.
6. Listing [[lst:setup-org-src]] facilitates [[info:org#Editing Source Code][editing source code blocks]], and it 6. Listing [[lst:setup-org-src]] facilitates [[info:org#Editing Source Code][editing source code blocks]], and it
provides functions to change the indentation of all =org-src-mode= blocks. provides functions to change the indentation of all =org-src-mode= blocks.
7. Listing [[lst:setup-ob-python]] allows to pretty-print Python session source 7. Listing [[lst:setup-ob-python]] allows to pretty-print Python session source
@ -2100,22 +2100,6 @@ list detailing and motivating each listing:
(setopt org-babel-lisp-eval-fn #'sly-eval))) (setopt org-babel-lisp-eval-fn #'sly-eval)))
#+end_src #+end_src
#+caption[Looking at =org-id=]:
#+caption: Looking at =org-id=.
#+name: lst:looking-at-org-id
#+begin_src emacs-lisp -n :results silent
(with-eval-after-load 'org-id
(setopt org-id-link-to-org-use-id t
org-id-track-globally t)
;; https://stackoverflow.com/a/16247032 answers
;; "How to assign IDs to all entries in a buffer."
(defun org-id-add-ids-to-headlines-in-buffer ()
"Add slowly ID properties to all headlines without such an ID property.
Undo this by means of `org-delete-property-globally'."
(interactive)
(org-map-entries #'org-id-get-create)))
#+end_src
#+caption[Setup =org-mode-map= 1]: #+caption[Setup =org-mode-map= 1]:
#+caption: Setup =org-mode-map= 1. #+caption: Setup =org-mode-map= 1.
#+name: lst:setup-org-mode-map-1 #+name: lst:setup-org-mode-map-1