Emacs: Only ask to update copyright if my/reformat-save is t.
This commit is contained in:
parent
56d52c554c
commit
d0d079e0e4
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-10-14T21:42:02+0200>
|
;; Time-stamp: <2020-10-27T12:09:21+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -238,7 +238,7 @@ collapse other projects."
|
||||||
:config (defun my/maybe-copyright-update ()
|
:config (defun my/maybe-copyright-update ()
|
||||||
"Update existing copyright notice to indicate the current
|
"Update existing copyright notice to indicate the current
|
||||||
year if mode is derived from prog-mode."
|
year if mode is derived from prog-mode."
|
||||||
(if (derived-mode-p 'prog-mode)
|
(if (and my/reformat-save (derived-mode-p 'prog-mode))
|
||||||
(copyright-update)))
|
(copyright-update)))
|
||||||
:hook (before-save . my/maybe-copyright-update))
|
:hook (before-save . my/maybe-copyright-update))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user