From 888312b28fff28ba92b585160536c0428d1bba1a Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:26:19 +0100 Subject: [PATCH 1/9] Update 11 drones Update auto-compile to 1.6.1 Update borg to v3.1.2-56-g5de2a7a Update dash to 2.17.0-110-ge0254c5 Update diff-hl to 1.8.8-10-g3394d85 Update epkg to v3.2.2-32-g94c8389 Update ghub to v3.5.1 Update magit to v2.90.1-1159-g8e23c49b5 Update packed to 3.0.2 Update transient to v0.2.0-76-g8ad5fb83 Update use-package to 2.4.1-5-g365c73d Update with-editor to v3.0.2-2-gb439749 --- lib/auto-compile | 2 +- lib/borg | 2 +- lib/dash | 2 +- lib/diff-hl | 2 +- lib/epkg | 2 +- lib/ghub | 2 +- lib/magit | 2 +- lib/packed | 2 +- lib/transient | 2 +- lib/use-package | 2 +- lib/with-editor | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/auto-compile b/lib/auto-compile index 3e92c5b..f8619d1 160000 --- a/lib/auto-compile +++ b/lib/auto-compile @@ -1 +1 @@ -Subproject commit 3e92c5b1a94b0cf43f2d624180a1cb01df92afd8 +Subproject commit f8619d1616b523918323914ec77bfbee2c559781 diff --git a/lib/borg b/lib/borg index 1fe1d2b..5de2a7a 160000 --- a/lib/borg +++ b/lib/borg @@ -1 +1 @@ -Subproject commit 1fe1d2b7a574dd560740a55d87d9a5fb3a989dbc +Subproject commit 5de2a7aa0c126f5b18506e187bca66079e68f51d diff --git a/lib/dash b/lib/dash index b92ab5a..e0254c5 160000 --- a/lib/dash +++ b/lib/dash @@ -1 +1 @@ -Subproject commit b92ab5a39b987e4fe69317b9d9fda452300baf20 +Subproject commit e0254c56e78b82f670e2d92ad7077c6cc96db1cf diff --git a/lib/diff-hl b/lib/diff-hl index 2281a89..3394d85 160000 --- a/lib/diff-hl +++ b/lib/diff-hl @@ -1 +1 @@ -Subproject commit 2281a89a3ddc6616073da6f190dda08d23b18ba6 +Subproject commit 3394d8536c315e9bf553d0ee0bdd5afa6c4aa6ff diff --git a/lib/epkg b/lib/epkg index ac6e85e..94c8389 160000 --- a/lib/epkg +++ b/lib/epkg @@ -1 +1 @@ -Subproject commit ac6e85e11f0e071911279f3f0a4ea7bff35b68cf +Subproject commit 94c8389a8b660a68ae7e5458583b06b30ba0edb9 diff --git a/lib/ghub b/lib/ghub index ca6b115..5fae5e3 160000 --- a/lib/ghub +++ b/lib/ghub @@ -1 +1 @@ -Subproject commit ca6b115c46d8ab12ae76037d4dadfc92a62a9904 +Subproject commit 5fae5e31586a11a2025168030e0eb3876502611c diff --git a/lib/magit b/lib/magit index b51c6e6..8e23c49 160000 --- a/lib/magit +++ b/lib/magit @@ -1 +1 @@ -Subproject commit b51c6e6cce16f9dfe723dac4d410eb40c0921e95 +Subproject commit 8e23c49b5a739284ffa87c489759ff7787c36ae0 diff --git a/lib/packed b/lib/packed index c41c3df..3b96ded 160000 --- a/lib/packed +++ b/lib/packed @@ -1 +1 @@ -Subproject commit c41c3dfda86ae33832ffc146923e2a4675cbacfa +Subproject commit 3b96dedb404f614479c1b321fac3e4bf11ba0782 diff --git a/lib/transient b/lib/transient index f5d81ef..8ad5fb8 160000 --- a/lib/transient +++ b/lib/transient @@ -1 +1 @@ -Subproject commit f5d81ef0ed24be935f3c0192b746a1738d903d37 +Subproject commit 8ad5fb83c458801816fc2f888c43f6baf74b5803 diff --git a/lib/use-package b/lib/use-package index 4fb1f9a..365c73d 160000 --- a/lib/use-package +++ b/lib/use-package @@ -1 +1 @@ -Subproject commit 4fb1f9a68f1e7e7d614652afc017a6652fd029f1 +Subproject commit 365c73d2618dd0040a32c2601c5456ab5495b812 diff --git a/lib/with-editor b/lib/with-editor index efafd48..b439749 160000 --- a/lib/with-editor +++ b/lib/with-editor @@ -1 +1 @@ -Subproject commit efafd482c21b90decbb0b682ed3159c86014d4f3 +Subproject commit b439749da110af83aea40e79dd2a8c57427bc28a From 9720257470c37c223d47f88a58c04b1eb347826a Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:29:57 +0100 Subject: [PATCH 2/9] Remove ghub To be re-assimilated in the "magit-directors-cut" branch. --- .gitmodules | 3 --- lib/ghub | 1 - 2 files changed, 4 deletions(-) delete mode 160000 lib/ghub diff --git a/.gitmodules b/.gitmodules index 76dd747..f0bde1c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -24,9 +24,6 @@ [submodule "epkg"] path = lib/epkg url = git@github.com:emacscollective/epkg.git -[submodule "ghub"] - path = lib/ghub - url = git@github.com:magit/ghub.git [submodule "git-modes"] path = lib/git-modes url = git@github.com:magit/git-modes.git diff --git a/lib/ghub b/lib/ghub deleted file mode 160000 index 5fae5e3..0000000 --- a/lib/ghub +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 5fae5e31586a11a2025168030e0eb3876502611c From a9ecb28b82aab3b5b6f637f5ef49e20b78652eb6 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:32:08 +0100 Subject: [PATCH 3/9] Remove libgit To be re-assimilated in the "magit-directors-cut" branch. --- .gitmodules | 4 ---- lib/libgit | 1 - 2 files changed, 5 deletions(-) delete mode 160000 lib/libgit diff --git a/.gitmodules b/.gitmodules index f0bde1c..f242f37 100644 --- a/.gitmodules +++ b/.gitmodules @@ -27,10 +27,6 @@ [submodule "git-modes"] path = lib/git-modes url = git@github.com:magit/git-modes.git -[submodule "libgit"] - path = lib/libgit - url = git@github.com:magit/libegit2.git - build-step = make [submodule "magit"] path = lib/magit url = git@github.com:magit/magit.git diff --git a/lib/libgit b/lib/libgit deleted file mode 160000 index 0ef8b13..0000000 --- a/lib/libgit +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 0ef8b13aef011a98b7da756e4f1ce3bb18e4d55a From 377b9065cb02cd3ddfde9a126fa4fe6e7c746a22 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:36:10 +0100 Subject: [PATCH 4/9] dash: Enable global-dash-fontify-mode Instead of calling the obsolete `dash-enable-font-lock' function. --- init.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.el b/init.el index 350614d..6fa5f1a 100644 --- a/init.el +++ b/init.el @@ -64,7 +64,7 @@ ;;; Long tail (use-package dash - :config (dash-enable-font-lock)) + :config (global-dash-fontify-mode 1)) (use-package diff-hl :config From 7cb4b868529d164fb7da220419049f7e424eca28 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:40:48 +0100 Subject: [PATCH 5/9] magit: Don't double down on default key bindings This wasn't always the case, but now Magit adds these key bindings out of the box. --- init.el | 2 -- 1 file changed, 2 deletions(-) diff --git a/init.el b/init.el index 6fa5f1a..219e5e9 100644 --- a/init.el +++ b/init.el @@ -105,8 +105,6 @@ (use-package magit :defer t - :bind (("C-x g" . magit-status) - ("C-x M-g" . magit-dispatch)) :config (magit-add-section-hook 'magit-status-sections-hook 'magit-insert-modules From 375624634a97d74b30d39bd07aff0ae8b939f036 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:55:30 +0100 Subject: [PATCH 6/9] Emacsg: Add more ignore rules for codespell --- etc/codespell/ignore-files | 62 ++++++++++++++++++++ etc/codespell/ignore-lines | 112 +++++++++++++++++++++++++++++++++++++ etc/codespell/ignore-words | 30 ++++++++++ 3 files changed, 204 insertions(+) diff --git a/etc/codespell/ignore-files b/etc/codespell/ignore-files index 205af93..277492f 100644 --- a/etc/codespell/ignore-files +++ b/etc/codespell/ignore-files @@ -17,7 +17,69 @@ .cask ert.el +./bash-completion/test ./emacsql/sqlite ./libgit/libgit2 +./lsp-mode/test/fixtures/requests +./magit-popup/AUTHORS.md ./magit/Documentation/AUTHORS.md ./magit/Documentation/BACKERS.md +./mu4e/aclocal.m4 +./mu4e/autom4te.cache +./mu4e/build-aux +./mu4e/configure +./mu4e/contrib/gmime-test +./mu4e/lib/query/parse +./mu4e/lib/query/test-parser +./mu4e/lib/query/test-tokenizer +./mu4e/lib/query/tokenize +./mu4e/lib/test-mu-contacts +./mu4e/lib/test-mu-container +./mu4e/lib/test-mu-flags +./mu4e/lib/test-mu-maildir +./mu4e/lib/test-mu-msg +./mu4e/lib/test-mu-msg-fields +./mu4e/lib/test-mu-store +./mu4e/lib/testdir* +./mu4e/lib/utils/test-command-parser +./mu4e/lib/utils/test-mu-str +./mu4e/lib/utils/test-mu-util +./mu4e/lib/utils/test-mu-utils +./mu4e/lib/utils/test-sexp-parser +./mu4e/libtool +./mu4e/m4/libtool.m4 +./mu4e/mu/mu./mu4e/autom4te.cache +./mu4e/mu/test-mu-cmd +./mu4e/mu/test-mu-cmd-cfind +./mu4e/mu/test-mu-query +./mu4e/mu/test-mu-threads +./mu4e/toys/mug/mug +./notmuch/bindings +./notmuch/doc/_build +./notmuch/notmuch +./notmuch/notmuch-shared +./notmuch/test +./org/0001-Fix-typos.patch +./org/etc/schema +./org/etc/styles +./package-lint/data +./solarized-theme +./tree-sitter/langs +./tree-sitter/target +./undo-tree + +# FIXME codespell fails to treat these correctly +./flycheck +./guix/THANKS +./lsp-mode/test/lsp-io-test.el +./markdown-mode/CHANGES.md +./mu4e/NEWS.org +./mu4e/lib/test-mu-msg.c +./mu4e/mu-cmd.c +./mu4e/mu/test-mu-query.c +./mu4e/www/index.md +./notmuch/emacs/notmuch-mua.el +./org/etc/ORG-NEWS +./org/lisp/org-entities.el +./org/lisp/ox.el +./s/dev/examples.el diff --git a/etc/codespell/ignore-lines b/etc/codespell/ignore-lines index 9d7aead..dc7e069 100644 --- a/etc/codespell/ignore-lines +++ b/etc/codespell/ignore-lines @@ -1,5 +1,28 @@ +# avy + (let (visibles beg) + (push (cons beg (point)) visibles) + (nreverse visibles)))))) + "wed" "wet" "who" "why" "wig" "win" "wit" "woe" "won" "wry" "you" "zap" +# edit-indirect +and the edit-indirect buffer major mode will not be able to tread # emacsql INOUT INSENSITIVE INSERT INT INT1 INT2 INT3 INT4 INT8 INTEGER +# flx + "ba" + "vendor/gems/discourse_emoji/vendor/assets/images/emoji/womans_clothes.png" + "vendor/gems/discourse_emoji/vendor/assets/images/emoji/womans_hat.png" + "vendor/gems/discourse_emoji/vendor/assets/images/emoji/womens.png" +# flycheck + (const :tag "Synopsys standard" "synopsys") +# geiser + (debug-log (file-open "geiser.log" (+ open/wronly open/append open/text open/creat))) +library implementing that API, together with some wee shims in Elisp +can do for us, besides jumping to and fro. +# hl-todo + ("DONT" . "#5f7f5f") +# lsp-mode + (message-in "Content-Length: 1152\r\n\r\n{\"jsonrpc\":\"2.0\",\"method\":\"sts/highlight\",\"params\":{\"doc\":{\"version\":0,\"uri\":\"file:///home/kyoncho/Public/Desktop/hellow/hello-world/src/main/java/com/example/helloworld/HelloWorldController.java\"},\"codeLenses\":[{\"range\":{\"start\":{\"line\":9,\"character\":0},\"end\":{\"line\":9,\"character\":11}},\"command\":{\"title\":\"← SampleBean\",\"command\":\"sts.showHoverAtPosition\",\"arguments\":[{\"line\":9,\"character\":0}]},\"data\":\"← SampleBean\"},{\"range\":{\"start\":{\"line\":14,\"character\":4},\"end\":{\"line\":14,\"character\":14}},\"command\":{\"title\":\"← SampleBean\",\"command\":\"sts.showHoverAtPosition\",\"arguments\":[{\"line\":14,\"character\":4}]},\"data\":\"← SampleBean\"},{\"range\":{\"start\":{\"line\":17,\"character\":4},\"end\":{\"line\":17,\"character\":31}},\"command\":{\"title\":\"http://127.0.0.1:8080/hello-world\",\"command\":\"sts.open.url\",\"arguments\":[\"http://127.0.0.1:8080/hello-world\"]},\"data\":\"http://127.0.0.1:8080/hello-world\"},{\"range\":{\"start\":{\"line\":25,\"character\":4},\"end\":{\"line\":25,\"character\":32}},\"command\":{\"title\":\"http://127.0.0.1:8080/hello-world2\",\"command\":\"sts.open.url\",\"arguments\":[\"http://127.0.0.1:8080/hello-world2\"]},\"data\":\"http://127.0.0.1:8080/hello-world2\"}]}}") + (should (equal messages '("{\"jsonrpc\":\"2.0\",\"method\":\"sts/highlight\",\"params\":{\"doc\":{\"version\":0,\"uri\":\"file:///home/kyoncho/Public/Desktop/hellow/hello-world/src/main/java/com/example/helloworld/HelloWorldController.java\"},\"codeLenses\":[{\"range\":{\"start\":{\"line\":9,\"character\":0},\"end\":{\"line\":9,\"character\":11}},\"command\":{\"title\":\"← SampleBean\",\"command\":\"sts.showHoverAtPosition\",\"arguments\":[{\"line\":9,\"character\":0}]},\"data\":\"← SampleBean\"},{\"range\":{\"start\":{\"line\":14,\"character\":4},\"end\":{\"line\":14,\"character\":14}},\"command\":{\"title\":\"← SampleBean\",\"command\":\"sts.showHoverAtPosition\",\"arguments\":[{\"line\":14,\"character\":4}]},\"data\":\"← SampleBean\"},{\"range\":{\"start\":{\"line\":17,\"character\":4},\"end\":{\"line\":17,\"character\":31}},\"command\":{\"title\":\"http://127.0.0.1:8080/hello-world\",\"command\":\"sts.open.url\",\"arguments\":[\"http://127.0.0.1:8080/hello-world\"]},\"data\":\"http://127.0.0.1:8080/hello-world\"},{\"range\":{\"start\":{\"line\":25,\"character\":4},\"end\":{\"line\":25,\"character\":32}},\"command\":{\"title\":\"http://127.0.0.1:8080/hello-world2\",\"command\":\"sts.open.url\",\"arguments\":[\"http://127.0.0.1:8080/hello-world2\"]},\"data\":\"http://127.0.0.1:8080/hello-world2\"}]}}"))))) # magit (let ((fro (or magit-git-output-coding-system (cons (coding-system-change-eol-conversion fro 'unix) @@ -7,5 +30,94 @@ (?c "[c]ommit" 'magit-ediff-show-commit) (?s "[s]tage" 'magit-ediff-stage) 1 Li-Yun Chang +# markdown-mode + "Rouge" "Ruby" "Rust" "SAS" "SCSS" "SMT" "SPARQL" "SQF" "SQL" "SQLPL" + "YAML" "YANG" "Yacc" "Zephir" "Zimpl" "desktop" "eC" "edn" "fish" +# mu4e + gchar *attachs; + if ((attachs = get_attach_str (msg, opts))) { + print_field ("Attachments", attachs, color); + g_free (attachs); + "\t* enter a [s]earch query\n" 'mu4e-search) + fd = creat (noindexpath, 0644); + * enter a [s]earch query + • enter a [s]earch query: after pressing , mu4e asks you for a + t \fBt\fRo: recipient +# to the SCANNERFLAGS variable for each GIR target in the code base. If +# for each GIR target in the code base. +@item @t{enter a [s]earch query}: after pressing @key{s}, @t{mu4e} asks + '((:maildir "ther" :key ?o)))) + (mu4e~main-action-str "[s]earch " 'mu4e-search) +# notmuch +- Wee[kday] + ;; the way that scroll-up signals end-of-buffer, but c'est la vie. + query_get_s{ort,tring} + * Include alot to the list of recommended interfaces, thanks to + elpa-notmuch | notmuch-vim | notmuch-mutt | alot, + thread:0000000000063c00 Today [1/1] A Thurd; Bites, stings, sad feelings (bad-news unread) + "\\b\\(attache\?ment\\|attached\\|attach\\|pi[èe]ce\s+jointe?\\)\\b" + "\tThe \"notmuch new\" command will notice flag changes in filenames\n" + "\t\tthe version of gpg to use.\n" + args=['notmuch', 'search', '--output=files', 'id:{0}'.format(id)], +# org + ("ca" :default "Autor") + ("cs" :default "Autor") + ("de" :default "Autor") + ("es" :default "Autor") + ("et" :default "Autor") + ("pl" :default "Autor") + ("pt_BR" :default "Autor") + ("ro" :default "Autor") + ("sl" :default "Seznam tabel") + ("et" :default "Tabel") + ("ro" :default "Tabel") + ("da" :default "Tabel %d") + ("et" :default "Tabel %d") + ("ro" :default "Tabel %d") + ("ro" :default "Creat") + ("Uuml" "\\\"{U}" nil "Ü" "Ue" "Ü" "Ü") + ("uuml" "\\\"{u}" nil "ü" "ue" "ü" "ü") + ("ang" "\\angle" t "∠" "[angle]" "[angle]" "∠") + ("angle" "\\angle" t "∠" "[angle]" "[angle]" "∠") + ("pl" :html "Spis treeści") +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Lizenz Creative Commons Namensnennung 3.0 Deutschland]]\n"))) +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland]]\n"))) +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-Keine Bearbeitung 3.0 Deutschland]]\n"))) +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-Nicht-kommerziell 3.0 Deutschland]]\n"))) +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung - Weitergabe unter gleichen Bedingungen 3.0 Deutschland]]\n"))) +Dieses Werk bzw. Inhalt steht unter einer [[" org-license-cc-url "][Namensnennung-NichtKommerziell-KeineBearbeitung 3.0 Deutschland]]\n"))) +Finally, just to whet your appetite for what can be done with the + Finally, just to whet your appetite for what can be done with the +\key{show subtree in indirect buffer, ded.\ frame}{C-c C-x b} + \def\adn#1{\addtokens{\toksC}{#1}\global\countA=1\let\next=\maketoks} +N is the number of WHATs to shift. + "alpha-numeric" | "integer" | "double" +common-dur-timing-attlist = attribute smil:dur { \string }? + [[http://www.mathomatic.org/][mathomatic]] a portable, command-line, educational CAS and calculator + froms := strings.ToLower(msg.GetHeader(header)) + //println(" froms: ["+froms+"]") + for _, from := range strings.Split(froms, ",") { + (interactive "nNumber of clones to produce: ") + (interactive "nNumber of pre-filled fields: ") + ;; Case 1: table.el doesn't support export to OD format. Strip + ;; Further effect is achieved by fixing the OD styles as below: +- =imenu.el= by Ake Stenhoff and Lars Lindberg :: +(defun org-babel-perl--var-to-perl (var &optional varn) + (if varn + (concat "my $" (symbol-name varn) "=" (when lvar "\n") + (if org-agenda-entry-text-mode " ETxt" "") + \gdef^^ba{\ordm} + \gdef^^ba{\cedilla s} +# pdf-tools + ;; Stelle global setzen oder nur irgendwo auf den +# s +(s-shared-start "bar" "baz") ;; => "ba" +(s-reverse "ab xyz") ;; => "zyx ba" +(s-truncate 6 "This is too long") ;; => "Thi..." + (s-truncate 6 "This is too long") => "Thi..." # treepy (and (mapp node) +# which-key + (bloc? (which-key--local-binding-p bcons))) + (if (not (eq aloc? bloc?)) + (and aloc? (not bloc?)) diff --git a/etc/codespell/ignore-words b/etc/codespell/ignore-words index f2636ae..fde4a16 100644 --- a/etc/codespell/ignore-words +++ b/etc/codespell/ignore-words @@ -1,12 +1,42 @@ +gonna +minimise +thru +wanna + # technical terms commitish +dedup dependant +deriver +iff +includee + +# types and keywords +ifset +mut +uint + +# people +tim +troup # software and abbreviations clos +ede +edn # symbols +ans +enew +fo +fpr hist +leapyear nd +objext +openin +ot pullrequest pullrequests +te +uptodate From 6e4701fdb076cab87a1690a7b7a82b325243c14e Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 11:57:59 +0100 Subject: [PATCH 7/9] Emacsg: Load essential libraries independently Multiple packages require these libraries and we don't want to attribute the time it takes to load these libraries to whatever dependent package happens to be loaded first. We don't do the same for `cl-lib' because `borg' itself requires, which is done without `use-package', i.e. without timing how long it takes. --- init.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init.el b/init.el index 219e5e9..c563bf4 100644 --- a/init.el +++ b/init.el @@ -33,6 +33,9 @@ (require 'use-package) (setq use-package-verbose t)) +(use-package dash) +(use-package eieio) + (use-package auto-compile :config (setq auto-compile-display-buffer nil) From 70c1e2f11f99d4b8fff6d3c2b35213531512c814 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 12:08:16 +0100 Subject: [PATCH 8/9] Emacsg: Initialize borg at compile-time too Without this `auto-compile-on-load-save' would file to re-compiling a modified "init.el", which can be observed using "touch init.el; emacs". --- init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.el b/init.el index c563bf4..cafb6c3 100644 --- a/init.el +++ b/init.el @@ -24,9 +24,9 @@ (tool-bar-mode 0)) (menu-bar-mode 0)) -(progn ; `borg' +(eval-and-compile ; `borg' (add-to-list 'load-path (expand-file-name "lib/borg" user-emacs-directory)) - (require 'borg) + (require 'borg) (borg-initialize)) (progn ; `use-package' From 0f9e8e769e0f342f85ac334c1ccddfd89847d94e Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 27 Jan 2021 12:22:40 +0100 Subject: [PATCH 9/9] Emacsg: Silence byte-compiler MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit when running "touch init.el; emacs", then the compilation triggered by `auto-compile-on-load-mode' resulted in: Warning (bytecomp): the following functions might not be defined at runtime: server-running-p, magit-add-section-hook Warning (bytecomp): the following functions are not known to be defined: indent-spaces-mode, indicate-buffer-boundaries-left While "make build-init" only resulted in: init.el:193:1: Warning: the function ‘magit-add-section-hook’ might not be defined at runtime. This commit addresses all of these warnings: - Don't sharp quote functions, because they resulted in invalid warnings. - Use the `use-package' keyword `:commands' to suppress the other warnings, because `:functions' fails to its job even though theoretically it is more suitable in these cases. --- init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index cafb6c3..5780d87 100644 --- a/init.el +++ b/init.el @@ -57,6 +57,7 @@ (load custom-file))) (use-package server + :commands (server-running-p) :config (or (server-running-p) (server-mode))) (progn ; startup @@ -104,10 +105,11 @@ (add-hook 'emacs-lisp-mode-hook 'reveal-mode) (defun indent-spaces-mode () (setq indent-tabs-mode nil)) - (add-hook 'lisp-interaction-mode-hook #'indent-spaces-mode)) + (add-hook 'lisp-interaction-mode-hook 'indent-spaces-mode)) (use-package magit :defer t + :commands (magit-add-section-hook) :config (magit-add-section-hook 'magit-status-sections-hook 'magit-insert-modules @@ -125,7 +127,7 @@ :config (global-prettify-symbols-mode) (defun indicate-buffer-boundaries-left () (setq indicate-buffer-boundaries 'left)) - (add-hook 'prog-mode-hook #'indicate-buffer-boundaries-left)) + (add-hook 'prog-mode-hook 'indicate-buffer-boundaries-left)) (use-package recentf :demand t @@ -149,7 +151,7 @@ (set-face-attribute 'smerge-refined-added nil :extend t))) (progn ; `text-mode' - (add-hook 'text-mode-hook #'indicate-buffer-boundaries-left)) + (add-hook 'text-mode-hook 'indicate-buffer-boundaries-left)) (use-package tramp :defer t