forked from colonelpanic/dotfiles
[Emacs] Fix override of org-switch-to-buffer
This commit is contained in:
parent
4ad7ed37da
commit
552c193bfb
@ -1161,8 +1161,8 @@ it on by default. Its probably safe to turn it on when in a programming mode.
|
|||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(defun imalison:maybe-use-frames-for-org (&rest args)
|
(defun imalison:maybe-use-frames-for-org (&rest args)
|
||||||
(let ((fn (if frame-mode 'org-switch-to-buffer-other-window
|
(let ((fn (if frame-mode 'switch-to-buffer-other-frame
|
||||||
'switch-to-buffer-other-frame)))
|
'switch-to-buffer-other-window)))
|
||||||
(apply fn args)))
|
(apply fn args)))
|
||||||
(advice-add 'org-switch-to-buffer-other-window
|
(advice-add 'org-switch-to-buffer-other-window
|
||||||
:override 'imalison:maybe-use-frames-for-org)
|
:override 'imalison:maybe-use-frames-for-org)
|
||||||
|
Loading…
Reference in New Issue
Block a user