mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-13 21:33:05 +00:00
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:
parent
054390f5f6
commit
15c7f9fe39
@ -22,8 +22,11 @@
|
|||||||
(add-to-list 'load-path default-directory)
|
(add-to-list 'load-path default-directory)
|
||||||
(mapc #'byte-compile-file '("avy.el"))
|
(mapc #'byte-compile-file '("avy.el"))
|
||||||
(require 'avy)
|
(require 'avy)
|
||||||
|
(if (fboundp 'checkdoc-file)
|
||||||
|
(checkdoc-file "avy.el")
|
||||||
(require 'checkdoc)
|
(require 'checkdoc)
|
||||||
(with-current-buffer (find-file "avy.el")
|
(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-c j") 'avy-goto-char)
|
||||||
(global-set-key (kbd "C-'") 'avy-goto-char-2)
|
(global-set-key (kbd "C-'") 'avy-goto-char-2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user