mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
Merge branch 'master' into guix
This commit is contained in:
commit
2380ebf4d1
3 changed files with 42 additions and 14 deletions
|
|
@ -127,6 +127,7 @@
|
|||
dired
|
||||
debug
|
||||
guix
|
||||
calc
|
||||
docker
|
||||
geiser
|
||||
pdf
|
||||
|
|
@ -1011,6 +1012,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
'org-babel-load-languages
|
||||
'((emacs-lisp . t)
|
||||
(python . t)
|
||||
(sql . t)
|
||||
;; (typescript .t)
|
||||
(hy . t)
|
||||
(shell . t)
|
||||
|
|
@ -1253,6 +1255,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:branch "master"
|
||||
:host github)
|
||||
:hook (org-mode . org-latex-impatient-mode)
|
||||
:disabled
|
||||
:init
|
||||
(setq org-latex-impatient-tex2svg-bin
|
||||
"/home/pavel/Programs/miniconda3/lib/node_modules/mathjax-node-cli/bin/tex2svg")
|
||||
|
|
@ -1263,7 +1266,9 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(defun my/enable-org-latex ()
|
||||
(interactive)
|
||||
(customize-set-variable 'org-highlight-latex-and-related '(native))
|
||||
(add-hook 'org-mode-hook (lambda () (yas-activate-extra-mode 'LaTeX-mode))))
|
||||
(add-hook 'org-mode-hook (lambda () (yas-activate-extra-mode 'LaTeX-mode)))
|
||||
(sp-local-pair 'org-mode "$" "$")
|
||||
(sp--remove-local-pair "'"))
|
||||
|
||||
(use-package org-superstar
|
||||
:straight t
|
||||
|
|
@ -1763,7 +1768,7 @@ parent."
|
|||
("e" . "\\epsilon")
|
||||
("z" . "\\zeta")
|
||||
("h" . "\\eta")
|
||||
("t" . "\\theta")
|
||||
("o" . "\\theta")
|
||||
("i" . "\\iota")
|
||||
("k" . "\\kappa")
|
||||
("l" . "\\lambda")
|
||||
|
|
@ -1822,13 +1827,19 @@ parent."
|
|||
("v" . "\\forall")
|
||||
("s" . "\\sum_{$1}^{$2}$0")
|
||||
("p" . "\\prod_{$1}^{$2}$0")
|
||||
("d" . "\\partial")
|
||||
("e" . "\\exists")
|
||||
("i" . "\\int_{$1}^{$2}$0")
|
||||
("c" . "\\cap")
|
||||
("u" . "\\cup")
|
||||
("0" . "\\emptyset")))
|
||||
("0" . "\\emptyset")
|
||||
("^" . "\\widehat{$1}$0")
|
||||
("_" . "\\overline{$1}$0")
|
||||
("~" . "\\sim")
|
||||
("|" . "\\mid")
|
||||
("_|" . "\\perp")))
|
||||
|
||||
(setq my/latex-math-prefix "''")
|
||||
(setq my/latex-math-prefix ";")
|
||||
|
||||
(yas-define-snippets
|
||||
'latex-mode
|
||||
|
|
@ -1935,7 +1946,7 @@ parent."
|
|||
("e" . "\\epsilon")
|
||||
("z" . "\\zeta")
|
||||
("h" . "\\eta")
|
||||
("t" . "\\theta")
|
||||
("o" . "\\theta")
|
||||
("i" . "\\iota")
|
||||
("k" . "\\kappa")
|
||||
("l" . "\\lambda")
|
||||
|
|
@ -1996,13 +2007,19 @@ parent."
|
|||
("v" . "\\forall")
|
||||
("s" . "\\sum_{$1}^{$2}$0")
|
||||
("p" . "\\prod_{$1}^{$2}$0")
|
||||
("d" . "\\partial")
|
||||
("e" . "\\exists")
|
||||
("i" . "\\int_{$1}^{$2}$0")
|
||||
("c" . "\\cap")
|
||||
("u" . "\\cup")
|
||||
("0" . "\\emptyset")))
|
||||
("0" . "\\emptyset")
|
||||
("^" . "\\widehat{$1}$0")
|
||||
("_" . "\\overline{$1}$0")
|
||||
("~" . "\\sim")
|
||||
("|" . "\\mid")
|
||||
("_|" . "\\perp")))
|
||||
|
||||
(setq my/latex-math-prefix "''")
|
||||
(setq my/latex-math-prefix ";")
|
||||
|
||||
(yas-define-snippets
|
||||
'latex-mode
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
# name: \ldots{}
|
||||
# key: ...
|
||||
# --
|
||||
\ldots{}$0
|
||||
\ldots$0
|
||||
23
Emacs.org
23
Emacs.org
|
|
@ -461,6 +461,7 @@ I don't enable the entire package, just the modes I need.
|
|||
dired
|
||||
debug
|
||||
guix
|
||||
calc
|
||||
docker
|
||||
geiser
|
||||
pdf
|
||||
|
|
@ -1823,7 +1824,6 @@ Fortunately, =emacs-jupyter= provides a function for that problem as well.
|
|||
(org-babel-jupyter-aliases-from-kernelspecs t))
|
||||
#+end_src
|
||||
*** Hy
|
||||
| Note | Description |
|
||||
#+begin_src emacs-lisp :noweb-ref org-lang-setup
|
||||
(use-package ob-hy
|
||||
:straight t)
|
||||
|
|
@ -1858,6 +1858,7 @@ Enable languages
|
|||
'org-babel-load-languages
|
||||
'((emacs-lisp . t)
|
||||
(python . t)
|
||||
(sql . t)
|
||||
;; (typescript .t)
|
||||
(hy . t)
|
||||
(shell . t)
|
||||
|
|
@ -2028,7 +2029,7 @@ Example usage:
|
|||
:post out_wrap(name="fig:chart", caption="График", data=*this*)
|
||||
#+end_example
|
||||
** UI
|
||||
*** Instant equations preview
|
||||
*** OFF (OFF) Instant equations preview
|
||||
Instant math previews for org mode.
|
||||
|
||||
References:
|
||||
|
|
@ -2040,6 +2041,7 @@ References:
|
|||
:branch "master"
|
||||
:host github)
|
||||
:hook (org-mode . org-latex-impatient-mode)
|
||||
:disabled
|
||||
:init
|
||||
(setq org-latex-impatient-tex2svg-bin
|
||||
"/home/pavel/Programs/miniconda3/lib/node_modules/mathjax-node-cli/bin/tex2svg")
|
||||
|
|
@ -2053,8 +2055,11 @@ A function to enable LaTeX native highlighting. Not setting as default, because
|
|||
(defun my/enable-org-latex ()
|
||||
(interactive)
|
||||
(customize-set-variable 'org-highlight-latex-and-related '(native))
|
||||
(add-hook 'org-mode-hook (lambda () (yas-activate-extra-mode 'LaTeX-mode))))
|
||||
(add-hook 'org-mode-hook (lambda () (yas-activate-extra-mode 'LaTeX-mode)))
|
||||
(sp-local-pair 'org-mode "$" "$")
|
||||
(sp--remove-local-pair "'"))
|
||||
#+end_src
|
||||
|
||||
Call the function before opening an org file or reopen a buffer after calling the function.
|
||||
|
||||
Scale latex fragments preview.
|
||||
|
|
@ -2979,7 +2984,7 @@ Noweb points to the AUCTeX config block.
|
|||
("e" . "\\epsilon")
|
||||
("z" . "\\zeta")
|
||||
("h" . "\\eta")
|
||||
("t" . "\\theta")
|
||||
("o" . "\\theta")
|
||||
("i" . "\\iota")
|
||||
("k" . "\\kappa")
|
||||
("l" . "\\lambda")
|
||||
|
|
@ -3044,13 +3049,19 @@ Noweb points to the AUCTeX config block.
|
|||
("v" . "\\forall")
|
||||
("s" . "\\sum_{$1}^{$2}$0")
|
||||
("p" . "\\prod_{$1}^{$2}$0")
|
||||
("d" . "\\partial")
|
||||
("e" . "\\exists")
|
||||
("i" . "\\int_{$1}^{$2}$0")
|
||||
("c" . "\\cap")
|
||||
("u" . "\\cup")
|
||||
("0" . "\\emptyset")))
|
||||
("0" . "\\emptyset")
|
||||
("^" . "\\widehat{$1}$0")
|
||||
("_" . "\\overline{$1}$0")
|
||||
("~" . "\\sim")
|
||||
("|" . "\\mid")
|
||||
("_|" . "\\perp")))
|
||||
|
||||
(setq my/latex-math-prefix "''")
|
||||
(setq my/latex-math-prefix ";")
|
||||
|
||||
(yas-define-snippets
|
||||
'latex-mode
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue