diff options
Diffstat (limited to 'time-conf.el')
-rw-r--r-- | time-conf.el | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/time-conf.el b/time-conf.el new file mode 100644 index 0000000..4456833 --- /dev/null +++ b/time-conf.el @@ -0,0 +1,43 @@ +;;; time-conf.el --- Display time -*- lexical-binding: t; -*- + +;; Copyright (C) 2021 李俊緯 + +;; Author: 李俊緯 <mmemmew@gmail.com> +;; 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 <https://www.gnu.org/licenses/>. + +;;; 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 |