summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-09-08 15:30:23 +0200
committerGravatar Tom Willemsen2011-09-08 15:30:29 +0200
commit6e45e53b2103e89ac0c6324a5bf556fe4103ae9a (patch)
tree9f17e542380de4f2e248880560f8df88b7dd1d4d /.emacs.d
parentb90c7ddf6896880e87d28ee63cddb2c2a708ba4b (diff)
downloaddotfiles-6e45e53b2103e89ac0c6324a5bf556fe4103ae9a.tar.gz
dotfiles-6e45e53b2103e89ac0c6324a5bf556fe4103ae9a.zip
EMACS: Oops, PHP mode already has flymake settings
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el19
1 files changed, 0 insertions, 19 deletions
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)