Add autoloads to debian-doc.el.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Fri, 19 Jul 2013 01:07:35 +0300
changeset 1060 53526ea61f74
parent 1059 40caf421b64d
child 1061 506ee5aebe22
Add autoloads to debian-doc.el.
Makefile
debian-doc.el
--- a/Makefile	Fri Jul 19 00:55:38 2013 +0300
+++ b/Makefile	Fri Jul 19 01:07:35 2013 +0300
@@ -59,7 +59,7 @@
 ################################################################
 # Proj dirs/files.
 
-FILES_MODE_EL := $(wildcard *-mode.el)
+EL_FILES := $(wildcard *-mode.el) debian-doc.el
 
 RST_FILES := $(wildcard *.rst)
 HTML_FILES := $(RST_FILES:.rst=.html)
@@ -79,7 +79,7 @@
 	cp .emacs-post $(HOME)/.emacs-post
 
 .PHONY: install
-install: .emacs .emacs-my .emacs-pre .emacs-post $(FILES_MODE_EL)
+install: .emacs .emacs-my .emacs-pre .emacs-post $(EL_FILES)
 	for file in .emacs-pre .emacs-post; do \
 		[ -f $(HOME)/$$file ] || cp $$file $(HOME)/$$file; \
 	done
@@ -89,7 +89,7 @@
 	cp all.SCORE $(HOME)/.gnus/scores
 	rm -f -r $(HOME)/.emacs.d/my-lisp
 	mkdir -p $(HOME)/.emacs.d/my-lisp
-	for file in $(FILES_MODE_EL); do \
+	for file in $(EL_FILES); do \
 		cp -f $$file $(HOME)/.emacs.d/my-lisp; \
 	done
 	$(EMACS) -Q --batch \
--- a/debian-doc.el	Fri Jul 19 00:55:38 2013 +0300
+++ b/debian-doc.el	Fri Jul 19 01:07:35 2013 +0300
@@ -27,6 +27,7 @@
 
 (defvar debian-doc-completion-list nil)
 
+;;;###autoload
 (defun debian-doc (&optional prefix)
   "Build Debian-Doc buffer.
 
@@ -52,6 +53,7 @@
     (debian-doc-mode)
     (beginning-of-buffer)))
 
+;;;###autoload
 (defun debian-doc-visit ()
   "Prompt for Debian package which represent docs and visit its entry in Debian-oc buffer."
   (interactive)