Browse Source

Add time-stamp

master
10sr 6 years ago
parent
commit
df51a1962e
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 8 additions and 2 deletions
  1. +8
    -2
      emacs.el

+ 8
- 2
emacs.el View File

@@ -1,5 +1,7 @@
;;; emacs.el --- 10sr emacs initialization ;;; emacs.el --- 10sr emacs initialization


;; Time-stamp: <2018-10-09 14:29:40 JST 10sr>

;;; Code: ;;; Code:


;; SETUP_LOAD: (let ((file "DOTFILES_DIR/emacs.el")) ;; SETUP_LOAD: (let ((file "DOTFILES_DIR/emacs.el"))
@@ -325,7 +327,7 @@ found, otherwise returns nil."
(which-key-mode)) (which-key-mode))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; editting
;; editor


(setq kill-whole-line t) (setq kill-whole-line t)
(setq scroll-conservatively 35 (setq scroll-conservatively 35
@@ -347,6 +349,11 @@ found, otherwise returns nil."
(setq line-move-visual nil) (setq line-move-visual nil)
(setq create-lockfiles 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 ;; key bindings
;; moving around ;; moving around
;;(keyboard-translate ?\M-j ?\C-j) ;;(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) ;; (define-minor-mode my-dired-glob-filter)



;; Local Variables: ;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc) ;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)
;; flycheck-checker: emacs-lisp ;; flycheck-checker: emacs-lisp


Loading…
Cancel
Save