diff --git a/init.d/programming/common.el b/init.d/programming/common.el index 0a8d39a..1eb1088 100644 --- a/init.d/programming/common.el +++ b/init.d/programming/common.el @@ -1,6 +1,6 @@ ;;; common.el --- Common programming settings. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-01-28T03:25:54+0100> +;; Time-stamp: <2020-01-28T03:31:38+0100> ;;; Commentary: @@ -27,17 +27,6 @@ ;; Switch between header and implementation. ("C-:" . ff-find-other-file) ) -(use-package copyright - :config - (defun my/maybe-copyright-update () - "Update existing copyright notice to indicate the current -year if mode is derived from prog-mode." - (if (derived-mode-p 'prog-mode) - (copyright-update))) - - :hook - (before-save . my/maybe-copyright-update) - ) ;; Guess indentation and if spaces or tabs are to be used. (use-package dtrt-indent @@ -265,5 +254,17 @@ year if mode is derived from prog-mode." ) ) +(use-package copyright + :config + (defun my/maybe-copyright-update () + "Update existing copyright notice to indicate the current +year if mode is derived from prog-mode." + (if (derived-mode-p 'prog-mode) + (copyright-update))) + + :hook + (before-save . my/maybe-copyright-update) + ) + (provide 'programming/common) ;;; common.el ends here