;;; time-conf.el --- Display time -*- lexical-binding: t; -*- ;; Copyright (C) 2021 李俊緯 ;; Author: 李俊緯 ;; Keywords: convenience, help, calendar, unix ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;;; Commentary: ;; Display time on the mode line. ;;; Code: (setq display-time-format "%H:%M %Y-%m-%d") ;;;; Covered by `display-time-format' ;; (setq display-time-24hr-format t) ;; (setq display-time-day-and-date t) (setq display-time-interval 60) (setq display-time-default-load-average nil) ;; NOTE: I don't want to see a mail indicator on the mode line. (setq display-time-mail-directory nil) (setq display-time-mail-function nil) (setq display-time-use-mail-icon nil) (setq display-time-mail-string nil) (setq display-time-mail-face nil) (add-hook 'after-init-hook #'display-time-mode) (provide 'time-conf) ;;; time-conf.el ends here