unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Move `rcirc-activity-string' to beginning of mode-line
Date: Thu, 04 Jul 2013 15:44:33 +0200	[thread overview]
Message-ID: <87zju2bfsu.fsf@gmail.com> (raw)


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




                 reply	other threads:[~2013-07-04 13:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zju2bfsu.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).