branch: externals/auto-header
commit a77ba1fed731bc550d7a4ecdc6ad4fb58abb01fb
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>
Readd auto-header-insert
---
auto-header.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/auto-header.el b/auto-header.el
index c6e9fa00cd..1ed5dbb39c 100644
--- a/auto-header.el
+++ b/auto-header.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2022 Philip Kaludercic
;; Author: Philip Kaludercic <[email protected]>
-;; Version: $Id: auto-header.el,v 1.11 2022/05/16 08:32:02 oj14ozun Exp $
+;; Version: $Id: auto-header.el,v 1.15 2022/06/13 18:34:32 oj14ozun Exp
oj14ozun $
;; URL: https://wwwcip.cs.fau.de/~oj14ozun/src+etc/auto-header.el
;; Package-Version: 1
;; Keywords: c
@@ -104,6 +104,11 @@
(newline))
(delete-blank-lines)))))
+(defun auto-header-insert (header)
+ "Add HEADER to the top of the file."
+ (interactive "MAdd header: ")
+ (auto-header--insert-headers (list header)))
+
;;;###autoload
(defun auto-header-at-point (name)
"Insert headers for NAME.