 (add-to-list 'interpreter-mode-alist
              '("c-script" . c++-mode))
 
+(require 'flymake)
 (defun flymake-c-script-init ()
   (let* ((temp-file  (flymake-init-create-temp-buffer-copy
 		      'flymake-create-temp-inplace))

    (list "c-script" (list "-syntax" local-file))))

(push '("\\.cpp$" flymake-c-script-init) flymake-allowed-file-name-masks)


(add-hook 'c++-mode-hook '(lambda ()

(defun check-c-script-shebang ()
  (save-excursion
    (goto-char 1)
