Compare commits

...

4 Commits

View File

@ -1920,13 +1920,13 @@ a LaTeX file that sets ~TeX-master~. The list below summarizes the main [[https
configuration objectives:
1. Listing [[lst:set-tex-options]] ensures installation of [[https://en.wikipedia.org/wiki/AUCTeX][AUCTeX]] and initializes
[[https://en.wikipedia.org/wiki/AUCTeX][AUCTeX]] properly for =LuaTeX= or =LuaLaTeX=.
2. Listing [[lst:set-tex-options]] also enables [[https://git.savannah.gnu.org/cgit/auctex.git/patch/?id=f464242eab092e610dda6b654e6fd197ef649d3eAA][indenting between square brackets]]
2. Listing [[lst:set-tex-options]] also enables *indenting between square brackets*
which is a recent feature.
3. Listing [[lst:update-lualatex-opentype-font-name-database]] defines a function to
update the =OpenType Font= name database for =LuaLaTeX= when the output of
=LuaLaTeX= shows missing fonts.
4. Listing [[lst:set-bibtex-options]] configures the Emacs =bibtex= library to use the
LaTeX =BiBTeX= dialect for backwards compatibility.
4. Listing [[lst:set-bibtex-options]] configures the Emacs =bibtex= library to use
the LaTeX =BiBTeX= dialect for backwards compatibility.
5. Listing [[lst:set-font-latex-options]] disables font scaling of section titles.
6. Listing [[lst:set-latex-options]] configures =latex= for a full featured
=LaTeX-section-command=.
@ -2152,6 +2152,7 @@ list detailing and motivating each listing:
(perl . t)
;; Beware: Python activation must not call still unbound functions.
(python . t)
(racket . ,(fboundp 'racket-mode))
;; MIT/GNU Scheme breaks Babel contrary to Guile, Chez and Chicken Scheme.
(scheme . ,(fboundp 'geiser-mode))
(shell . t))
@ -2226,16 +2227,10 @@ unbind the `org-babel' interface functions when ACTIVE is nil."
#+name: lst:set-org-link-options
#+begin_src emacs-lisp -n :results silent
(with-eval-after-load 'ol
;; I prefer setting `org-link-descriptive' to `nil' over the hook
;; below to make `isearch' bearable when finding matches in links.
;; Setting `org-link-descriptive' to `nil' is a breaking change,
;; since it changes how `org-fill-paragraph' fills.
;; (add-hook 'isearch-mode-hook
;; (defun unset-org-link-descriptive ()
;; (when (and (derived-mode-p 'org-mode)
;; (bound-and-true-p org-link-descriptive))
;; (org-toggle-link-display))))
(setopt org-link-descriptive nil
;; Setting `org-link-descriptive' to `t' has caused worse `isearch'
;; behavior. Set `org-link-descriptive' interactively by calling
;; `org-toggle-link-display'.
(setopt org-link-descriptive t
org-link-file-path-type 'relative))
#+end_src
@ -5325,7 +5320,7 @@ Available versions: 0.2.0, 0.1.1, 0.1.0
:group 'pip
:type '(repeat string))
(setopt pip-frozen-packages '("markdown-it-py"))
(setopt pip-frozen-packages '("markdown-it-py" "mistune"))
;; Updating "docutils" may require a compatible "Sphinx" release.
;; (setopt pip-frozen-packages '("docutils"))
@ -5706,15 +5701,40 @@ configures =code-cells=.
*** 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://racket-lang.org/][Racket Programming]]
:PROPERTIES:
:CUSTOM_ID: sec:racket-programming
:header-args:emacs-lisp: :eval never-export
:END:
[[https://kchousos.github.io/posts/sicp-in-emacs/][SICP in Emacs]]
#+begin_src emacs-lisp -n
(when (ensure-package-installation 'racket-mode 'sicp)
(unless (package-installed-p 'ob-racket)
(package-vc-install
'(ob-racket :url "https://github.com/hasu/emacs-ob-racket.git"))))
#+end_src
#+begin_src racket :lang sicp
"Hello, world!"
#+end_src
#+RESULTS:
: "Hello, world!"
** [[https://en.wikibooks.org/wiki/Scheme_Programming][Scheme Programming]]
:PROPERTIES:
:CUSTOM_ID: sec:scheme-programming
:header-args:emacs-lisp: :eval never-export
:END:
Listing [[lst:setup-geiser][Ensure Geiser installation]] supports the [[https://cisco.github.io/ChezScheme/][Chez Scheme]], [[https://call-cc.org/][Chicken Scheme]], and
[[https://www.gnu.org/software/guile/][GNU Guile]] Scheme implementations and configures Geiser with [[https://cisco.github.io/ChezScheme/][Chez Scheme]] as
default implementation. Evaluate one of the following expressions to switch
between those three implementations:
Listing [[lst:setup-geiser][Ensure Geiser installation]] supports the Scheme implementations
1. [[https://cisco.github.io/ChezScheme/][Chez Scheme]],
2. [[https://call-cc.org/][Chicken Scheme]], and
3. [[https://www.gnu.org/software/guile/][GNU Guile]] Scheme.
It configures Geiser with [[https://cisco.github.io/ChezScheme/][Chez Scheme]] as default implementation. Evaluate one
of the following expressions to switch between those three implementations:
1. src_emacs-lisp{(setopt scheme-default-implementation 'chicken)},
2. src_emacs-lisp{(setopt scheme-default-implementation 'guile)},
3. src_emacs-lisp{(setopt scheme-default-implementation 'chez)}.
@ -5920,6 +5940,8 @@ contrary to for instance [[https://github.com/Fanael/rainbow-delimiters#readme][
lisp-data-mode-hook
lisp-mode-hook
python-mode-hook
racket-mode-hook
racket-repl-mode-hook
slime-repl-mode-hook
sly-mrepl-mode-hook))
(add-hook hook #'smartparens-strict-mode))