summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-04-23 01:25:45 -0400
committerKyle Meyer <kyle@kyleam.com>2014-04-23 01:28:49 -0400
commit622245b635cf7a72377c4f81410d507fb2d0dbb7 (patch)
tree831a5da40d9de92587105d80e9a1ecc5a278ab62 /lisp
parentabd221557e603c7bb977701a7e7ebd5e70470d3a (diff)
downloademacs.d-622245b635cf7a72377c4f81410d507fb2d0dbb7.tar.gz
Function to switch to Org buffer in other window
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-org.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/init-org.el b/lisp/init-org.el
index 6096eda..599ef51 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -236,6 +236,14 @@ MAXLEVEL (defaults to 2)."
(set (make-local-variable 'org-refile-targets)
`((,buffer-file :maxlevel . ,maxlevel))))))
+(defun km/org-switch-to-buffer-other-window (&optional arg)
+ (interactive "P")
+ (noflet ((org-pop-to-buffer-same-window (&optional buffer-or-name norecord label)
+ (funcall 'pop-to-buffer buffer-or-name nil norecord)))
+ (org-switchb arg)))
+
+(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 ()