diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-org.el | 8 |
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 () |