(setq load-path (cons "~/lib/emacs" load-path))
-(autoload 'cc-mode "cc-mode" nil t)
-(autoload 'rexx-mode "rexx-mode" nil t)
-(autoload 'cvs-update "pcl-cvs" nil t)
-(autoload 'debian-changelog-mode "debian-changelog-mode" nil t)
+(maybe-autoload 'cc-mode "cc-mode" nil t)
+(maybe-autoload 'rexx-mode "rexx-mode" nil t)
+(maybe-autoload 'cvs-update "pcl-cvs" nil t)
+(maybe-autoload 'debian-changelog-mode "debian-changelog-mode" nil t)
+(maybe-autoload 'git-status "git" nil t)
+(and (library-exists-p "vc-git")
+ (not (memq 'GIT vc-handled-backends))
+ (setq vc-handled-backends (append vc-handled-backends (list 'GIT))))
+(and (library-exists-p "quilt")
+ (load "quilt"))
(trap
(or (fboundp 'make-regexp)
"svk-commit[^/.]*\\.tmp" "\\|"
"gitci\\.[^/.]*" "\\|"
"cvs[^/.]\\{6\\}" "\\|"
+ "quilt_header\.[^/.]\\{6\\}"
"\\)$")
. text-mode)
("\\.calc?$" . apcalc-mode)
fi
echo "Installing Emacs packages..."
-for elib in make-regexp; do
+emacspkg="
+ make-regexp
+ git vc-git
+ quilt"
+for elib in $emacspkg; do
$echon " $elib:$echoc"
if $false $emacs >/dev/null 2>&1 --no-site-file --batch --eval '
(setq load-path (nconc load-path (list "~/lib/emacs")))