From c3288188bd24823426fa2a466e09ff4ab865288a Mon Sep 17 00:00:00 2001 From: Joe Frikker Date: Wed, 16 Sep 2026 21:39:42 -0400 Subject: [PATCH] more use-package --- home.org | 1 + modules/home/default.nix | 2 +- modules/home/emacs.el | 34 ++++++++++++++++++++++------------ 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/home.org b/home.org index 87933b4..958a432 100644 --- a/home.org +++ b/home.org @@ -1945,6 +1945,7 @@ for completion. That makes it really annoying to use; don't use yasnippet with e (setopt completion-styles '(orderless basic)) (use-package marginalia + :config (marginalia-mode)) (use-package corfu diff --git a/modules/home/default.nix b/modules/home/default.nix index ed85634..9d7c8da 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -510,7 +510,6 @@ org-modern org-present org-roam - ox-slack verb visual-fill-column ]; @@ -527,6 +526,7 @@ programs.emacs = { extraPackages = epkgs: with epkgs; [ slack + ox-slack ]; extraConfig = builtins.readFile ./slack.el; }; diff --git a/modules/home/emacs.el b/modules/home/emacs.el index b3d03d5..66fd63b 100644 --- a/modules/home/emacs.el +++ b/modules/home/emacs.el @@ -722,21 +722,31 @@ Check if a node type is available, then return the right indent rules." (setopt consult-narrow-key "<") ;; "C-+" -(setopt vertico-count 25) -(vertico-mode) +(use-package vertico + :custom + (vertico-count 25) + :config + (vertico-mode)) (setopt completion-styles '(orderless basic)) -(marginalia-mode) +(use-package marginalia + :config + (marginalia-mode)) -(setopt corfu-cycle t) -(setopt corfu-popupinfo-mode nil) -(setopt corfu-quit-at-boundary nil) -(setopt corfu-on-exact-match 'show) -(global-corfu-mode) +(use-package corfu + :custom + (corfu-cycle t) + (corfu-popupinfo-mode nil) + (corfu-quit-at-boundary nil) + (corfu-on-exact-match 'show) + :config + (global-corfu-mode)) ;; (setq completion-in-region-function #'consult-completion-in-region) -(add-hook 'completion-at-point-functions 'cape-file) +(use-package cape + :custom + (add-hook 'completion-at-point-functions 'cape-file)) (use-package org :bind (("C-c A" . org-agenda) @@ -781,7 +791,8 @@ Check if a node type is available, then return the right indent rules." (set-face-attribute 'org-level-8 nil :font "Iosevka Aile")) (defvar-local my/org-present-face-remapping-cookies nil) -(with-eval-after-load 'org-present +(use-package org-present + :config (require 'face-remap) (require 'visual-fill-column) @@ -849,8 +860,7 @@ Check if a node type is available, then return the right indent rules." ;; (org-roam-db-autosync-mode) (use-package org-modern - :after org - :hook org-mode-hook) + :hook org-mode) ;; (define-key org-mode-map (kbd "C-c C-r") verb-command-map)