summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-12 12:25:06 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-12 13:13:49 -0400
commit032726b6100f17208cf1ad7497013f22b5ed8c91 (patch)
tree363be1d3855cf977b95f53e75b752cf83bf21497 /init.el
parent8a2e0eef13e7e37e52b4fb7488d5fe4786389f72 (diff)
downloadconfigs-032726b6100f17208cf1ad7497013f22b5ed8c91.tar.gz
configs-032726b6100f17208cf1ad7497013f22b5ed8c91.tar.xz
configs-032726b6100f17208cf1ad7497013f22b5ed8c91.zip
Add Borg and assimilate auto-compile and use-package
Diffstat (limited to '')
-rw-r--r--init.el19
1 files changed, 19 insertions, 0 deletions
diff --git a/init.el b/init.el
index ec5c9ab..22b7b68 100644
--- a/init.el
+++ b/init.el
@@ -112,6 +112,14 @@
;; 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
@@ -140,6 +148,17 @@
(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