From 032726b6100f17208cf1ad7497013f22b5ed8c91 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Sun, 12 Apr 2020 12:25:06 -0400 Subject: Add Borg and assimilate auto-compile and use-package --- init.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'init.el') 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 -- cgit v1.2.3-60-g2f50