From c5e88e21bcbf2f2c6cc9bdc80e20e28bd10fb665 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 17 Jan 2019 01:51:47 -0800 Subject: Call ‘time-stamp’ before saving the buffer 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(+) (limited to 'emacs/.emacs.d') 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")) -- cgit v1.2.3-54-g00ecf