Skip to content

Instantly share code, notes, and snippets.

@shouhei
Created September 11, 2014 03:27
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shouhei/9005edbfa66470a3a592 to your computer and use it in GitHub Desktop.
Save shouhei/9005edbfa66470a3a592 to your computer and use it in GitHub Desktop.
PHP CS fixerをemacsから使うための関数
(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