magnars/expand-region.el — pull request #119 by thisirs (2013-09-11 01:15:48+00:00)
Title: Fix latex-mode expansions setup bug

The hook for latex-mode is LaTeX-mode-hook and the major mode for it is
latex-mode. So the function `er/enable-mode-expansions' that assumes
that the former can be inferred from the latter fails. A solution is to
temporarily bind `latex-mode-hook' to `Latex-mode-hook' and save any
modification after the call.