On foo.el below M-x checkdoc inserts ";;; Code" as ;;;###autoload ;;; Code: (defun foo () where I hoped it would be before the cookie like say ;;; Code: ;;;###autoload (defun foo () generate-file-autoloads etc is happy with either, but the latter reads better for humans. I struck this in one of my own .el files which had an autoload cookie on the first func. Incidentally, I see the `cont' loop puts ";;; Code" after any initial `require' forms. Is that actually usual, or usual any more? I think I've only ever seen `require's after ";;; Code". 2009-10-01 Kevin Ryde * emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): When inserting ";;; Code" put it before any ";;;###autoload" cookie on the first form. And insert a blank line after ";;; Code" since that's usual style.