Date: Sun, 4 Jan 1998 19:47:58 -0600 (CST) From: Joel Ray Holveck <joelh@gnu.org> To: freebsd-hackers@FreeBSD.ORG Subject: Emacs copyright update abilities Message-ID: <199801050147.TAA01486@detlev.UUCP>
next in thread | raw e-mail | index | archive | help
Just a New Year's reminder to all those who use Emacs... If you want to have Emacs remind you when a file's copyright (if it exists) is out of date, you can include: (add-hook 'write-file-hooks 'copyright-update) (setq copyright-query t) in your .emacs file. This will cause Emacs to search the top 2000 characters for a copyright notice (including the TeX @copyright{}, octal 251, and I believe the troff copyright char), and if found, ensure that the current year is listed, and prompt you for permission to update it if necessary. This occurs on the first save of any file. This works on at least recent (last 8 months) GNU Emacs 19 releases and all GNU Emacs 20 releases. Happy hacking, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801050147.TAA01486>