   (remove-hook 'after-save-hook 'build-in-buffer)
   )
 
-;; php coding standards fixer
-(defun php-cs-fix ()
-  (interactive)
-  (progn (shell-command (concat "phpcbf " (buffer-file-name)))
-         (revert-buffer nil t)))
-
 ;; zip/unzip files in dired mode
 (eval-after-load "dired-aux"
    '(add-to-list 'dired-compress-file-suffixes

    yasnippet)
  "A list of packages to ensure are installed at launch.")

(defun default-packages-installed-p ()
  (loop for p in default-packages
        when (not (package-installed-p p)) do (return nil)
        finally (return t)))

(unless (default-packages-installed-p)
  ;; check for new packages (package versions)
  (message "%s" "Emacs is now refreshing its package database...")
  (package-refresh-contents)
  (message "%s" " done.")
  ;; install the missing packages
  (dolist (p default-packages)
    (when (not (package-installed-p p))
      (package-install p))))


;;;;;;;;;;;;;;;;;;;

    flymake-easy
    flymake-jshint
    flymake-jslint
    flymake-ruby
    go-mode
    js2-mode
