help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: display-time-string-forms


From: Dieter Wilhelm
Subject: Re: display-time-string-forms
Date: Wed, 10 Oct 2007 08:53:00 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux)

Sean Sieger <address@hidden> 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 via email to

[Prev in Thread] Current Thread [Next in Thread]