commit 9a15949f1817aa612f0171bef3d215b84616d857
parent cce017e4848dfa7a789764d7179b216e58e55777
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 28 Sep 2020 14:44:56 +0200
tools/emacs: small fixes
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/tools/emacs/config/config-dired.el b/tools/emacs/config/config-dired.el
@@ -149,8 +149,6 @@ This relies on the external 'fd' executable."
:after dired
:bind ("C-x C-j" . dired-jump)
:commands (dired-jump dired-omit-mode)
- :hook
- (dired-mode . dired-omit-mode)
:config
(setq-default dired-omit-files (concat dired-omit-files "\\|^\\.+$\\|^\\..+$")
dired-omit-verbose nil
@@ -236,6 +234,7 @@ This relies on the external 'fd' executable."
:hook (dired-mode . diredfl-mode))
(use-package trashed
+ :unless noninteractive
:commands (trashed)
:config
(setq trashed-action-confirmer 'y-or-n-p)
diff --git a/tools/emacs/config/config-search.el b/tools/emacs/config/config-search.el
@@ -75,8 +75,7 @@ confines of word boundaries (e.g. multiple words)."
;; UseRG
(use-package rg
- :if (and (*rg*)
- (not noninteractive))
+ :if *rg*
:commands (rg rg-project rg-dwim)
:bind (("M-s r r" . rg)
("M-s r p" . rg-project)