Skip to content

Commit

Permalink
tweak: correctly defer loading some packages + small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 17, 2024
1 parent 7931486 commit cd1e0ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 15 deletions.
3 changes: 2 additions & 1 deletion modules/me-files.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

(use-package dirvish
:straight t
:demand minemacs-started-with-extra-args-p
:custom
(dirvish-attributes '(subtree-state nerd-icons file-size))
(dirvish-cache-dir (+directory-ensure minemacs-cache-dir "dirvish/"))
Expand All @@ -27,6 +26,8 @@
"oq" #'dirvish-quick-access
;; Search
"sd" #'dirvish-fd)
;; Load immediately if Emacs is launched in an "open with" fashion
(when minemacs-started-with-extra-args-p (require 'dirvish))
:config
(+nvmap! :keymaps 'dirvish-mode-map
"q" #'dirvish-quit
Expand Down
20 changes: 6 additions & 14 deletions modules/me-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,23 @@
(use-package compile-multi-embark
:straight t
:after embark
:config
:init
(compile-multi-embark-mode 1))

(use-package consult-compile-multi
:straight t
:after consult
:config
:init
(consult-compile-multi-mode 1))

(use-package projection
:straight t
;; Enable the `projection-hook' feature.
:hook (ibuffer . ibuffer-projection-set-filter-groups)
:hook (minemacs-after-startup . global-projection-hook-mode)
:after project
:bind-keymap ("C-x P" . projection-map)
:init
(with-eval-after-load 'project (require 'projection))
;; Access pre-configured projection commands from a keybinding of your choice.
;; Run `M-x describe-keymap projection-map` for a list of available commands.
:config
;; This ensures that `ibuffer-projection-set-filter-groups' takes effect
(+add-hook! ibuffer (run-at-time 0.1 nil (lambda () (call-interactively #'ibuffer-update))))
:bind-keymap
("C-x P" . projection-map))
(+add-hook! ibuffer (run-at-time 0.1 nil (lambda () (call-interactively #'ibuffer-update)))))

(use-package projection-multi
:straight t
Expand All @@ -53,9 +47,7 @@
(use-package projection-multi-embark
:straight t
:after embark projection-multi
:demand t
;; Add the projection set-command bindings to `compile-multi-embark-command-map'.
:config
:init
(projection-multi-embark-setup-command-map))


Expand Down

0 comments on commit cd1e0ba

Please sign in to comment.