-(require 'flymake)
-
-(defun display-error-message ()
-  (message (get-char-property (point) 'help-echo)))
-(defadvice flymake-goto-prev-error (after flymake-goto-prev-error-display-message)
-  (display-error-message))
-(defadvice flymake-goto-next-error (after flymake-goto-next-error-display-message)
-  (display-error-message))
-(ad-activate 'flymake-goto-prev-error 'flymake-goto-prev-error-display-message)
-(ad-activate 'flymake-goto-next-error 'flymake-goto-next-error-display-message)
-
-
-(setq flymake-gui-warnings-enabled nil)
-(global-set-key "\M-p" 'flymake-goto-prev-error)
-(global-set-key "\M-n" 'flymake-goto-next-error)
-
 (defun check-c-script-shebang ()
   (save-excursion
     (goto-char 1)

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

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


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

(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))
