From df51a1962e6683907298ce9c26839d295ff8d849 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 9 Oct 2018 14:30:07 +0900 Subject: [PATCH] Add time-stamp --- emacs.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/emacs.el b/emacs.el index ebb0b41..26e14d8 100644 --- a/emacs.el +++ b/emacs.el @@ -1,5 +1,7 @@ ;;; emacs.el --- 10sr emacs initialization +;; Time-stamp: <2018-10-09 14:29:40 JST 10sr> + ;;; Code: ;; SETUP_LOAD: (let ((file "DOTFILES_DIR/emacs.el")) @@ -325,7 +327,7 @@ found, otherwise returns nil." (which-key-mode)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -;; editting +;; editor (setq kill-whole-line t) (setq scroll-conservatively 35 @@ -347,6 +349,11 @@ found, otherwise returns nil." (setq line-move-visual nil) (setq create-lockfiles nil) +(add-hook 'before-save-hook + 'time-stamp) +(set-variable 'time-stamp-format + "%:y-%02m-%02d %02H:%02M:%02S %Z 10sr") + ;; key bindings ;; moving around ;;(keyboard-translate ?\M-j ?\C-j) @@ -2219,7 +2226,6 @@ use for the buffer. It defaults to \"*recetf-show*\"." ;; (define-minor-mode my-dired-glob-filter) - ;; Local Variables: ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-checker: emacs-lisp