[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inserting string to start of mode-line via change in mode-line-forma
From: |
Christopher Dimech |
Subject: |
Re: Inserting string to start of mode-line via change in mode-line-format |
Date: |
Mon, 28 Nov 2022 02:36:07 +0100 |
> Sent: Monday, November 28, 2022 at 9:41 AM
> From: "Heime" <heimeborgia@protonmail.com>
> To: "Heime via Users list for the GNU Emacs text editor"
> <help-gnu-emacs@gnu.org>
> Subject: Inserting string to start of mode-line via change in mode-line-format
>
> Wanting to insert a string (act) in the beginning of the mode-line,
> mode-line-format was
> modified as follows. But I am not getting the string printed. What am I
> doing wrong here?
>
> (setq-default mode-line-format
> '("%e" mode-line-front-space
> (:propertize
> ("" mode-line-mule-info
> mode-line-client
> mode-line-modified
> mode-line-remote)
> display (min-width (5.0)))
> mode-line-misc-info ;; <-- HERE
> mode-line-frame-identification
> mode-line-buffer-identification
> " "
> mode-line-position
> (vc-mode vc-mode)
> " "
> mode-line-modes
> mode-line-end-spaces))
>
> (push '("" act) global-mode-string)
You got to use backquote and evaluate act using a comma.
(push `("" ,act) global-mode-string)