From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Narendra Joshi Newsgroups: gmane.emacs.help Subject: Re: Pinning items on the mode line Date: Sun, 19 Nov 2017 15:06:21 +0530 Message-ID: <87tvxqmwyy.fsf@gmail.com> References: <87a7zj732h.fsf@gmail.com> <86zi7j10rk.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511084237 30497 195.159.176.226 (19 Nov 2017 09:37:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Nov 2017 09:37:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 19 10:37:10 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGM2C-0007DI-NA for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 10:37:04 +0100 Original-Received: from localhost ([::1]:52417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGM2K-00050b-35 for geh-help-gnu-emacs@m.gmane.org; Sun, 19 Nov 2017 04:37:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGM1l-00050L-1x for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 04:36:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGM1h-0004Y0-VW for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 04:36:37 -0500 Original-Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:39188) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGM1h-0004Xr-PZ for help-gnu-emacs@gnu.org; Sun, 19 Nov 2017 04:36:33 -0500 Original-Received: by mail-pg0-x236.google.com with SMTP id 70so5121153pgf.6 for ; Sun, 19 Nov 2017 01:36:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=pkRnm4lurwTP7FXjvsYXa4w+auODeb3/c1JcssAf6y8=; b=qO3xX18dTKVN2/iGiYfu498y/PQVtvmWr0yFkOBXShCPcyUNaJFxR50LWphTFp9Xrg enY4CV0ofin1/o+00dnLbTr/oxKBTCsZpM+cNQLaPgP4ZxQIGkYXy7B6g44KtttXRUjf k1hVqcoskdcub+i+u/h9lxSmtCey4JYCsh0c/t+uSmQdqrlfFFpTCIdWdGVot8TSRZbB bKezaskwpeTzFCWkVdfjodjnoFlS0+UjI23xkIFvdfHcneX9nHoCC8iLgM69Mde9ZM7i PgIaUfjtnsyVR5b9yd2FMttQjvhVKs30mb3WwNyxkIaw9UhY+Bwj4FrPwDEVVR4adZ4B /5Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pkRnm4lurwTP7FXjvsYXa4w+auODeb3/c1JcssAf6y8=; b=M/HblVdwvp4XUjehlsqoy5f3Na+SpMwzWo+Z3ScJoBMi2kIktVuYrth7OSo03kpoON j2wpnLlyK4+31nQ07Jqaf5mjl8ODmiyT3HUIBg1ZPhlnG19GpZ6gw8WEKoif5KF5Qqpo oUle0NRisyA5fNKxJPBb+KqPWCoBn3Ttz26EnIZwCoGUvSLwwIxpXOBIALPO3pkvND9r W0z7WFKj4by2HlMhPt+gqERHUcbldo1vSYXXH7OcVbOlFoJ36tDYKrSEu1TGboQXImZe +Qq+ozr02okKIe32zOJksDORq5L2IJQfFw93VpwS2/q13an8fzkD7zBoC5oEwEQrEL3x M5wg== X-Gm-Message-State: AJaThX4q4gYZwB0Vr0xHpomXJ4vGRZJSxpJ/YvQwmIp8q/O6EeX4WSvb v6MDeYCFjoKF8niK2hrqhou68Uw= X-Google-Smtp-Source: AGs4zMZGJfkFs3WktjVfL7B1q3yX4yLLrSVX3dBRae/BdNgY08xKny/Qvbt/ke3OOmb32oSwND943g== X-Received: by 10.99.127.85 with SMTP id p21mr10259223pgn.425.1511084192080; Sun, 19 Nov 2017 01:36:32 -0800 (PST) Original-Received: from vicarie ([106.193.180.210]) by smtp.gmail.com with ESMTPSA id r1sm14858269pfe.99.2017.11.19.01.36.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 Nov 2017 01:36:30 -0800 (PST) In-Reply-To: <86zi7j10rk.fsf@zoho.com> (Emanuel Berg's message of "Sun, 19 Nov 2017 03:05:19 +0100") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::236 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114973 Archived-At: Emanuel Berg writes: > Narendra Joshi wrote: > >> I would like to have `eyebrowse` workspaces >> and date time always visible on the mode >> line. Currently, when the other parts of the >> mode line occupy more space, they are push >> out of the visible region, e.g. while using >> Gnus. Is there a simple way to achieve what >> I want? > > You can have whatever mode line you want. > > Here is a config with a blank mode line for > every mode, except for the Buffer-menu-mode, > where the time is shown. > > Go nuts :) > > (setq-default mode-line-format > `(" " > (:eval (when (eq major-mode 'Buffer-menu-mode) (format-time-string " %H:%M"))) > )) Thanks for this. Here is my current `mode-line-format' ``` ("%e" mode-line-front-space mode-line-mule-info mode-line-client mode-line-modified mode-line-remote mode-line-frame-identification mode-line-buffer-identification sml/pos-id-separator mode-line-position (vc-mode vc-mode) sml/pre-modes-separator mode-line-modes mode-line-misc-info mode-line-end-spaces) ``` I do not want to disturb the defaults here. I just want to make sure that date time is always displayed even if it means truncating the other parts. -- Narendra Joshi