From 37841b08a830884d8138f3715c8327411faf6ae5 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 26 May 2021 15:10:07 -0500 Subject: Fix erc-common-server-suffixes --- init.el | 58 +++++++++++++++++++++++++++++----------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/init.el b/init.el index 4fc7e32..bbd7e1f 100644 --- a/init.el +++ b/init.el @@ -268,35 +268,35 @@ (:also-load erc-autoaway erc-track) - (:option erc-auto-discard-away t - erc-autoaway-idle-seconds 600 - erc-autoaway-message "BRB (autoaway: %i seconds)" - erc-autojoin-channels-alist '(("libera.chat" - "#emacs" "##webpals") - ("tilde.chat" - "#meta" "#team" "#gemini" - "#bread" ; how could I've forgotten!? - "#politics" "#bungame")) - erc-button-url-regexp browse-url-button-regexp - (append erc-common-server-suffixes) '("tilde.chat\\'" . "~") - (append erc-common-server-suffixes) '("libera.chat\\'" . "LC") - erc-header-line-face-method - #'erc/update-header-line-show-disconnected - erc-hide-list '("JOIN" "NICK" "PART" "QUIT" "MODE" - "324" "329" "332" "333" "353" "477") - erc-interpret-mirc-color t - erc-join-buffer 'bury - erc-kill-buffer-on-part t - erc-kill-queries-on-quit t - erc-kill-server-buffer-on-quit t - erc-nick "acdw" - erc-prompt (lambda () (concat (buffer-name) ">")) - erc-prompt-for-password nil ; use ~/.authinfo - erc/servers '("irc.libera.chat" - "irc.tilde.chat") - erc-server-coding-system '(utf-8 . utf-8) - erc-track-exclude-types erc-hide-list - erc-track-position-in-mode-line 'before-modes) + (:option + erc-auto-discard-away t + erc-autoaway-idle-seconds 600 + erc-autoaway-message "BRB (autoaway: %i seconds)" + erc-autojoin-channels-alist '(("libera.chat" + "#emacs" "##webpals") + ("tilde.chat" + "#meta" "#team" "#gemini" + "#bread" ; how could I've forgotten!? + "#politics" "#bungame")) + erc-button-url-regexp browse-url-button-regexp + erc-common-server-suffixes '(("tilde.chat\\'" . "~") + ("libera.chat\\'" . "LC")) + erc-header-line-face-method #'erc/update-header-line-show-disconnected + erc-hide-list '("JOIN" "NICK" "PART" "QUIT" "MODE" + "324" "329" "332" "333" "353" "477") + erc-interpret-mirc-color t + erc-join-buffer 'bury + erc-kill-buffer-on-part t + erc-kill-queries-on-quit t + erc-kill-server-buffer-on-quit t + erc-nick "acdw" + erc-prompt (lambda () (concat (buffer-name) ">")) + erc-prompt-for-password nil ; use ~/.authinfo + erc/servers '("irc.libera.chat" + "irc.tilde.chat") + erc-server-coding-system '(utf-8 . utf-8) + erc-track-exclude-types erc-hide-list + erc-track-position-in-mode-line 'before-modes) ;; Thanks bpalmer! (advice-add 'show-paren-function :around -- cgit 1.4.1-21-gabe81 From 9d702afab802acd6fbdceebf7057c0366ef7b4d1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 26 May 2021 17:28:04 -0500 Subject: Change eval-after-load to with-eval-after-load idk, I like the macro better --- init.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index bbd7e1f..d8fb206 100644 --- a/init.el +++ b/init.el @@ -782,9 +782,9 @@ "M-g f" avy-goto-line "M-g w" avy-goto-word-1 "C-c C-j" avy-resume) - - (eval-after-load "isearch" - '(define-key isearch-mode-map (kbd "C-'") #'avy-isearch))) + + (with-eval-after-load "isearch" + (define-key isearch-mode-map (kbd "C-'") #'avy-isearch))) (setup (:straight (beginend)) (beginend-global-mode +1)) -- cgit 1.4.1-21-gabe81 From 8dfab51df994e1e48cf48ba55abf313f94593aa1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Wed, 26 May 2021 17:29:24 -0500 Subject: Fix a weird error with straight-use-package Description: With the (or (ignore-errors ...) (progn ...)) form, `:straight' threw an error /only/ with `avy'. I couldn't figure out what the error was by re-evaluating or changing it to just throw straight's error or anything, and straight-use-package always returned t. However, changing the form to the simpler (straight-use-package) just ... works. So I have no idea what the matter might be. I realized that I made the :straight form more complicated to begin with because I was installing a lot of different packages and they were all over the place, so I wanted to know that it failed sooner rather than later, but still load the rest of my init file. Now that my config is more stable, I feel okay taking the extra stuff out of the form. --- init.el | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/init.el b/init.el index d8fb206..aeb4bcc 100644 --- a/init.el +++ b/init.el @@ -25,10 +25,7 @@ (setup setup (setup-define :straight (lambda (recipe) - `(or (ignore-errors (straight-use-package ',recipe)) - (progn - (message "Straight error: %S" ',recipe) - (throw 'setup-exit nil)))) + `(straight-use-package ',recipe)) :documentation "Install RECIPE with `straight-use-package'." :repeatable t :shorthand (lambda (sexp) -- cgit 1.4.1-21-gabe81 From fda35b47f1511afd9bec1c1147fdfdac03e17e71 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 27 May 2021 08:13:08 -0500 Subject: Add vuiet --- init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.el b/init.el index 4fc7e32..5c15fd1 100644 --- a/init.el +++ b/init.el @@ -1159,6 +1159,15 @@ if ripgrep is installed, otherwise `consult-grep'." (add-to-list 'comp-deferred-compilation-deny-list "vertico")) (vertico-mode +1)) +(setup (:straight vuiet) + (:needs "youtube-dl" + "mpv") + + ;; lastfm.el is required too, and needs some setup: + ;; https://github.com/mihaiolteanu/lastfm.el + (setup (:straight lastfm) + (require 'lastfm))) + (setup (:straight web-mode) (:option css-level-offset 2 js-indent-level 2 -- cgit 1.4.1-21-gabe81 From 26602a1c16e5718f005d253feb1687ae50e07c0f Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Thu, 27 May 2021 08:13:14 -0500 Subject: Customize ibuffer filters --- init.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/init.el b/init.el index 5c15fd1..57121ef 100644 --- a/init.el +++ b/init.el @@ -414,8 +414,10 @@ (:option ibuffer-saved-filter-groups '(("default" ("dired" (mode . dired-mode)) + ("customize" (mode . Custom-mode)) ("emacs" (or (name . "^\\*scratch\\*$") (name . "^\\*Messages\\*$") + (name . "^\\*Warnings\\*$") (name . "^\\*straight-process\\*$") (name . "^\\*Calendar\\*$"))) ("git" (or (name . "^\*magit") -- cgit 1.4.1-21-gabe81