diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-04-28 22:59:16 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-04-29 00:01:00 -0400 |
commit | ff40eb32de1f0cf1cf668dd65b620d1b2deed1ac (patch) | |
tree | da6f519669c9761c28680da1887942b1d2d38a73 /lisp/init-tex.el | |
parent | 63241affe343b3a6bcfc91527d1b58253b2e3c11 (diff) | |
download | emacs.d-ff40eb32de1f0cf1cf668dd65b620d1b2deed1ac.tar.gz |
Move some hook bindings to mode maps
Diffstat (limited to 'lisp/init-tex.el')
-rw-r--r-- | lisp/init-tex.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/init-tex.el b/lisp/init-tex.el index 1eed85a..e7e79c6 100644 --- a/lisp/init-tex.el +++ b/lisp/init-tex.el @@ -72,9 +72,8 @@ The point should be beyond \"\\section\"." (error "%s does not exist" pdf-file)) (start-process "tex-pdf" nil "xdg-open" pdf-file))) -(add-hook 'LaTeX-mode-hook - '(lambda () - (local-set-key (kbd "C-c m p") 'km/latex-find-pdf))) +(eval-after-load 'latex + '(define-key LaTeX-mode-map (kbd "C-c m p") 'km/latex-find-pdf)) (eval-after-load 'reftex '(diminish 'reftex-mode "Rf")) |