(req-package insert-shebang
  :init
  (setq insert-shebang-file-types
         '(("py" . "python")
           ("sh" . "bash")
           ("pl" . "perl")
           ("rb" . "ruby")))
  :config
  (add-hook 'find-file-hook 'insert-shebang))

(req-package insert-shebang
  :init
  (setq insert-shebang-file-types
         '(("py" . "python")
           ("sh" . "bash")
           ("pl" . "perl")
           ("rb" . "ruby")))
  (setq insert-shebang-track-ignored-filename nil)
  :config
  (add-to-list 'find-file-not-found-functions 'insert-shebang))

Insert shebang on new file only
Insert shebang on new file only

linc01n/.emacs.d,linc01n/.emacs.d