From 11e1231948b5304cb2560c811c7110228e91b00d Mon Sep 17 00:00:00 2001 From: noa@gaiwan.org Date: Sun, 28 Jul 2024 08:11:19 +0000 Subject: Use system package manager for emacs packages --- config.org | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) (limited to 'config.org') diff --git a/config.org b/config.org index 287b99b..8965282 100644 --- a/config.org +++ b/config.org @@ -269,7 +269,7 @@ I'd like to change the face, but ~pulse-highlight-face~ has *DO NOT CUSTOMIZE* i Reading prose with long lines is a chore. Luckily there are several packages in emacs to make the windows squeeze text into a more legible sliver. Previously i used olivetti, which is a really nice package, but it's quite heavyweight and broke on me with no explanation more frequently than i appreciated. I've switched to visual-fill-column and been quite satisfied. #+begin_src elisp - (package-ensure 'visual-fill-column) + ;; (package-ensure 'visual-fill-column) (setopt visual-fill-column-enable-sensible-window-split t) (setopt visual-fill-column-center-text t) (advice-add 'text-scale-adjust :after #'visual-fill-column-adjust) @@ -289,7 +289,7 @@ Adaptive wrap will indent visually wrapped text to match the indent at the start #+begin_src elisp ;; (use-package adaptive-wrap :ensure t) - (add-hook 'visual-fill-column-mode-hook #'visual-wrap-prefix-mode) + ;; (add-hook 'visual-fill-column-mode-hook #'visual-wrap-prefix-mode) #+end_src ** Wider scrollbars @@ -418,8 +418,9 @@ Shift click to select region with the mouse. This annoyingly rings the bell for Jabber.el is an xmpp client in emacs. I don't actually use xmpp as xmpp that much. But i do use it to connect to irc, and this package lets me do that. Unfortunately, it's not a particularly well-behaved package; by default it clobbers some keybindings and floods the echo area with unhelpful messages. #+begin_src elisp - (package-ensure 'jabber) - (setopt jabber-account-list '(("noa@noa.pub"))) + ;; (package-ensure 'jabber) + (require 'jabber) + (setopt jabber-account-list '(("noa@noa.pub"))) #+end_src So now what we're going to do is get it to stop showing a bunch of channels in the mode line, because there will always be new activity and i want to drop in when i feel like it, and not always have a reminder of that fact. The defun below is copied from jabber-activity-show-p-default but with an extra condition plopped in. @@ -507,7 +508,7 @@ Finally, have a binding to jump to a buffer in which there's been some new activ * Reading epubs #+begin_src elisp :tangle no - (package-ensure 'nov) + ;; (package-ensure 'nov) (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) #+end_src @@ -682,8 +683,8 @@ This doesn't work with code blocks at the moment. #+end_src #+begin_src elisp :tangle no - (package-ensure 'org-modern) - (add-hook 'org-mode-hook #'org-modern-mode) + ;; (package-ensure 'org-modern) + ;; (add-hook 'org-mode-hook #'org-modern-mode) ;; (add-hook 'org-agenda-finalize-hook #'org-modern-agenda) #+end_src @@ -733,7 +734,7 @@ This doesn't respect my timestamp custom format configured above. ** Markdown #+begin_src elisp - (package-ensure 'markdown-mode) + ;; (package-ensure 'markdown-mode) (add-to-list 'auto-mode-alist '("\\.\\(?:md\\|markdown\\|mkd\\|mdown\\|mkdn\\|mdwn\\)\\'" . markdown-mode)) @@ -1022,7 +1023,7 @@ By default, don't show dired details I find it useful to see the recursive sizes of directories. This can be a little slow, so setting it as always on might not be the best idea, but the longest i've had to wait is about a second, and that's only if i run it on my home directory, so i think it's worth it at the moment. #+begin_src elisp - (package-ensure 'dired-du) + ;; (package-ensure 'dired-du) (setopt dired-du-size-format t) (add-hook 'dired-mode-hook #'dired-du-mode) #+end_src @@ -1368,8 +1369,8 @@ By default, clicking on a character will always put the point in front of that c Consult is a package to provide navigation commands that take advantage of completing-read. I set up a nice completing-read environment earlier with vertico. There are a lot of commands built in to consult, and it's possible to define more. But i use it very simply. #+begin_src elisp - (package-ensure 'consult) - (package-activate 'consult) + ;; (package-ensure 'consult) + ;; (package-activate 'consult) #+end_src Consult buffer can be used instead of the default buffer menu. It lists recently used files and bookmarks as well as open buffers. @@ -1397,7 +1398,7 @@ These are some other almost default functions but with extra interactivity. Marginalia provides us with annotations for candidates in completing read functions. This is things like docstrings for functions, file permissions in find-file, and so on. It's a small quality of life improvement. #+begin_src elisp - (package-ensure 'marginalia) + ;; (package-ensure 'marginalia) (setopt marginalia-mode t) #+end_src @@ -1429,7 +1430,7 @@ I also want to make the completion at point function a bit more friendly than th Vertico is a package for a nice minibuffer completion experience. It displays a vertical list of candidates. It integrates well with the emacs ecosystem and lets me use other packages that also play nicely. #+begin_src elisp - (package-ensure 'vertico) + ;; (package-ensure 'vertico) (setopt vertico-mode t) #+end_src @@ -1499,7 +1500,7 @@ The first thing we do is to ignore case, which in these cases is rarely useful. Next, we want to set orderless and basic as the two completion style. Basic matches candidates with the same text before the point, and the text after the point as a substring. Orderless takes any number of space separated components and displays candidates that much every component in any order. We specify basic first. What this means in practice is that first we will try and complete exactly what i've input, and if that fails, widen the search with orderless to pick up more options. #+begin_src elisp - (package-ensure 'orderless) + ;; (package-ensure 'orderless) (setopt completion-styles '(basic orderless)) #+end_src @@ -1567,7 +1568,7 @@ Usually, we want indentation to be done with tabs. Some modes make more sense t I want to ensure that indentation is always correct. The builtin electric indent mode works /sometimes/, but the aggressive indent mode package is more reliable. #+begin_src elisp - (package-ensure 'aggressive-indent) + ;; (package-ensure 'aggressive-indent) (setopt global-aggressive-indent-mode t) #+end_src @@ -1903,8 +1904,8 @@ This is equivalent to the message of the day present in some shells. I wanted i ** Network management #+begin_src elisp - (package-ensure 'enwc) - (setopt enwc-default-backend 'nm) + ;; (package-ensure 'enwc) + ;; (setopt enwc-default-backend 'nm) #+end_src * Dictionary -- cgit 1.4.1-2-gfad0