FeelingRoot

M-x geek-food

Entries Comments


Better window management with ElScreen

11 August, 2008 (12:55) | Emacs | 3 comments

Today I stumbled upon a sweet little mode for GNU Emacs called ElScreen. The nice thing about it is that you can have multiple window setups in one frame. I use it to keep my gnus windows (usually two, the summary buffer and the message window) and my coding window separate from each other then I can easily switch between them by hitting C-z n (Switch to the “next” screen in a cyclic order) and C-z p (Switch to the “previous” screen in a cyclic order).

There are also a number of very useful shortcuts for working with setups (tabs - as ElScreen displays them):

  • C-z C-c  Create a new screen and switch to it.
  • C-z C-k  Kill current screen.
  • C-z C-n  Switch to the “next” screen in a cyclic order.
  • C-z C-p  Switch to the “previous” screen in a cyclic order.
  • C-z C-a  Toggle to the screen selected previously.
  • C-z 0  Jump to the screen number 0-9.
  • C-z C-w  Show a list of screen.

You can get ElScreen from this ftp address: here.

Installation is very simple, just copy the file elscreen.el into a directory in your path and add this line to your .emacs file (load “elscreen” “ElScreen” t).

from a terminal do:

cd ~

wget -c ftp://ftp.morishima.net/pub/morishima.net/naoto/ElScreen/elscreen-1.4.6.tar.gz

tar -xzf elscreen-1.4.6.tar.gz

cp elscreen-1.4.6/elscreen.el ~/.elisp/

in .emacs add:

(add-to-list ‘load-path "~/.elisp/")

(load "elscreen" "ElScreen" t)

I hope you find this useful and drop me a line if something is not working right.