This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/auctex/config.el
JP-Ellis cfcce3efa7 A few improvements to AucTeX:
- Move function definitions from inside package.el to funcs.el;
- Add a few variables to allow some configuration with .spacemacs;
- Enable RefTeX support;
- Move key-binding-prefixes to config.el (similar to git layer);
- Use auto-fill-mode, with a environment-aware auto-fill function;
- Provide a few additional sane defaults (some of the more "annoying"
  ones are configurable from .spacemacs)
- Remove `build-view` in favour of just `build` as it seemed to be
  broken and introduce `SPC m v` to view;
- Add support to LatexMk.

!squash Added auctex-reftex-plugin variable.

Signed-off-by: JP-Ellis <coujellis@gmail.com>
2015-06-05 23:31:41 -04:00

53 lines
1.3 KiB
EmacsLisp

;;; packages.el --- Auctex Layer packages File for Spacemacs
;;
;; Copyright (c) 2012-2014 Sylvain Benner
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; variables
;; Company-mode LaTeX-backend
(spacemacs|defvar-company-backends LaTeX-mode)
(defvar auctex-build-command
"LaTeX"
"The defualt command to use with `SPC m b'")
(defvar auctex-auto-fill
t
"Whether to use auto-fill-mode or not in tex files.")
(defvar auctex-nofill-env
'("equation" "equation*"
"align" "align*"
"tabular"
"tikzpicture")
"List of environment names inw hich `auto-fill-mode' will be inhibited.")
(defvar auctex-electric-sub-and-superscript
t
"Whether electric sub- and superscripts should be used.")
(defvar auctex-electric-escape
nil
"Whether `\' is electric.")
(defvar auctex-reftex-plugin
'(nil nil t t t)
"The value for `reftex-plug-into-AUCTeX'.")
;; Command prefixes
(setq auctex/key-binding-prefixes '())
(push (cons "mp" "LaTeX Preview") auctex/key-binding-prefixes)
(push (cons "mr" "RefTeX") auctex/key-binding-prefixes)
(mapc (lambda (x) (spacemacs/declare-prefix (car x) (cdr x)))
auctex/key-binding-prefixes)