chiark / gitweb /
emacs: Stop Emacs from selecting buffers by raising other frames.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 25 Apr 2008 18:59:05 +0000 (19:59 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Fri, 25 Apr 2008 18:59:05 +0000 (19:59 +0100)
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.

emacs

diff --git a/emacs b/emacs
index 4d053e57b91529a45d36487779cb78a2f1ee1c62..c7c884402b5582870cee1c189cf657c1b22de41c 100644 (file)
--- a/emacs
+++ b/emacs
 (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 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
 (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