unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Madhu <enometh@meer.net>
To: help-gnu-emacs@gnu.org, Hi-Angel@yandex.ru
Subject: Subject: Re: Major-mode devel: how to drop font-lock 'display when mode is disabled?
Date: Tue, 12 Mar 2024 20:15:31 +0530 (IST)	[thread overview]
Message-ID: <20240312.201531.327797025962741547.enometh@meer.net> (raw)

>> After some searching and experimentation I figured it's easy by making
>> a major mode, which basically uses a `(put-text-property start end
>> 'display human-redable-text)` to change the display of timestamps.
>>
>> It works fine but one problem I couldn't figure out how to get rid of
>> is that upon changing the major mode the custom display does not
>> go away.

for a pre-existing solution I think epoch-view may work in a pinch

https://elpa.gnu.org/packages/epoch-view.html




                 reply	other threads:[~2024-03-12 14:45 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=20240312.201531.327797025962741547.enometh@meer.net \
    --to=enometh@meer.net \
    --cc=Hi-Angel@yandex.ru \
    --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).