all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: How to get rid of "MR" from the modeline?
Date: Fri, 27 Feb 2015 01:42:39 +0100	[thread overview]
Message-ID: <878ufk9ocg.fsf@debian.uxu> (raw)
In-Reply-To: mailman.892.1424979854.31049.help-gnu-emacs@gnu.org

Sharon Kimble <boudiccas@skimble.plus.com> writes:

> Somehow my agenda buffer is showing "MR" in the
> mode-line , where
>
>    '(:eval (if (buffer-modified-p) "M" "-"))
>    '(:eval (if buffer-read-only  "R" "-"))
>
> How do I get rid of it please?

I don't know the agenda buffer specifically, but from
where did you get the above code? - if it is the
`mode-line-format' then simply change the 'M' and 'R'
to whatever you like, or remove the entire line(s).

But perhaps that knowledge comes in handy sometimes?
(Even so, I wonder why not the standard * and % are
used?)

It may look like this:

    (setq-default mode-line-format
       `(" "
         (:eval ... )
         ... ))

So change and evaluate and changes should appear
instantly.

-- 
underground experts united


       reply	other threads:[~2015-02-27  0:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.892.1424979854.31049.help-gnu-emacs@gnu.org>
2015-02-27  0:42 ` Emanuel Berg [this message]
2015-02-26 19:44 How to get rid of "MR" from the modeline? Sharon Kimble

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

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

  git send-email \
    --in-reply-to=878ufk9ocg.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --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.
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.