Open main menu

Changes

commented code
(ConTeXt-Mark-version "IV")
;; Enable electric left right brace
(LaTeX-electric-left-right-brace t)
 
;; Do not unprettify symbol at point
(prettify-symbols-unprettify-at-point nil)
;; Let AUCTeX properly detect formula environment as math environmentsmode
(texmathp-tex-commands '(("\\startformula" sw-on) ("\\stopformula" sw-off)))
 
;; Set PDF viewer
(TeX-view-program-selection '((output-pdf "Zathura")))
 
;; Don't as for permission, just save all files
(TeX-save-query nil)
 
;; Auto-save
(TeX-auto-save t)
 
;; Debug bad boxes and warnings after compilation via
;; C-c ` key
(TeX-debug-bad-boxes t)
(TeX-debug-warnings t)
 
;; Electric inline math,
(TeX-electric-math '("$" . "$"))
 
;; Electric sub and superscript, inserts {} after ^ and _
;; such as a^{}.
(TeX-electric-sub-and-superscript t)
 
;; RefTex
(reftex-plug-into-AUCTeX t)
 
;; Customize keyboard shortcuts for TeX math macros
(LaTeX-math-list
'(("o r" "mathbb{R}" nil nil)
(?= "coloneq" nil nil)
("o c" "mathbb{C}" nil nil)))
 
:bind
;; Electric \left(:map TeX-mode-map ("<f8>" . TeX-command-run-all)\right)\left[\right] \left\{\right\} ;; only left brace; there is no right electric bracefunction
(:map ConTeXt-mode-map ("(" . LaTeX-insert-left-brace))
(:map ConTeXt-mode-map ("[" . LaTeX-insert-left-brace))
(:map ConTeXt-mode-map ("{" . LaTeX-insert-left-brace))
 
:config
(add-hook 'TeX-after-compilation-finished-functions
#'TeX-revert-document-buffer)
 
;; Prettify symbols mode, customizable.
(with-eval-after-load "tex-mode"
(dolist (symb
11

edits