diff --git a/Makefile b/Makefile index 974ffd8..a4c25ce 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,25 @@ -include lib/borg/borg.mk +help:: + $(info make codespell-dry = run codespell, dry run) + $(info make codespell-fix = run codespell, write fixes) + 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 + +codespell-dry: + @cd lib; codespell \ + --ignore-words ~/.emacs.d/etc/codespell/ignore-words \ + --exclude-file ~/.emacs.d/etc/codespell/ignore-lines \ + --skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \ + ~/.emacs.d/etc/codespell/ignore-files | tr "\\n" ",") + +codespell-fix: + @cd lib; codespell --write-changes \ + --ignore-words ~/.emacs.d/etc/codespell/ignore-words \ + --exclude-file ~/.emacs.d/etc/codespell/ignore-lines \ + --skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \ + ~/.emacs.d/etc/codespell/ignore-files | tr "\\n" ",") diff --git a/early-init.el b/early-init.el index 06edd7c..14f24aa 100644 --- a/early-init.el +++ b/early-init.el @@ -1,5 +1,14 @@ ;;; early-init.el --- earliest birds -*- lexical-binding: t -*- +(setq load-prefer-newer t) + +(let ((dir (file-name-directory (or load-file-name buffer-file-name)))) + (add-to-list 'load-path (expand-file-name "lib/packed" dir)) + (add-to-list 'load-path (expand-file-name "lib/auto-compile" dir))) +(require 'auto-compile) +(auto-compile-on-load-mode) +(auto-compile-on-save-mode) + (setq package-enable-at-startup nil) (with-eval-after-load 'package diff --git a/etc/codespell/ignore-files b/etc/codespell/ignore-files new file mode 100644 index 0000000..205af93 --- /dev/null +++ b/etc/codespell/ignore-files @@ -0,0 +1,23 @@ +*.a +*.bin +*.elc +*.epub +*.gif +*.gz +*.ico +*.jar +*.jpg +*.o +*.out +*.pdf +*.png +*.so +*.so* + +.cask +ert.el + +./emacsql/sqlite +./libgit/libgit2 +./magit/Documentation/AUTHORS.md +./magit/Documentation/BACKERS.md diff --git a/etc/codespell/ignore-lines b/etc/codespell/ignore-lines new file mode 100644 index 0000000..9d7aead --- /dev/null +++ b/etc/codespell/ignore-lines @@ -0,0 +1,11 @@ +# emacsql + INOUT INSENSITIVE INSERT INT INT1 INT2 INT3 INT4 INT8 INTEGER +# magit + (let ((fro (or magit-git-output-coding-system + (cons (coding-system-change-eol-conversion fro 'unix) + (cons fro to)))) + (?c "[c]ommit" 'magit-ediff-show-commit) + (?s "[s]tage" 'magit-ediff-stage) + 1 Li-Yun Chang +# treepy + (and (mapp node) diff --git a/etc/codespell/ignore-words b/etc/codespell/ignore-words new file mode 100644 index 0000000..f2636ae --- /dev/null +++ b/etc/codespell/ignore-words @@ -0,0 +1,12 @@ +# technical terms +commitish +dependant + +# software and abbreviations +clos + +# symbols +hist +nd +pullrequest +pullrequests diff --git a/init.el b/init.el index 8ec83f6..0462ae6 100644 --- a/init.el +++ b/init.el @@ -18,7 +18,6 @@ (setq inhibit-startup-echo-area-message "locutus") (setq initial-buffer-choice t) (setq initial-scratch-message "") - (setq load-prefer-newer t) (scroll-bar-mode 0) (tool-bar-mode 0) (menu-bar-mode 0)) @@ -33,10 +32,7 @@ (setq use-package-verbose t)) (use-package auto-compile - :demand t :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) @@ -146,7 +142,6 @@ :defer t :config (when (>= emacs-major-version 27) - (set-face-attribute 'smerge-refined-changed nil :extend t) (set-face-attribute 'smerge-refined-removed nil :extend t) (set-face-attribute 'smerge-refined-added nil :extend t))) diff --git a/lib/borg b/lib/borg index 3cfb35f..f6a2e0c 160000 --- a/lib/borg +++ b/lib/borg @@ -1 +1 @@ -Subproject commit 3cfb35f5c54a76f200272ed11b4a39f11a57552c +Subproject commit f6a2e0cb8c3db5840c717114caba93793f2e9661 diff --git a/lib/closql b/lib/closql index 1e78f96..e1e5609 160000 --- a/lib/closql +++ b/lib/closql @@ -1 +1 @@ -Subproject commit 1e78f96dc976badb59067c986f7766cce89405cc +Subproject commit e1e5609c1a1c6ca5f93b2265bd29bba597c52f9b diff --git a/lib/dash b/lib/dash index 721436b..fe9bbc2 160000 --- a/lib/dash +++ b/lib/dash @@ -1 +1 @@ -Subproject commit 721436b04da4e2795387cb48a98ac6de37ece0fd +Subproject commit fe9bbc2414af645d255de68cd59cf0edd5d8548b diff --git a/lib/diff-hl b/lib/diff-hl index 2cf8b48..ab2f4f0 160000 --- a/lib/diff-hl +++ b/lib/diff-hl @@ -1 +1 @@ -Subproject commit 2cf8b489f3b71c869a5626a5eb41f36495bdfd61 +Subproject commit ab2f4f0db9b0c3484db837252ce2dc75f4696b1d diff --git a/lib/epkg b/lib/epkg index edf8c00..a79bd5b 160000 --- a/lib/epkg +++ b/lib/epkg @@ -1 +1 @@ -Subproject commit edf8c009066360af61caedf67a2482eaa19481b0 +Subproject commit a79bd5b888415b960a45005d44e980c1aa1ceb91 diff --git a/lib/ghub b/lib/ghub index a8bf337..206f2b5 160000 --- a/lib/ghub +++ b/lib/ghub @@ -1 +1 @@ -Subproject commit a8bf337534ec583906db77a3d56f7d1b84bda952 +Subproject commit 206f2b5b2ab622efda8da85feaa3bc2a1e0f3da3 diff --git a/lib/libgit b/lib/libgit index 6c3b892..0ef8b13 160000 --- a/lib/libgit +++ b/lib/libgit @@ -1 +1 @@ -Subproject commit 6c3b89276a149b2d009882f756a9edf866671f05 +Subproject commit 0ef8b13aef011a98b7da756e4f1ce3bb18e4d55a diff --git a/lib/magit b/lib/magit index 68b5a13..afe8bee 160000 --- a/lib/magit +++ b/lib/magit @@ -1 +1 @@ -Subproject commit 68b5a13fa1b6b122d4a2547b8c415aadff83d8ca +Subproject commit afe8bee55c56d81c897109c9a87c0e218ed39710 diff --git a/lib/transient b/lib/transient index a269614..a6e4cce 160000 --- a/lib/transient +++ b/lib/transient @@ -1 +1 @@ -Subproject commit a269614c69ad8b2703e6e5093d0017d6afad6cca +Subproject commit a6e4cced303b3febd59412b24a97eaf1e855e6d7 diff --git a/lib/use-package b/lib/use-package index 42db6b3..d2640fe 160000 --- a/lib/use-package +++ b/lib/use-package @@ -1 +1 @@ -Subproject commit 42db6b3d90ee57d0f5947d3b0bf4b0010bdf7b40 +Subproject commit d2640fec376a8458a669e7526e63e5870d875118 diff --git a/lib/with-editor b/lib/with-editor index 4fe66d4..7ec873b 160000 --- a/lib/with-editor +++ b/lib/with-editor @@ -1 +1 @@ -Subproject commit 4fe66d4d55c8eacebda53a13cc38e01d32bdaaa2 +Subproject commit 7ec873bd569ce9cbec15722674f4057a35075d95