all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 59624@debbugs.gnu.org
Subject: bug#59624: Usning global-mode-string for small screens
Date: Sun, 27 Nov 2022 02:51:58 +0000	[thread overview]
Message-ID: <xg7hdJCkmuDP2G6LzJMRf6BMLyqyEp8t9cxlL-NkwM_3YCCJTcHMeXXul7j9kF4ypFpqogc8MHiv2bX4lo6iybHWSDF1-2Co9ahDMpcL1RE=@protonmail.com> (raw)


A convenenient way to update the mode-line is to use "global-mode-string".  This is quite powerful
because I can easily insert and remove the information in "global-mode-string" that one introduces 
in the mode-line.  For instance, one can add an indicator "Indic" in the mode.  Then easily remove 
it by resetting "global-mode-string".

Yet introducing global-mode-string, gets to be printed after the mode-lighters.  This is a problem
far small screens.  

(setq act "Indic")
(push '("" act) global-mode-string)

A more appropriate implementation could allow one to decide where to insert "global-mode-string"
(beginning, before buffer-name, before mode-lighter, end) or some other way suitable to people 
who have to endure small screens.





             reply	other threads:[~2022-11-27  2:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-27  2:51 Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-11-27  5:32 ` bug#59624: Usning global-mode-string for small screens Gabriel
2022-11-27  6:55   ` Eli Zaretskii
2022-11-27  8:08     ` Gabriel
2022-11-27  8:21       ` Eli Zaretskii
     [not found]       ` <trinity-b12dd0f4-5576-4927-8a9e-9060206c5d28-1669568279229@3c-app-mailcom-bs09>
2022-11-27 17:04         ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-11-29 12:34           ` Gabriel
2022-11-29 18:52             ` Heime via Bug reports for GNU Emacs, the Swiss army knife of text editors

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='xg7hdJCkmuDP2G6LzJMRf6BMLyqyEp8t9cxlL-NkwM_3YCCJTcHMeXXul7j9kF4ypFpqogc8MHiv2bX4lo6iybHWSDF1-2Co9ahDMpcL1RE=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=59624@debbugs.gnu.org \
    --cc=heimeborgia@protonmail.com \
    /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.