targets/avy-init.el: Use the new checkdoc-file

* targets/avy-init.el (checkdoc-file): This function is now available in
  trunk Emacs.
This commit is contained in:
Oleh Krehel 2015-06-08 13:05:38 +02:00
parent 054390f5f6
commit 15c7f9fe39

View File

@ -22,8 +22,11 @@
(add-to-list 'load-path default-directory)
(mapc #'byte-compile-file '("avy.el"))
(require 'avy)
(if (fboundp 'checkdoc-file)
(checkdoc-file "avy.el")
(require 'checkdoc)
(with-current-buffer (find-file "avy.el")
(checkdoc-current-buffer t))
(checkdoc-current-buffer t)))
(global-set-key (kbd "C-c j") 'avy-goto-char)
(global-set-key (kbd "C-'") 'avy-goto-char-2)