Suspend using anaconda-mode, company-anaconda, and math-preview

Suspend package installation, LaTeX and HMTL export, and tangling.
This commit is contained in:
Gerard Vermeulen 2022-04-26 05:29:36 +02:00
parent 9b44dfcc06
commit 5a2a56d13c

View File

@ -205,7 +205,7 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
#+begin_src emacs-lisp
(custom-set-variables
'(package-selected-packages
'(anaconda-mode ; strangles python-mode
'(;; anaconda-mode ; strangles python-mode
applescript-mode ; mode to edit AppleScript code
async ; asynchroneous processing
auctex ; Aalborg University Center TeX
@ -214,7 +214,7 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
citeproc ; bibliography handling
code-cells ; lightweight notebooks in Emacs
company ; complete anything
company-anaconda ; complete anything in anaconda-mode
;; company-anaconda ; complete anything in anaconda-mode
consult ; consult completing-read
deadgrep ; use ripgrep from Emacs
eglot ; Emacs polyGLOT LSP client
@ -228,7 +228,7 @@ The [[info:emacs#Init File][init file (info)]] does not load the ~custom-file~ a
magit ; Git Text-based User Interface
marginalia ; minibuffer margin notes
markdown-mode ; markdown text mode
math-preview ; display LaTeX math with MathJax
;; math-preview ; display LaTeX math with MathJax
no-littering ; keep `user-emacs-directory' clean
nov ; EPUB reader
orderless ; Emacs completion style
@ -1336,9 +1336,10 @@ LaTeX =BiBTeX= dialect for backwards compatibility. Listing
LaTeX-section-label))))
#+end_src
*** [[https://gitlab.com/matsievskiysv/math-preview/-/blob/master/README.md][Math-preview]]
*** [[https://gitlab.com/matsievskiysv/math-preview/-/blob/master/README.md][Math-preview]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:math-preview
:header-args:emacs-lisp: :tangle no
:END:
#+caption[Configure =math-preview=]:
@ -2893,9 +2894,32 @@ index bf312f6..4758b53 100644
#+end_src
:end:
*** [[https://github.com/pythonic-emacs/anaconda-mode][Anaconda]]
*** [[https://jedi.readthedocs.io/en/latest/][Jedi]]
:PROPERTIES:
:CUSTOM_ID: sec:jedi
:END:
Listing [[lst:example-py]] is a [[https://www.python.org][Python]] example to test whether [[https://jedi.readthedocs.io/en/latest/][jedi]] in combination
with and either [[https://github.com/pythonic-emacs/anaconda-mode][anaconda]] or [[https://github.com/joaotavora/eglot][eglot]] works when coding certain functions of for
instance [[https://numpy.org/][numpy]] and [[https://scipy.org/][scipy]].
#+caption[Tangle the =example.py= file]:
#+caption: Tangle the =example.py= file.
#+name: lst:example-py
#+begin_src python :tangle example.py
import numpy
import astropy.units as apu
a = numpy.arange(0, 11)
a = numpy.linspace(0, 10, num=11)
a = numpy.arccos(a)
q = apu.Quantity(a, apu.meter)
print(q)
#+end_src
*** [[https://github.com/pythonic-emacs/anaconda-mode][Anaconda]] :noexport:
:PROPERTIES:
:CUSTOM_ID: sec:anaconda
:header-args:emacs-lisp: :tangle no
:END:
Listing [[lst:configure-anaconda+company-for-python]] and
[[lst:define-my-toggle-anaconda-mode]] configure [[https://github.com/pythonic-emacs/anaconda-mode][anaconda]]. See [[https://github.com/jorgenschaefer/elpy/blob/8d0de310d41ebf06b22321a8534546447456870c/elpy.el#L2775][elpy-module-company]]
@ -2963,28 +2987,6 @@ for how to handle ~company-backends~ as a local variable in listing
(my-enable-anaconda-mode)))))
#+end_src
*** [[https://jedi.readthedocs.io/en/latest/][Jedi]]
:PROPERTIES:
:CUSTOM_ID: sec:jedi
:END:
Listing [[lst:example-py]] is a [[https://www.python.org][Python]] example to test whether [[https://jedi.readthedocs.io/en/latest/][jedi]] in combination
with and either [[https://github.com/pythonic-emacs/anaconda-mode][anaconda]] or [[https://github.com/joaotavora/eglot][eglot]] works when coding certain functions of for
instance [[https://numpy.org/][numpy]] and [[https://scipy.org/][scipy]].
#+caption[Tangle the =example.py= file]:
#+caption: Tangle the =example.py= file.
#+name: lst:example-py
#+begin_src python :tangle example.py
import numpy
import astropy.units as apu
a = numpy.arange(0, 11)
a = numpy.linspace(0, 10, num=11)
a = numpy.arccos(a)
q = apu.Quantity(a, apu.meter)
print(q)
#+end_src
*** [[https://github.com/astoff/code-cells.el#readme][Code-cells]]
:PROPERTIES:
:CUSTOM_ID: sec:code-cells