From f1130d19feeb80144491c9af5ab4675d69aafdba Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Sun, 1 Jun 2014 08:56:27 -0400 Subject: [PATCH] Add some comments --- init-latex.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init-latex.el b/init-latex.el index 7531b99..1f1f676 100644 --- a/init-latex.el +++ b/init-latex.el @@ -25,11 +25,14 @@ (add-hook 'LaTeX-mode-hook (lambda () (turn-on-auto-fill) (subword-mode) + ;; Move around commands in the Right Way™ (modify-syntax-entry ?\\ "w" LaTeX-mode-syntax-table) (setq subword-forward-regexp "\\W*\\(\\([\\\\[:upper:]]*\\W?\\)[[:lower:][:digit:]]*\\)") (setq subword-backward-regexp "\\(\\(\\W\\|[[:lower:][:digit:]]\\)\\([\\\\[:upper:]]+\\W*\\)\\|\\W\\w+\\)") + ;; FIXME: this breaks sourcepair for other modes. (setq sourcepair-source-extensions '(".tex")) (setq sourcepair-header-extensions '(".p.tex")) + (define-key LaTeX-mode-map (kbd "C-c C-v") (lambda (arg) (interactive "P")