help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

define tab for dired-buffer selection


From: Fabian Braennstroem
Subject: define tab for dired-buffer selection
Date: Sun, 09 Sep 2007 20:36:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0

Hi,

I often have multiple windows with some dired and some
text-mode buffers. Now, I would like to
 define 'tab' to switch just dired between dired windows.
Would be nice, if this works somehow!?
My first approach was:
(defun dired-change-window()
  "Change to the other buffer"
  (interactive)
  (if (eq major-mode 'dired-mode) (other-window 1)
  (while (not (eq major-mode 'dired-mode)) (other-window 1))
       ))

But this jumps in every window!?

Regards!
Fabian


reply via email to

[Prev in Thread] Current Thread [Next in Thread]