From: Mark Wooding Date: Fri, 25 Apr 2008 18:59:05 +0000 (+0100) Subject: emacs: Stop Emacs from selecting buffers by raising other frames. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/9aea0679b29d401624f2f184f378faab8feb30ea emacs: Stop Emacs from selecting buffers by raising other frames. The default behaviour of iswitchb, which is otherwise an excellent thing, is to simply raise a frame if it's already showing the buffer I want to use. This is, of course, completely useless if (say) the frame is actually on a different desktop, or attached to a different display. Also force the default Emacs display-buffer behaviour, just in case that becomes crazy later. --- diff --git a/emacs b/emacs index 4d053e5..c7c8844 100644 --- a/emacs +++ b/emacs @@ -140,6 +140,8 @@ (setq dabbrev-case-replace nil) ;Retain case when completing (setq next-line-add-newlines nil) ;Don't add weird newlines (setq split-height-threshold 45) ;Reuse windows where sensible +(setq display-buffer-reuse-frames nil ;Don't confuse me by showing buffers + iswitchb-default-method 'samewindow) ;in other random frames (setq dired-deletion-confirmer ;Make deletion easier in dired (symbol-function 'y-or-n-p)) (setq dired-listing-switches "-alF") ;Do `ls -F' things in dired windows