From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Move `rcirc-activity-string' to beginning of mode-line Date: Thu, 04 Jul 2013 15:44:33 +0200 Message-ID: <87zju2bfsu.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372945507 31986 80.91.229.3 (4 Jul 2013 13:45:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2013 13:45:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 04 15:45:05 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UujqK-0004Dl-Jj for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 15:45:04 +0200 Original-Received: from localhost ([::1]:50241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UujqK-0002Iy-8A for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Jul 2013 09:45:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uujq3-0002FM-T6 for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 09:44:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uujq2-0004wL-Lv for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 09:44:47 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:49597) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uujq2-0004wG-F1 for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 09:44:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Uujq1-0003qG-GY for help-gnu-emacs@gnu.org; Thu, 04 Jul 2013 15:44:45 +0200 Original-Received: from e178062038.adsl.alicedsl.de ([85.178.62.38]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jul 2013 15:44:45 +0200 Original-Received: from tjolitz by e178062038.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Jul 2013 15:44:45 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 43 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178062038.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:aUwafdk4GwHPW0dSEaWdZSfuk8c= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91937 Archived-At: 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