Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8883201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:45:30+00:00 2026-06-14T20:45:30+00:00

CTRL-x o – switch cursor to other window I would like to have the

  • 0

CTRL-x o – switch cursor to other window

I would like to have the ability to reverse what control-x o does. Something like control-x p that does exactly what control-x o does, but backwards. The reason for this request is that I often have two buffers open that are code and one buffer open that is a repl. I often have to move across one of the buffers to get to the other, that is annoying.

Say I have 3 buffers open (A, B, C), and I am on buffer B. The buffers are in alphabetical order in terms of control-x o. When I want to go to A, I want to just press control-x p, rather than having to press control-x o twice.

Any help is appreciated, Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:45:31+00:00Added an answer on June 14, 2026 at 8:45 pm

    Call other-window with a negative count. This can be done interactively by pressing C-- C-x o. The “C–” is supplying a numeric argument of -1. You can supply any numeric (NUM) by pressing C-u num.

    If you don’t want to press the additional key cord, just write you own command command to hard code the “-1” argument:

    Add this code to your .emacs file

    (global-set-key "\C-xp" (lambda () 
                              (interactive)
                              (other-window -1)))
    

    How does it work? “C-x o” calls the function other-window (to find that out use C-h k and then type the key combo).

    In the code above we define an anonymous function, make it interactive and do what we want. Then we bind that function to the key combinaion C-x p.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's like Ctrl-shift-T combination, but for package name instead of class name. I have
I often use Ctrl + P to open files, but then I'd like to
How to disable ctrl + alt + del using C in Window OS? I
When I Ctrl C my program on linux I often get output that looks
When searching with Ctrl + F in a website I'd like to exclude some
I have a simple goal: Map Ctrl-C, a command I don't think I've ever
The Ctrl + B in Word and other shortcuts work the same no matter
I can see that Ctrl + left / right jumps to the beginning/end of
How can I mimic CTRL + A , CTRL + V in WebBrowser Control
how to filter CTRL + V in richTextBox? I have richtextbox with text blabla

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.