unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Pinning items on the mode line
@ 2017-11-18 20:19 Narendra Joshi
  2017-11-19  2:05 ` Emanuel Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Narendra Joshi @ 2017-11-18 20:19 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I would like to have `eyebrowse` workspaces and date time always visible
on the mode line. Currently, when the other parts of the mode line
occupy more space, they are push out of the visible region, e.g. while
using Gnus. Is there a simple way to achieve what I want?

Best,
-- 
Narendra Joshi



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

* Re: Pinning items on the mode line
  2017-11-18 20:19 Pinning items on the mode line Narendra Joshi
@ 2017-11-19  2:05 ` Emanuel Berg
  2017-11-19  9:36   ` Narendra Joshi
  0 siblings, 1 reply; 3+ messages in thread
From: Emanuel Berg @ 2017-11-19  2:05 UTC (permalink / raw)
  To: help-gnu-emacs

Narendra Joshi wrote:

> I would like to have `eyebrowse` workspaces
> and date time always visible on the mode
> line. Currently, when the other parts of the
> mode line occupy more space, they are push
> out of the visible region, e.g. while using
> Gnus. Is there a simple way to achieve what
> I want?

You can have whatever mode line you want.

Here is a config with a blank mode line for
every mode, except for the Buffer-menu-mode,
where the time is shown.

Go nuts :)

(setq-default mode-line-format
 `(" "
   (:eval (when (eq major-mode 'Buffer-menu-mode) (format-time-string " %H:%M")))
   ))

-- 
underground experts united
http://user.it.uu.se/~embe8573




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

* Re: Pinning items on the mode line
  2017-11-19  2:05 ` Emanuel Berg
@ 2017-11-19  9:36   ` Narendra Joshi
  0 siblings, 0 replies; 3+ messages in thread
From: Narendra Joshi @ 2017-11-19  9:36 UTC (permalink / raw)
  To: help-gnu-emacs

Emanuel Berg <moasen@zoho.com> writes:

> Narendra Joshi wrote:
>
>> I would like to have `eyebrowse` workspaces
>> and date time always visible on the mode
>> line. Currently, when the other parts of the
>> mode line occupy more space, they are push
>> out of the visible region, e.g. while using
>> Gnus. Is there a simple way to achieve what
>> I want?
>
> You can have whatever mode line you want.
>
> Here is a config with a blank mode line for
> every mode, except for the Buffer-menu-mode,
> where the time is shown.
>
> Go nuts :)
>
> (setq-default mode-line-format
>  `(" "
>    (:eval (when (eq major-mode 'Buffer-menu-mode) (format-time-string " %H:%M")))
>    ))
Thanks for this. Here is my current `mode-line-format'

```
("%e" mode-line-front-space
 mode-line-mule-info
 mode-line-client
 mode-line-modified
 mode-line-remote
 mode-line-frame-identification
 mode-line-buffer-identification
 sml/pos-id-separator
 mode-line-position
 (vc-mode vc-mode)
 sml/pre-modes-separator
 mode-line-modes
 mode-line-misc-info
 mode-line-end-spaces)
```

I do not want to disturb the defaults here. I just want to make sure
that date time is always displayed even if it means truncating the other
parts. 

-- 
Narendra Joshi



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

end of thread, other threads:[~2017-11-19  9:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-18 20:19 Pinning items on the mode line Narendra Joshi
2017-11-19  2:05 ` Emanuel Berg
2017-11-19  9:36   ` Narendra Joshi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).