]> code.delx.au - gnu-emacs/blobdiff - lisp/autoinsert.el
(dired-insert-directory): If file-system-info fails,
[gnu-emacs] / lisp / autoinsert.el
index 9ba77ad9cb4b283d08317e95d7fcad309876c85c..ae6e986309782de4db03c78372a128ba5a3b71de 100644 (file)
@@ -118,7 +118,7 @@ If this contains a %s, that will be replaced by the matching rule."
     (latex-mode
      ;; should try to offer completing read for these
      "options, RET: "
-     "\\documentstyle[" str & ?\] | -1
+     "\\documentclass[" str & ?\] | -1
      ?{ (read-string "class: ") "}\n"
      ("package, %s: "
       "\\usepackage[" (read-string "options, RET: ") & ?\] | -1 ?{ str "}\n")
@@ -136,7 +136,7 @@ If this contains a %s, that will be replaced by the matching rule."
      "Short description: "
      ";;; " (file-name-nondirectory (buffer-file-name)) " --- " str "
 
-;; Copyright (C) " (substring (current-time-string) -4) " "
+;; Copyright (C) " (substring (current-time-string) -4) "  "
  (getenv "ORGANIZATION") | "Free Software Foundation, Inc." "
 
 ;; Author: " (user-full-name)
@@ -178,7 +178,10 @@ If this contains a %s, that will be replaced by the matching rule."
 
 
 
-;;; " (file-name-nondirectory (buffer-file-name)) " ends here"))
+\(provide '"
+       (file-name-sans-extension (file-name-nondirectory (buffer-file-name)))
+       ")
+;;; " (file-name-nondirectory (buffer-file-name)) " ends here\n"))
   "A list specifying text to insert by default into a new file.
 Elements look like (CONDITION . ACTION) or ((CONDITION . DESCRIPTION) . ACTION).
 CONDITION maybe a regexp that must match the new file's name, or it may be
@@ -289,7 +292,7 @@ Returns the new status of Auto-insert mode (non-nil means on).
 
 When Auto-insert mode is enabled, when new files are created you can
 insert a template for the file depending on the mode of the buffer."
-  nil nil nil :global t :group 'auto-insert
+  :global t :group 'auto-insert
   (if auto-insert-mode
       (add-hook 'find-file-hooks 'auto-insert)
     (remove-hook 'find-file-hooks 'auto-insert)))