Emacs: add TeX-insert-comment-line function

This commit is contained in:
Marcel Kapfer 2018-02-23 09:58:22 +01:00
parent 5712efba2e
commit 80409e0fd8
Signed by: mmk2410
GPG Key ID: CADE6F0C09F21B09
1 changed files with 9 additions and 0 deletions

View File

@ -1032,6 +1032,15 @@
:config
;; No language-specific hyphens please
(setq LaTeX-babel-hyphen nil)
;; helper for a new (La)TeX style guide concept.
;; inserts a line break, a empty comment line and another line break
(defun TeX-insert-comment-line ()
"Insert a linebreak followed by a '%' and another line break"
(interactive)
(newline-and-indent)
(insert "%")
(newline-and-indent))
;; Easy math input
(add-hook 'TeX-mode-hook #'LaTeX-math-mode)
;; Start flyspell