emacs: Use GIT and Quilt add-ons.
[profile] / emacs
diff --git a/emacs b/emacs
index 28b3334..9c10d0a 100644 (file)
--- a/emacs
+++ b/emacs
 
 (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)