summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-org.el15
-rw-r--r--lisp/init-tex.el5
2 files changed, 5 insertions, 15 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index f708b47..4002a89 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -77,6 +77,9 @@
'(progn
(define-key org-mode-map (kbd "C-c C-x B")
'km/org-tree-to-indirect-buffer-current-window)
+ (define-key org-mode-map (kbd "C-c m w") 'km/org-refile-to-other-org-buffer)
+ (define-key org-mode-map (kbd "C-c m s") 'km/org-sort-parent)
+ (define-key org-mode-map (kbd "C-c m o") 'ace-link-org)
;; Don't let `org-cycle-agenda-files' binding override custom
;; `backward-kill-word' binding (`org-cycle-agenda-files' is still bound
;; to C-,).
@@ -250,16 +253,4 @@ MAXLEVEL (defaults to 2)."
(define-key ctl-x-4-map "o" 'km/org-switch-to-buffer-other-window)
-(eval-after-load 'org
- '(add-to-list 'org-mode-hook
- '(lambda ()
- (local-set-key (kbd "C-c m w")
- 'km/org-refile-to-other-org-buffer)
- (local-set-key (kbd "C-c m W")
- 'km/org-refile-to-other-file)
- (local-set-key (kbd "C-c m s")
- 'km/org-sort-parent)
- (local-set-key (kbd "C-c m o")
- 'ace-link-org))))
-
(provide 'init-org)
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"))