Created
September 11, 2014 03:27
-
-
Save shouhei/9005edbfa66470a3a592 to your computer and use it in GitHub Desktop.
PHP CS fixerをemacsから使うための関数
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun php-cs-fixer () | |
(interactive) | |
(setq filename (buffer-file-name (current-buffer))) | |
(call-process "php-cs-fixer" nil nil nil "fix" filename ) | |
(revert-buffer t t) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment