From 6e45e53b2103e89ac0c6324a5bf556fe4103ae9a Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Thu, 8 Sep 2011 15:30:23 +0200 Subject: EMACS: Oops, PHP mode already has flymake settings --- .emacs.d/init.el | 19 ------------------- 1 file changed, 19 deletions(-) (limited to '.emacs.d') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 72dac28..45effaa 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -158,25 +158,6 @@ (add-hook 'c-mode-common-hook 'oni/c-mode-common-hook) (add-hook 'c-mode-hook 'oni/c-mode-hook) -;;; Flymake -(require 'flymake) - -(defun flymake-php-init () - "Use php to check the syntax of the current file." - (let* ((temp (flymake-init-create-temp-buffer-copy - 'flymake-create-temp-inplace)) - (local (file-relative-name temp (file-name-directory - buffer-file-name)))) - (list "php" (list "-f" local "-l")))) - -(add-to-list - 'flymake-err-line-patterns - '("\\(Parse\\|Fatal\\) error: +\\(.*?\\) in \\(.*?\\) on line \\([0-9]+\\)$" - 3 4 nil 2)) - -(add-to-list 'flymake-allowed-file-name-masks - '("\\.php$" flymake-php-init)) - ;;; PHP mode (defun oni/php-show-outline () (interactive) -- cgit v1.2.3-54-g00ecf