[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]
Re: display-time on title bar
- X-ml-count: 2951
- Subject: Re: display-time on title bar
- From: OISHI Kazutoshi <ooishi@xxxxxxxxxxxxxx>
- Date: Mon, 15 Jan 2001 18:55:57 +0900 (JST)
- X-mailer: cmail 2.60 on GNU Emacs 20.4.1 / Mule 4.1 (AOI)
- User-agent: SEMI/1.13.5 (Meihō) FLIM/1.13.2 (Kasanui) Emacs/20.4 (i386-*-nt4.0.1381) MULE/4.1 (AOI) Meadow/1.10 (TSUYU)
おおいしです.
私はこんな感じでタイトルバーだけに日付と時刻を表示できています.
時刻は更新されています. ただし lisp はほとんど分からないので,
変なことをしているかもしれませんが.
(setq display-time-day-and-date t
display-time-24hr-format t)
(setq display-time-string-forms
'((if display-time-day-and-date
(format "%s/%s/%s " year month day)
"")
(format "%s:%s%s"
(if display-time-24hr-format 24-hours 12-hours)
minutes
(if display-time-24hr-format "" am-pm))))
(display-time)
(cond (window-system
(setq frame-title-format
'((multiple-frames ("%b ")
("" invocation-name "@" system-name))
" "
display-time-string))
(remove-hook 'global-mode-string 'display-time-string)))
In message "display-time on title bar"
on 01/01/15, yagi@xxxxxxxxxxxxxxx <yagi@xxxxxxxxxxxxxxx> writes:
> 矢木です。
>
> ふと思い立って、こんなことを .emacs に書いてみたのですが、
> タイトルバーの更新はいつ行われるのでしょうか?
> (force-mode-line-update) で更新されれば問題ないのですが。
>
> (if (eq window-system 'w32)
> (let (global-mode-string)
> (display-time)
> (if (not (and (listp frame-title-format)
> (memq 'display-time-string frame-title-format)))
> (setq frame-title-format
> (list "" frame-title-format " " 'display-time-string)))
> ))
--
おおいし