branch: externals/auto-header
commit 4cd6c76318c4576be8940c3d7b8bec4bea0e1aeb
Author: Philip Kaludercic <[email protected]>
Commit: Philip Kaludercic <[email protected]>

    Add auto-header-insert command
---
 auto-header.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/auto-header.el b/auto-header.el
index 9ba140da79..24add178ca 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.10 2022/05/15 18:19:29 oj14ozun Exp 
oj14ozun $
+;; Version: $Id: auto-header.el,v 1.11 2022/05/16 08:32:02 oj14ozun Exp 
oj14ozun $
 ;; URL: https://wwwcip.cs.fau.de/~oj14ozun/src+etc/auto-header.el
 ;; Package-Version: 1
 ;; Keywords: c
@@ -99,6 +99,11 @@
         (delete-blank-lines))
       (newline))))
 
+(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.

Reply via email to