2020-02-19 23:07:30 +00:00
|
|
|
;;; config.el --- Latex Layer Configuration File for Spacemacs
|
2015-04-09 04:13:15 +00:00
|
|
|
;;
|
2018-01-04 07:00:25 +00:00
|
|
|
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
|
2015-04-09 04:13:15 +00:00
|
|
|
;;
|
|
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
|
|
;;
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
;;
|
|
|
|
;;; License: GPLv3
|
|
|
|
|
|
|
|
;; variables
|
|
|
|
|
2020-05-21 23:41:54 +00:00
|
|
|
;; Even though AUCTeX uses TeX-latex-mode rather than latex-mode, major-mode
|
|
|
|
;; will still be bound to 'latex-mode (since AUCTeX uses an advice to override
|
|
|
|
;; latex-mode with TeX-latex-mode), so the keymap's name should use the
|
|
|
|
;; lowercase form, since bind-map uses the value of major-mode...
|
|
|
|
(spacemacs|define-jump-handlers latex-mode dumb-jump-go)
|
|
|
|
;; ...but AUCTeX runs LaTeX-mode-hook rather than latex-mode-hook, so:
|
|
|
|
(add-hook 'LaTeX-mode-hook #'spacemacs//init-jump-handlers-latex-mode)
|
2016-09-05 06:38:13 +00:00
|
|
|
|
2015-08-11 11:46:59 +00:00
|
|
|
(defvar latex-build-command (if (executable-find "latexmk") "LatexMk" "LaTeX")
|
2015-06-06 04:31:07 +00:00
|
|
|
"The default command to use with `SPC m b'")
|
2015-05-04 06:29:34 +00:00
|
|
|
|
2015-06-06 04:46:47 +00:00
|
|
|
(defvar latex-enable-auto-fill t
|
2015-05-04 06:29:34 +00:00
|
|
|
"Whether to use auto-fill-mode or not in tex files.")
|
|
|
|
|
2015-12-23 13:46:36 +00:00
|
|
|
(defvar latex-enable-folding nil
|
|
|
|
"Whether to use `TeX-fold-mode' or not in tex/latex buffers.")
|
|
|
|
|
2015-12-11 22:14:56 +00:00
|
|
|
(defvar latex-enable-magic nil
|
|
|
|
"Whether to enable \"magic\" symbols in the buffer.")
|
|
|
|
|
2015-06-06 04:46:47 +00:00
|
|
|
(defvar latex-nofill-env '("equation"
|
|
|
|
"equation*"
|
|
|
|
"align"
|
|
|
|
"align*"
|
|
|
|
"tabular"
|
2020-06-03 15:46:22 +00:00
|
|
|
"tabular*"
|
|
|
|
"tabu"
|
|
|
|
"tabu*"
|
2015-06-06 04:46:47 +00:00
|
|
|
"tikzpicture")
|
2015-06-06 04:31:07 +00:00
|
|
|
"List of environment names in which `auto-fill-mode' will be inhibited.")
|