summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-07-14 23:15:27 -0400
committerKyle Meyer <kyle@kyleam.com>2015-07-14 23:15:27 -0400
commit8a97fb0da663592fed45f75350e04621818572a5 (patch)
treea7da834983a4b053abc6e7b8c5ec0baa3ee84bf5 /lisp
parent3c5c6e703f729adb57ca09ef5fb10eeda265a231 (diff)
downloademacs.d-8a97fb0da663592fed45f75350e04621818572a5.tar.gz
init-org.el: Remove section
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el20
1 files changed, 8 insertions, 12 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 11980e5..1472e6e 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -57,6 +57,10 @@
(add-to-list 'auto-mode-alist '("\\.org.txt\\'" . org-mode))
+(add-hook 'next-error-hook (lambda ()
+ (when (eq major-mode 'org-mode)
+ (org-show-context))))
+
(defun km/org-tree-to-indirect-buffer (&optional arg)
"Run `org-tree-to-indirect-buffer', keeping previous buffer.
By default, `org-tree-to-indirect-buffer' deletes the previous
@@ -358,10 +362,14 @@ called through the speed command interface."
(define-key km/global-org-map "b" 'org-iswitchb)
(define-key km/global-org-map "o" 'org-open-at-point-global)
+(define-key km/global-org-map "p" 'poporg-dwim)
(define-key km/global-org-map "s" 'org-save-all-org-buffers)
(define-key ctl-x-4-map "o" 'km/org-switch-to-buffer-other-window)
+(after 'poporg
+ (define-key poporg-mode-map (kbd "C-c C-c") 'poporg-edit-exit))
+
;;; Agenda
@@ -747,18 +755,6 @@ to be easily overriden.")
:END:"))
-;;; Org in other modes
-
-(add-hook 'next-error-hook (lambda ()
- (when (eq major-mode 'org-mode)
- (org-show-context))))
-
-(after 'poporg
- (define-key poporg-mode-map (kbd "C-c C-c") 'poporg-edit-exit))
-
-(define-key km/global-org-map "p" 'poporg-dwim)
-
-
;;; Org open file
(defadvice org-open-file (after km/org-open-add-to-recentf activate)