unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
To: Sean Sieger <sean.sieger@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: display-time-string-forms
Date: Wed, 10 Oct 2007 08:53:00 +0200	[thread overview]
Message-ID: <878x6bh35f.fsf@debby.local.net> (raw)
In-Reply-To: <87ir5fublw.fsf@gmail.com> (Sean Sieger's message of "Tue\, 09 Oct 2007 19\:11\:55 -0400")

Sean Sieger <sean.sieger@gmail.com> writes:

> With M-x apropos display-time, I found the variable and its
> documentation, but I don't know elisp.  I was hoping there was some
> information in the manual, but no.
>
> Is there a little something I can put in my ~/.emacs to get the form:
>
> yyyymmdd hh:mm
>
> when I toggle fullscreen?  This is what I have there so far:
>
> (defun switch-full-screen ()
>   (interactive)
>   (shell-command "wmctrl -r :ACTIVE: -btoggle,fullscreen"))
> (global-set-key [f11] 'switch-full-screen).
>
> By doing f11, I would now have in my mode line:
>
> 20071009 7:10PM
>
> Oh, shoot, in a closely related subject, once I go to fullscreen and
> evaluate, in my document, (setq left-margin-width 30) I then do C-x C-b
> and f to get back to the document and its updated margin.  Is that nuts
> and is there a `real' way to do it?

I have  

  (setq display-time-format "%R %Y-%m-%d")

which gives me

      08:47 2007-10-10

in the mode line.  Please have a look at the documentation to the
function:

   format-time-string

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany

  reply	other threads:[~2007-10-10  6:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-09 23:11 display-time-string-forms Sean Sieger
2007-10-10  6:53 ` Dieter Wilhelm [this message]
2007-10-10  8:28 ` display-time-string-forms Peter Dyballa
     [not found] ` <mailman.1909.1191999022.18990.help-gnu-emacs@gnu.org>
2007-10-10 12:05   ` display-time-string-forms Warren Oates
2007-10-10 16:04     ` display-time-string-forms B. T. Raven
2007-10-10 18:56       ` display-time-string-forms Drew Adams
2007-10-10 19:50       ` display-time-string-forms Peter Dyballa
2007-10-11  0:25         ` display-time-string-forms Dieter Wilhelm
2007-10-10 18:00     ` display-time-string-forms Sean Sieger

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=878x6bh35f.fsf@debby.local.net \
    --to=dieter@duenenhof-wilhelm.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sean.sieger@gmail.com \
    /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).