Skip to content

Commit

Permalink
targets/avy-init.el: Use the new checkdoc-file
Browse files Browse the repository at this point in the history
* targets/avy-init.el (checkdoc-file): This function is now available in
  trunk Emacs.
  • Loading branch information
abo-abo committed Jun 8, 2015
1 parent 054390f commit 15c7f9f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions targets/avy-init.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
(add-to-list 'load-path default-directory)
(mapc #'byte-compile-file '("avy.el"))
(require 'avy)
(require 'checkdoc)
(with-current-buffer (find-file "avy.el")
(checkdoc-current-buffer t))
(if (fboundp 'checkdoc-file)
(checkdoc-file "avy.el")
(require 'checkdoc)
(with-current-buffer (find-file "avy.el")
(checkdoc-current-buffer t)))

(global-set-key (kbd "C-c j") 'avy-goto-char)
(global-set-key (kbd "C-'") 'avy-goto-char-2)

0 comments on commit 15c7f9f

Please sign in to comment.