From 552c193bfbedd1a428be03fe38cd3264f3805c17 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 28 Aug 2017 17:23:52 -0700 Subject: [PATCH] [Emacs] Fix override of org-switch-to-buffer --- dotfiles/emacs.d/README.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 86967d90..4066eaad 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1161,8 +1161,8 @@ it on by default. Its probably safe to turn it on when in a programming mode. :config (progn (defun imalison:maybe-use-frames-for-org (&rest args) - (let ((fn (if frame-mode 'org-switch-to-buffer-other-window - 'switch-to-buffer-other-frame))) + (let ((fn (if frame-mode 'switch-to-buffer-other-frame + 'switch-to-buffer-other-window))) (apply fn args))) (advice-add 'org-switch-to-buffer-other-window :override 'imalison:maybe-use-frames-for-org)