summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/emacs/custom.el1
-rw-r--r--.config/emacs/init.el14
2 files changed, 14 insertions, 1 deletions
diff --git a/.config/emacs/custom.el b/.config/emacs/custom.el
index af500dd..935d195 100644
--- a/.config/emacs/custom.el
+++ b/.config/emacs/custom.el
@@ -17,7 +17,6 @@
'(enable-recursive-minibuffers t)
'(epg-pinentry-mode 'loopback)
'(eshell-scroll-show-maximum-output nil)
- '(find-ls-option '("-exec ls -ld {} +" . "-ld"))
'(font-use-system-font t)
'(footnote-body-tag-spacing 1)
'(footnote-section-tag "")
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 816e527..51ee017 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -852,6 +852,20 @@ UPSTREAMS is a list of fetch URLs."
(my/setopt-update-list erc-modules '(log notifications stamp track) '(fill))
(my/setopt-update-list erc-track-exclude-types '("JOIN" "PART" "QUIT")))
+(use-package find-dired
+ :custom
+ (find-ls-option
+ ;; The default value (-default-ls) relies on 'find -ls', which
+ ;; escapes non-ASCII chars.
+ ;; The suggested alternatives (-default-exec, -default-xargs)
+ ;; _display_ non-ASCII chars correctly, but ls quotes filenames
+ ;; that contain spaces: `dired-get-filename' fails to strip them,
+ ;; so they cannot be visited.
+ ;; So go for -default-exec, *plus* -N to disable quoting
+ ;; altogether. That takes care of all the edge cases I tested
+ ;; (non-ASCII chars, spaces).
+ '("-exec ls -Nld {} +" . "-Nld")))
+
(use-package forge
;; Auto-load after Magit, to ensure `f n' works.
:after magit