From c5e88e21bcbf2f2c6cc9bdc80e20e28bd10fb665 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 17 Jan 2019 01:51:47 -0800 Subject: [PATCH] =?UTF-8?q?Call=20=E2=80=98time-stamp=E2=80=99=20before=20?= =?UTF-8?q?saving=20the=20buffer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I’m trying out a new system of maintaining my Emacs configuration, which entails making a bunch of custom libraries. The version for these libraries should be exactly the time stamp from when they were saved, so they always update properly. --- emacs/.emacs.d/init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index cecfbd2..cfa8b1c 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -317,6 +317,8 @@ ORIG-FUN is the function being wrapped, ARGS are the arguments specified" (add-hook 'html-mode-hook 'electric-pair-local-mode) +(add-hook 'before-save-hook 'time-stamp) + (add-to-list 'grep-files-aliases '("js" . "*.js *.jsx *.json")) (add-to-list 'grep-files-aliases '("css" . "*.css *.less *.sass *.scss")) (add-to-list 'grep-files-aliases '("php" . "*.php *.inc *.module"))