Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created August 22, 2013 06:29
Show Gist options
  • Select an option

  • Save iorionda/6303840 to your computer and use it in GitHub Desktop.

Select an option

Save iorionda/6303840 to your computer and use it in GitHub Desktop.
(when (executable-find "rubocop")
(defun rubocop-after-save-hook()
(shell-command
(format
"/usr/local/var/rbenv/shims/rubocop %s"
(buffer-name(current-buffer))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment