Compare commits

...

3 Commits

1 changed files with 40 additions and 39 deletions

View File

@ -1346,7 +1346,7 @@ print(payload := f"org-protocol://store-link?{parameters}")
execvp("emacsclient", ("-n", payload))
#+end_src
** TODO Look into: org-protocol handling with other browser on Darwin
** TODO Org-protocol handling with other browser on Darwin :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:org-protocol-darwin
:END:
@ -1635,14 +1635,6 @@ completion function [[info:elisp#Minibuffer Completion][completing-read]]. List
(keymap-global-set "M-y" #'consult-yank-pop))
#+end_src
*** TODO Explore ~org-goto~ versus ~consult-org-heading~
:PROPERTIES:
:CUSTOM_ID: sec:todo-org-goto
:END:
Explore in particular ~auto-isearch~ (looks powerfull) and ~org-occur~ (looks
mysterious) in the ~org-goto~ user interface.
** [[https://company-mode.github.io/][Company (info)]]
:PROPERTIES:
:CUSTOM_ID: sec:company-setup
@ -1658,15 +1650,15 @@ configures =company= after ensuring the =company= installation.
(when (ensure-package-installation 'company)
;; https://github.com/purcell/emacs.d/issues/778
(setopt company-transformers '(company-sort-by-occurrence))
(dolist (hook '(LaTeX-mode-hook
org-mode-hook
emacs-lisp-mode-hook
lisp-interaction-mode-hook
lisp-mode-hook
python-mode-hook
ielm-mode-hook
sly-mrepl-mode-hook))
(add-hook hook #'company-mode)))
(dolist (symbol '(LaTeX-mode-hook
org-mode-hook
emacs-lisp-mode-hook
lisp-interaction-mode-hook
lisp-mode-hook
python-mode-hook
ielm-mode-hook
sly-mrepl-mode-hook))
(add-hook symbol #'company-mode)))
#+end_src
* [[info:emacs#Search][Search and replace (info)]]
@ -2182,13 +2174,6 @@ configuration objectives:
LaTeX-section-label)))
#+end_src
*** TODO Improve the AUCTeX configuration slowly
:PROPERTIES:
:CUSTOM_ID: sec:setup-auctex-slowly
:END:
[[https://github.com/thisirs/dotemacs/blob/master/lisp/init-auctex.el][AUCTeX setup of an experienced user]]
** Writing [[https://www.markdownguide.org/][Markdown]] files
:PROPERTIES:
:CUSTOM_ID: sec:writing-markdown-files
@ -2243,22 +2228,23 @@ list detailing and motivating each listing:
"org-lint")}.
5. Listing [[lst:set-org-link-options]] handles [[https://orgmode.org/][Org-mode]] options specific to
[[info:org#Hyperlinks][hyperlinks (info)]].
6. Listing [[lst:setup-org-mode-map-1]] and [[lst:setup-org-mode-map-2]] extend the
6. Listing [[lst:looking-at-org-id]] enables recent ~org-id~ features.
7. Listing [[lst:setup-org-mode-map-1]] and [[lst:setup-org-mode-map-2]] extend the
=org-mode-map= with useful key-bindings.
7. Listing [[lst:setup-org-src]] facilitates [[info:org#Editing Source Code][editing source code blocks]], and it
8. 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.
8. Listing [[lst:setup-ob-python]] allows to pretty-print Python session source
9. Listing [[lst:setup-ob-python]] allows to pretty-print Python session source
block values with [[https://github.com/psf/black#readme][black]] instead of [[https://docs.python.org/3/library/pprint.html][pprint]]. This snippet may break in the
future, because it sets =org-babel-python--def-format-value= which is a
constant declared "private" by two dashes in its name!
9. Listing [[lst:set-org-export-options]] selects the =non-intrusive= expert user
interface for export dispatching.
10. Listing [[lst:setup-org-for-lualatex-export]] and
10. Listing [[lst:set-org-export-options]] selects the =non-intrusive= expert user
interface for export dispatching.
11. Listing [[lst:setup-org-for-lualatex-export]] and
[[lst:set-ox-latex-options-for-lualatex-export]] configure [[https://orgmode.org/][Org-mode]] to generate
output for the LuaLaTeX compiler.
11. Listing [[lst:setup-org-latex-classes]] defines [[info:org#LaTeXspecificexportsettings][org-latex-classes (info)]] for
backward compatibility. Type {{{kbd(C-h v org-latex-classes)}}} for an
explanation of the code in listing [[lst:setup-org-latex-classes]].
12. Listing [[lst:setup-org-latex-classes]] defines [[info:org#LaTeXspecificexportsettings][org-latex-classes (info)]] for
backward compatibility. For an explanation of the code in listing
[[lst:setup-org-latex-classes]], type {{{kbd(C-h v org-latex-classes)}}}.
#+caption[Set basic =Org= options]:
#+caption: Set basic =Org= options.
@ -2382,6 +2368,22 @@ Watch out for completion `visit-tags-table' prompts."
org-link-search-must-match-exact-headline nil))
#+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.
#+name: lst:setup-org-mode-map-1
@ -6405,9 +6407,6 @@ configures =code-cells=.
(keymap-set map "C-c C-c" #'code-cells-eval))))
#+end_src
*** TODO Look into: editing facilities
1. [[https://github.com/douglasdavis/numpydoc.el/blob/main/numpydoc.el][Emacs extension to insert numpy style docstrings in function definitions]]
* [[https://github.com/emacs-tw/awesome-emacs#library][Libraries]]
:PROPERTIES:
:CUSTOM_ID: sec:libraries
@ -6970,9 +6969,10 @@ sets the =webjump-sites= option.
"www.woorden.org/woord/" ""])))))
#+end_src
** [[info:gnus#Top][Reading News and Mail (info)]]
** [[info:gnus#Top][Reading News and Mail (info)]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:reading-news-mail
:header-args:emacs-lisp: :tangle no
:END:
Reading news and mail:
@ -7020,9 +7020,10 @@ Password management:
(setopt gnus-thread-hide-subtree t))
#+end_src
** [[info:emacs#Sending Mail][Sending Mail (info)]]
** [[info:emacs#Sending Mail][Sending Mail (info)]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:sending-mail
:header-args:emacs-lisp: :tangle no
:END:
1. [[https://macowners.club/posts/email-emacs-mu4e-macos/][Email setup in Emacs with Mu4e on macOS]]