branch: master commit 15c7f9fe3909707f1c818c251460e4c70eb06d9c Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
targets/avy-init.el: Use the new checkdoc-file * targets/avy-init.el (checkdoc-file): This function is now available in trunk Emacs. --- targets/avy-init.el | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/targets/avy-init.el b/targets/avy-init.el index 21dd0ab..9ce46bb 100644 --- a/targets/avy-init.el +++ b/targets/avy-init.el @@ -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)