* Move `rcirc-activity-string' to beginning of mode-line
@ 2013-07-04 13:44 Thorsten Jolitz
0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-07-04 13:44 UTC (permalink / raw)
To: help-gnu-emacs
Hi List,
I often split windows vertically so that the mode-line is not fully
visible anymore, and thus the RCIRC activity-string - appended by
`rcirc-track-minor-mode' at the end of `global-mode-string', which itself
appears at the end of `mode-line-format' - is not visible anymore.
#+begin_src emacs-lisp
(define-minor-mode rcirc-track-minor-mode
"Global minor mode for tracking activity in rcirc buffers.
With a prefix argument ARG, enable the mode if ARG is positive,
and disable it otherwise. If called from Lisp, enable the mode
if ARG is omitted or nil."
[...]
;; toggle the mode-line channel indicator
(if rcirc-track-minor-mode
(progn
(and (not (memq 'rcirc-activity-string global-mode-string))
(setq global-mode-string
(append global-mode-string '(rcirc-activity-string))))
[...])))
#+end_src
I would like to have this rcirc notifier at a more prominent place,
maybe even right at the beginning of the mode-line. I deleted
`rcirc-activity-string' from the 'global-mode-string' in my init-file
after loading rcirc and tried this
#+begin_src emacs-lisp
(setq mode-line-format
(cons (car mode-line-format)
(cons 'rcirc-activity-string (cdr mode-line-format))))
#+end_src
but it does not have any effect, maybe its overridden later on again?
What would be the right way to move this `rcirc-activity-string' to the
beginning of the mode-line?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-04 13:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-04 13:44 Move `rcirc-activity-string' to beginning of mode-line Thorsten Jolitz
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.