emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/dirvish ea4db4dab5 1/2: doc: issue relates to `nlinum-mode


From: ELPA Syncer
Subject: [nongnu] elpa/dirvish ea4db4dab5 1/2: doc: issue relates to `nlinum-mode` (#306)
Date: Thu, 6 Mar 2025 10:02:00 -0500 (EST)

branch: elpa/dirvish
commit ea4db4dab5a1910c39e51a6d002cef55d637a48a
Author: Alex Lu <hellosimon1103@hotmail.com>
Commit: Alex Lu <hellosimon1103@hotmail.com>

    doc: issue relates to `nlinum-mode` (#306)
---
 dirvish.el   |  2 +-
 docs/FAQ.org | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/dirvish.el b/dirvish.el
index 23332ee557..d123396a8a 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -899,7 +899,7 @@ filename or a string with format of `dirvish-fd-bufname'."
           ((> size (or large-file-warning-threshold 10000000))
            `(info . ,(format "File [ %s ] is too big for literal preview." 
file)))
           ((member ext dirvish-binary-exts)
-           `(info . "Preview disabled for media files"))
+           `(info . "Preview disabled for binary files"))
           (t (dirvish--preview-file-maybe-truncate dv file size)))))
 
 (cl-defgeneric dirvish-preview-dispatch (recipe dv)
diff --git a/docs/FAQ.org b/docs/FAQ.org
index e7da0b534f..9e942e7436 100644
--- a/docs/FAQ.org
+++ b/docs/FAQ.org
@@ -61,9 +61,18 @@ Disable =all-the-icons-dired= and =treemacs-icons-dired=.
 
 * Can not get access to commands in =dirvish-mode-map=?
 
-It happend for some evil users, you can try 
[[https://github.com/alexluigit/dirvish/issues/188][this]]:
+It happend for some =evil-mode= users, you can try 
[[https://github.com/alexluigit/dirvish/issues/188][this]]:
 
 #+begin_src emacs-lisp
 ;; setting it after dirvish to ensure `dirvish-mode-map' is loaded
 (evil-make-overriding-map dirvish-mode-map 'normal)
 #+end_src
+
+* Directory (Dired) previews not displayed in the preview buffer
+
+It could happen if you enabled ~global-nlinum-mode~, disable them in the 
directory
+preview buffers should do the trick: 
[[https://github.com/alexluigit/dirvish/issues/306][#306]]
+
+#+begin_src emacs-lisp
+(add-hook 'dirvish-directory-view-mode-hook (lambda () (nlinum-mode 0)))
+#+end_src



reply via email to

[Prev in Thread] Current Thread [Next in Thread]