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

  • SEARCH
  • Home
  • 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 7558917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:29:56+00:00 2026-05-30T12:29:56+00:00

Say I have my Emacs window split into multiple tiles, e.g.: ————————— | |

  • 0

Say I have my Emacs window split into multiple tiles, e.g.:

---------------------------
|            |            |
|            |            |
---------------------------
|                         |
|                         |
---------------------------

When I switch between tiles (aka windows in Emacs) to edit my files (e.g. using C-x o), I can see on which tile I am by visually locating the cursor (point) on the screen and checking the difference in shading in the status bar of each tile:

However, locating the cursor on a large screen is not easy AND the difference in shading on the status bar where the cursor is is almost negligible:

This is what a status bar looks like when the corresponding window is selected:

              Img1

This is what it looks like when the corresponding window is not selected (notice the green is a bit dimmer)

              enter image description here

The above is with the color theme zenburn on GNU Emacs 23.3.1.

My question is: Is there a way to have Emacs more clearly indicate which window/tile/buffer is the one that has the focus?

  • 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-05-30T12:29:57+00:00Added an answer on May 30, 2026 at 12:29 pm

    Absolutely!

    You can change the modeline to highlight the active bar using the following in your .emacs (change colors and style to suit your preferences of course).

    (set-face-attribute  'mode-line
                     nil 
                     :foreground "gray80"
                     :background "gray25" 
                     :box '(:line-width 1 :style released-button))
    (set-face-attribute  'mode-line-inactive
                     nil 
                     :foreground "gray30"
                     :background MY_BG_COLOR 
                     :box '(:line-width 1 :style released-button))
    

    Since it seems you are using the Zenburn color theme, you can also fix it within there.
    Just open the file within your color-theme library named zenburn.el (or it might be color-theme-zenburn.el) and search for the following lines:

    `(mode-line
      ((,class (:foreground ,zenburn-green+1
                           :background ,zenburn-bg-1
                           :box (:line-width -1 :style released-button)))))
    `(mode-line-buffer-id ((,class (:foreground ,zenburn-yellow :weight bold))))
    `(mode-line-inactive
      ((,class (:foreground ,zenburn-green-1
                           :background ,zenburn-bg-05
                           :box (:line-width -1 :style released-button)))))
    

    and change the values of the background and foreground colors as you see fit.

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

Sidebar

Related Questions

Say I have a line in an emacs buffer that looks like this: foo
Say you have an application divided into 3-tiers: GUI, business logic, and data access.
Say I have three files (template_*.txt): template_x.txt template_y.txt template_z.txt I want to copy them
Let's say I have the following line in .emacs file. (setq-default default-directory ~/Desktop/mag) How
Let's say I have my own elisp code in ~/bin/hello.el . The ~/.emacs file
Let's say you have a *SQL* buffer already open in Emacs that is connected
I'm having trouble inserting a buffer in Emacs. Say I have the following two
Lets say I have an Emacs-Server running on some remote server, with all the
Say I have a lot of c++ files that I want to add namespace
Say I have all these files in a folder: something(34324).php something(34).php something(3433454546).php something(65565).php something(9887).php

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.