emacs-devel
[Top][All Lists]
Advanced

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

Whole frame windows


From: Nick Roberts
Subject: Whole frame windows
Date: Sat, 9 Aug 2008 12:12:24 +1200

I know there's a feature freeze, but how about something like below to
expand a window to the whole frame and back?  It's handy for many window
configurations like gdb-ui where the stack trace, for example, doesn't
always fit in the space available.  Eclipse has a feature like this, when
you double click on the window tab.

Seems pretty harmless to me and any release must be a long way away.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


(defvar last-window-configuration nil
  "If `non-nil', the window configuration to which `toggle-window' restores.")

(defun toggle-window ()
  (interactive)
  (if last-window-configuration
      (progn
        (set-window-configuration last-window-configuration)
        (setq last-window-configuration nil))
    (setq last-window-configuration (current-window-configuration))
    (delete-other-windows)))

(define-key global-map [mode-line double-mouse-1] 'toggle-window)




reply via email to

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