all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Restricting GNU Emacs to have only one modeline
@ 2017-02-23  3:34 Mohammed Sadiq
  0 siblings, 0 replies; 2+ messages in thread
From: Mohammed Sadiq @ 2017-02-23  3:34 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,
  I know that it is wrong to ask 'Can GNU Emacs do X.' And the right
question to ask would be 'How can I do X with/in/using GNU Emacs.'
But I have to ask this, as I haven't find a solution anywhere,
Sorry.

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.

I run GNU Emacs from master. So I'm OK to use the features present only
in master.

Please CC me as I'm not subscribed to the mailing list.

Thanks in advance.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Restricting GNU Emacs to have only one modeline
@ 2017-02-23  9:06 martin rudalics
  0 siblings, 0 replies; 2+ messages in thread
From: martin rudalics @ 2017-02-23  9:06 UTC (permalink / raw)
  To: sadiq, help-gnu-emacs

 > 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-23  9:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-23  9:06 Restricting GNU Emacs to have only one modeline martin rudalics
  -- strict thread matches above, loose matches on Subject: below --
2017-02-23  3:34 Mohammed Sadiq

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.