all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: sadiq@sadiqpk.org, help-gnu-emacs@gnu.org
Subject: Restricting GNU Emacs to have only one modeline
Date: Thu, 23 Feb 2017 10:06:57 +0100	[thread overview]
Message-ID: <58AEA631.6010908@gmx.at> (raw)

 > Can I restrict GNU Emacs to have only one modeline. That is, configure
 > GNU Emacs such that only the bottom modeline shall be shown. It won't be
 > split even if the window is split. The details of the focused window
 > (enabled modes, buffer-name, etc.) shall be shown in the only available
 > full width modeline at the bottom of the frame. Also, each new window
 > shall be split horizontally by a narrow line (as it is done vertically).
 >
 > I wish to have this so that I can save some lines when splitting window,
 > especially in gdb-many-windows on my small screen. Also, I can include
 > more details in modeline (like time, battery %), etc, that won't go
 > hidden when I split-window-right.
 >
 > If it is possible, Please let me know how to implement this.

It's not generally possible since the presence/absence of the modeline
is buffer-specific.  Suppose you have a "normal" frame with one "normal"
window such as the one you get via emacs -Q:

(1) If the window has no modeline, then your frame has no modeline and
     your one modeline per frame invariant is violated.

(2) If the window has a modeline, then C-x 2 and C-x 3 will show a
     modeline in the new window too and again your invariant breaks.

So you cannot show the same buffer twice on the same frame and have only
one modeline on that frame.

To show a "narrow line" between two windows split by C-x 2 customize
window dividers.

martin



             reply	other threads:[~2017-02-23  9:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-23  9:06 martin rudalics [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-02-23  3:34 Restricting GNU Emacs to have only one modeline Mohammed Sadiq

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58AEA631.6010908@gmx.at \
    --to=rudalics@gmx.at \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sadiq@sadiqpk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.