When I get into emacs sometimes I like to work with 4 or 5 documents at once,

I can press C-X 2 to split top and bottom or C-X 3 to split left and right. I can press C-X o to skip between the windows, er frames, er screens. But what I want to be able to do is go from screen 1 to screen 6 without cycling through. Do any of you know how to do that?
posted by:
Donald
Utah
  • And you don't want to use the mouse pointer because
    you're want to preserve the position?

    <meta>[n]<meta>x other-window switches to window N according
    to the apropos doc...so I'd hang it off a key
    (<meta>x global-set-key) so that <meta>n<new-key-def>
    did what I think you are asking for...
    • The M-<num> is the count or number prefix for a command. It of course only works for up to 9, so over that use the other form that accepts a numerical argument, C-u <num1> <num2> ...

      The number prefix works for nearly all commands, so you can use it for things like 'move down 100 lines': C-u 1 0 0 C-n

      For defining keys in ELisp use 'define-key':

      (define-key (current-global-map) <key> <func>)

      where <key> is the key sequence to be defined, and <func> is the zero-arg function that does it.
  • C-X C-B lists buffers. In the buffer display you can go to the line of the buffer you want and type "1" for a single screen of that buffer.

    As usual, when in the buffer list window, C-H M will list all things you can do there. The buffer list is quite competent.

    If you use a mouse you can use it to select buffers directly. I don't so I can't tell you how well it works.

Recent topics in "Emacs"

Topic Author Replies Last Post
eMergency eLisp 0 January 25, 2008
pretty quiet 0 September 14, 2007
Emacs 22 released Theron Ttlåx 0 June 5, 2007
ViewMail with smtpmail? onlinealex 0 November 29, 2006