Emacs: add TeX-insert-comment-line function
This commit is contained in:
parent
5712efba2e
commit
80409e0fd8
1 changed files with 9 additions and 0 deletions
|
@ -1032,6 +1032,15 @@
|
||||||
:config
|
:config
|
||||||
;; No language-specific hyphens please
|
;; No language-specific hyphens please
|
||||||
(setq LaTeX-babel-hyphen nil)
|
(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
|
;; Easy math input
|
||||||
(add-hook 'TeX-mode-hook #'LaTeX-math-mode)
|
(add-hook 'TeX-mode-hook #'LaTeX-math-mode)
|
||||||
;; Start flyspell
|
;; Start flyspell
|
||||||
|
|
Loading…
Reference in a new issue