More packages, slight tweaks elsewhere

This commit is contained in:
Jesse Braham 2025-03-11 08:56:23 +01:00
parent 068f63d507
commit ea498b169d
6 changed files with 38 additions and 0 deletions

View File

@ -27,3 +27,6 @@
;; Prettify symbols (eg. lambda -> λ). ;; Prettify symbols (eg. lambda -> λ).
(global-prettify-symbols-mode) (global-prettify-symbols-mode)
;; Enable mouse support.
(xterm-mouse-mode +1)

View File

@ -28,6 +28,11 @@
) )
;; On macOS, `ls` does not support the `--dired` option.
(when (string= system-type "darwin")
(setq dired-use-ls-dired nil))
;; Define a couple simple helper functions for loading user-defined ;; Define a couple simple helper functions for loading user-defined
;; configuration files. ;; configuration files.

9
pkg/marginalia.el Normal file
View File

@ -0,0 +1,9 @@
;; Marginalia in the minibuffer.
;; https://github.com/minad/marginalia/
(use-package marginalia
:ensure t
:bind
(:map minibuffer-local-map
("M-A" . marginalia-cycle))
:init
(marginalia-mode))

View File

@ -0,0 +1,8 @@
;; Use Nerd Icons in completions.
;; https://github.com/rainstormstudio/nerd-icons-completion
(use-package nerd-icons-completion
:ensure t
:after marginalia
:config
(nerd-icons-completion-mode)
(add-hook 'marginalia-mode-hook #'nerd-icons-completion-marginalia-setup))

7
pkg/orderless.el Normal file
View File

@ -0,0 +1,7 @@
;;Emacs completion style that matches multiple regexps in any order.
;; https://github.com/oantolin/orderless
(use-package orderless
:ensure t
:custom
(completion-styles '(orderless basic))
(completion-category-overrides '((file (styles basic partial-completion)))))

6
pkg/rg.el Normal file
View File

@ -0,0 +1,6 @@
;; Emacs search tool based on ripgrep.
;; https://github.com/dajva/rg.el
(use-package rg
:ensure t
:config
(rg-enable-default-bindings))