-
-
Notifications
You must be signed in to change notification settings - Fork 5
Time stamp
Gonzalo Larumbe edited this page Jun 9, 2023
·
2 revisions
vhdl-mode
already provides a similar functionality through the customizable variable
vhdl-modify-date-on-saving
. Since both features cannot work at the same time it is needed
to disable one of them. E.g:
(setq vhdl-modify-date-on-saving nil)
Emacs has a built-in package called time-stamp
that automatically
updates the modification date of a file upon save.
Setup of the comment headers is required so that they are recognized properly.
Check the values of the following customizable variables:
-
vhdl-ext-time-stamp-enable
- Defaults to t
-
vhdl-ext-time-stamp-regex
- Defaults to
"^-- Last update: "
as generated byvhdl-template-header
- Defaults to
-
vhdl-ext-time-stamp-pattern
- If using a value different than the default for
vhdl-ext-time-stamp-regex
this one needs to be updated accordingly, e.g:(setq vhdl-ext-time-stamp-pattern (concat vhdl-ext-time-stamp-regex "%%$"))
- If using a value different than the default for
By default time-stamp
looks for the pattern in the first 8
lines. This can be changed by setting the local variables
vhdl-ext-time-stamp-start
and vhdl-ext-time-stamp-end
for custom
scenarios.