From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Cubizolles Newsgroups: gmane.emacs.help Subject: Re: Customizing the modeline Date: Mon, 05 Jan 2015 20:17:19 +0100 Message-ID: <87egr9nikg.fsf@free.fr> References: <87zja4anlx.fsf@free.fr> <87r3veej96.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1420485703 15085 80.91.229.3 (5 Jan 2015 19:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Jan 2015 19:21:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 05 20:21:36 2015 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 1Y8DD8-0003F9-3O for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2015 20:21:06 +0100 Original-Received: from localhost ([::1]:33703 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8DD7-0008BE-DO for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Jan 2015 14:21:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42423) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8DCw-0008B6-HD for help-gnu-emacs@gnu.org; Mon, 05 Jan 2015 14:20:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8DCt-00067L-7P for help-gnu-emacs@gnu.org; Mon, 05 Jan 2015 14:20:54 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:34048) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8DCt-00066x-1F for help-gnu-emacs@gnu.org; Mon, 05 Jan 2015 14:20:51 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y8DC7-000639-2m for help-gnu-emacs@gnu.org; Mon, 05 Jan 2015 20:20:03 +0100 Original-Received: from gas45-3-82-244-252-119.fbx.proxad.net ([82.244.252.119]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jan 2015 20:20:03 +0100 Original-Received: from j.cubizolles by gas45-3-82-244-252-119.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Jan 2015 20:20:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gas45-3-82-244-252-119.fbx.proxad.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:vSA2NcamOP440PE0FAtFOEnH5f4= 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:101891 Archived-At: Michael Heerdegen writes: > Julien Cubizolles writes: > >> I'd like to display the track currently played my mpd in the >> modeline. What would be the easiest way to just add the output of >> >> mpc current -f "[[%artist%] %title%]" >> >> for example? > > You probably don't wan to run this command every time the mode-line is > recalculated (which can be quite frequently). > > Do you control mpc from within Emacs? Yes I do, with mingus.el. And as I stated in another reply, a recent fix to mingus solved its modeline problem. Julien.