summaryrefslogtreecommitdiffstats
path: root/debian/git-el.emacsen-startup
diff options
context:
space:
mode:
Diffstat (limited to 'debian/git-el.emacsen-startup')
-rw-r--r--debian/git-el.emacsen-startup32
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/git-el.emacsen-startup b/debian/git-el.emacsen-startup
new file mode 100644
index 0000000..a32a841
--- /dev/null
+++ b/debian/git-el.emacsen-startup
@@ -0,0 +1,32 @@
+;; -*-emacs-lisp-*-
+;;
+;; Emacs startup file, e.g. /etc/emacs/site-start.d/50git-core.el
+;; for the Debian git package
+
+
+(let ((dir (concat "/usr/share/"
+ (symbol-name debian-emacs-flavor)
+ "/site-lisp/git")))
+ (if (not (file-exists-p dir))
+ (message "git removed but not purged, skipping setup")
+
+ ;; debian-pkg-add-load-path-item as from debian 3.1 "sarge",
+ ;; emacsen-common 1.4.14 of June 2002
+ (debian-pkg-add-load-path-item dir)
+
+ ;; Compatibility note: In debian git-core 1:1.7.0-1 there was a long
+ ;; list of generated autoloads here, but now pruned back to the
+ ;; interactive entrypoints. If you were using those autoloads in elisp
+ ;; code, don't do that, use (require 'git) to express the dependency.
+
+ ;; git.el
+
+ (autoload 'git-status "git" "Entry point into git-status mode." t)
+
+ ;; git-blame.el
+
+ ;; this autoload as recommended by git-blame.el comments
+ (autoload 'git-blame-mode "git-blame"
+ "Minor mode for incremental blame for Git." t)))
+
+;; End of file