Skip to content

Instantly share code, notes, and snippets.

@kmakita13714
Created March 18, 2013 12:44
Show Gist options
  • Save kmakita13714/5186913 to your computer and use it in GitHub Desktop.
Save kmakita13714/5186913 to your computer and use it in GitHub Desktop.
Emacsのモードラインに、日付と時間を表示する設定です。
;; 以下の書式に従ってモードラインに日付・時刻を表示する
(setq display-time-string-forms
'((format "%s/%s/%s(%s) %s:%s" year month day dayname 24-hours minutes)
load
(if mail " Mail" "")))
;; 時刻表示の左隣に日付を追加。
(setq display-time-kawakami-form t)
;; 24時間制
(setq display-time-24hr-format t)
;; 時間を表示
(display-time)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment