Add Borg and assimilate auto-compile and use-package
authorAmin Bandali <bandali@gnu.org>
Sun, 12 Apr 2020 16:25:06 +0000 (12:25 -0400)
committerAmin Bandali <bandali@gnu.org>
Sun, 12 Apr 2020 17:13:49 +0000 (13:13 -0400)
.gitmodules [new file with mode: 0644]
Makefile [new file with mode: 0644]
init.el
lib/auto-compile [new submodule]
lib/borg [new submodule]
lib/packed [new submodule]
lib/use-package [new submodule]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..61b63fa
--- /dev/null
@@ -0,0 +1,12 @@
+[submodule "auto-compile"]
+       path = lib/auto-compile
+       url = https://github.com/emacscollective/auto-compile.git
+[submodule "borg"]
+       path = lib/borg
+       url = https://github.com/emacscollective/borg.git
+[submodule "packed"]
+       path = lib/packed
+       url = https://github.com/emacscollective/packed.git
+[submodule "use-package"]
+       path = lib/use-package
+       url = https://github.com/jwiegley/use-package.git
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..c36f3ba
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+-include lib/borg/borg.mk
+
+bootstrap-borg:
+       @git submodule--helper clone --name borg --path lib/borg \
+       --url git@github.com:emacscollective/borg.git
+       @cd lib/borg; git symbolic-ref HEAD refs/heads/master
+       @cd lib/borg; git reset --hard HEAD
+
+i: build-init
diff --git a/init.el b/init.el
index ec5c9ab..22b7b68 100644 (file)
--- a/init.el
+++ b/init.el
 ;; for emacs 27 and later, we use early-init.el.  see
 ;; https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24acb31c04b4048b85311d794e600ecd7ce60d3b
 
 ;; for emacs 27 and later, we use early-init.el.  see
 ;; https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=24acb31c04b4048b85311d794e600ecd7ce60d3b
 
+(progn ;   `borg'
+  (add-to-list 'load-path
+               (expand-file-name "lib/borg" user-emacs-directory))
+  (require 'borg)
+  (borg-initialize)
+  (setq borg-rewrite-urls-alist
+        '(("git@github.com:" . "https://github.com/")
+          ("git@gitlab.com:" . "https://gitlab.com/"))))
 
 ;; use-package
 (if nil                             ; set to t when need to debug init
 
 ;; use-package
 (if nil                             ; set to t when need to debug init
   (defalias 'b/etc 'no-littering-expand-etc-file-name)
   (defalias 'b/var 'no-littering-expand-var-file-name))
 
   (defalias 'b/etc 'no-littering-expand-etc-file-name)
   (defalias 'b/var 'no-littering-expand-var-file-name))
 
+(use-package auto-compile
+  :demand
+  :config
+  (auto-compile-on-load-mode)
+  (auto-compile-on-save-mode)
+  (setq auto-compile-display-buffer               nil)
+  (setq auto-compile-mode-line-counter            t)
+  (setq auto-compile-source-recreate-deletes-dest t)
+  (setq auto-compile-toggle-deletes-nonlib-dest   t)
+  (setq auto-compile-update-autoloads             t))
+
 ;; separate custom file (don't want it mixing with init.el)
 (use-package custom
   :no-require
 ;; separate custom file (don't want it mixing with init.el)
 (use-package custom
   :no-require
diff --git a/lib/auto-compile b/lib/auto-compile
new file mode 160000 (submodule)
index 0000000..3e92c5b
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 3e92c5b1a94b0cf43f2d624180a1cb01df92afd8
diff --git a/lib/borg b/lib/borg
new file mode 160000 (submodule)
index 0000000..3cfb35f
--- /dev/null
+++ b/lib/borg
@@ -0,0 +1 @@
+Subproject commit 3cfb35f5c54a76f200272ed11b4a39f11a57552c
diff --git a/lib/packed b/lib/packed
new file mode 160000 (submodule)
index 0000000..c41c3df
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit c41c3dfda86ae33832ffc146923e2a4675cbacfa
diff --git a/lib/use-package b/lib/use-package
new file mode 160000 (submodule)
index 0000000..c873d55
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit c873d5529c9c80cb58222f22873a4f081c307cb2