From 4947607cae9992f235eb9d12411a21d80671ad73 Mon Sep 17 00:00:00 2001 From: Gregor Grigorjan Date: Thu, 12 Dec 2024 09:39:55 +0200 Subject: [PATCH] refactor(emacs): shuffle code around --- modules/nixos/programs/emacs/init.el | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/nixos/programs/emacs/init.el b/modules/nixos/programs/emacs/init.el index 4393dd33..1581d907 100644 --- a/modules/nixos/programs/emacs/init.el +++ b/modules/nixos/programs/emacs/init.el @@ -596,11 +596,16 @@ (gg/local :keymaps 'dirvish-mode-map "d" #'dirvish-fd - "i" #'dired-gitignore-global-mode "g" #'dirvish-emerge-mode "f" #'dired-create-empty-file "k" #'dired-create-directory)) +(use-package dired-gitignore + :general + (gg/local + :keymaps 'dirvish-mode-map + "i" #'dired-gitignore-global-mode)) + (use-package dired-x :ensure nil) (use-package diredfl @@ -618,8 +623,6 @@ (setq dired-omit-files (concat dired-omit-files "\\|^\\..*$")) (setq dired-deletion-confirmer #'(lambda (_) t))) -(use-package dired-gitignore) - (use-package cape :init (setq-default completion-at-point-functions (list