branch: elpa/rubocop commit 1ffa08b7054346f62cb06c434bd1d02c5ea26f05 Author: Bozhidar Batsov <bozhi...@tradeo.com> Commit: Bozhidar Batsov <bozhi...@tradeo.com>
Add a few autoloads --- rubocop.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rubocop.el b/rubocop.el index fca4ffb..7a23cc4 100644 --- a/rubocop.el +++ b/rubocop.el @@ -62,11 +62,13 @@ The current directory is assumed to be the project's root otherwise." "Generate a name for the RuboCop buffer from FILE-OR-DIR." (concat "*RuboCop " file-or-dir "*")) +;;;###autoload (defun rubocop-run-on-project () "Run on current project." (interactive) (rubocop-run-on-directory (rubocop-project-root))) +;;;###autoload (defun rubocop-run-on-directory (&optional directory) "Run on DIRECTORY if present. Alternatively prompt user for directory." @@ -80,6 +82,7 @@ Alternatively prompt user for directory." 'compilation-mode (lambda (arg) (message arg) (rubocop-buffer-name directory))))) +;;;###autoload (defun rubocop-run-on-current-file () "Run on current file." (interactive)