Add marginalia to v4

This commit is contained in:
Sameer Rahmani 2024-03-27 00:23:28 +00:00
parent fa3b36dafc
commit 1f4e6f158e
Signed by: lxsameer
GPG Key ID: 8741FACBF412FFA5
2 changed files with 5 additions and 15 deletions

View File

@ -204,23 +204,13 @@ match all of the components in any order."
:init :init
(savehist-mode)) (savehist-mode))
(when-not-wm
;; Minibuffer related stuff
(use! marginalia (use! marginalia
"Adds useful info to minibuffers completions." "Adds useful info to minibuffers completions."
;; Bind `marginalia-cycle' locally in the minibuffer. To make the binding :commands marginalia-mode
;; available in the *Completions* buffer, add it to the :hook (emacs-startup . marginalia-mode))
;; `completion-list-mode-map'.
:bind (:map minibuffer-local-map
("M-A" . marginalia-cycle))
;; The :init section is always executed.
:init
;; Since we used `:bind', `use!' assumes `:defer', but we want
;; this mode to start right away.
(require 'marginalia)
(marginalia-mode))
(when-not-wm
;; Minibuffer related stuff
(use! ctrlf (use! ctrlf
"Single buffer text search." "Single buffer text search."
:config :config

View File

@ -51,7 +51,6 @@
slock, slock,
supportPython ? true, supportPython ? true,
supportVerilog ? true, supportVerilog ? true,
svls, svls,
verilator, verilator,
@ -97,6 +96,7 @@ let
]) ++ (lib.optional (supportWM && stdenv.isLinux) [ ]) ++ (lib.optional (supportWM && stdenv.isLinux) [
# Window manager supports works on Linux only # Window manager supports works on Linux only
xorg.xhost xorg.xhost
slock
]); ]);
paths = map (x: "${x}/bin/") (lib.lists.flatten runtimeBins); paths = map (x: "${x}/bin/") (lib.lists.flatten runtimeBins);