Skip to content

Commit

Permalink
add php-cs-fixer to before-save-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
cnsunyour committed Aug 1, 2021
1 parent c41b111 commit d59d3f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.el
Expand Up @@ -74,8 +74,10 @@
;; Execute `garbage-collect' when emacs is idle for a specified time.
;; (run-with-idle-timer 300 t #'garbage-collect)

;; execute php-cs-fixer before save .php file
;; cleanup trailing whitespaces before save buffers.
(add-hook! before-save
#'php-cs-fixer-before-save
#'delete-trailing-whitespace
#'whitespace-cleanup)

Expand Down

0 comments on commit d59d3f0

Please sign in to comment.