aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-01-17 01:51:47 -0800
committerGravatar Tom Willemse2019-01-17 01:51:47 -0800
commitc5e88e21bcbf2f2c6cc9bdc80e20e28bd10fb665 (patch)
tree9401448321c3c65763a0f93d24e13db232077c35 /emacs/.emacs.d/init.el
parentb36b9aa63d97884f4982b57b2de39c4e4a8aef66 (diff)
downloadnew-dotfiles-c5e88e21bcbf2f2c6cc9bdc80e20e28bd10fb665.tar.gz
new-dotfiles-c5e88e21bcbf2f2c6cc9bdc80e20e28bd10fb665.zip
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.
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el2
1 files changed, 2 insertions, 0 deletions
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"))