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

    refactor(core): enable `truncate-lines` in dired buffer by default
---
 dirvish.el   |  2 +-
 docs/FAQ.org | 17 -----------------
 2 files changed, 1 insertion(+), 18 deletions(-)

diff --git a/dirvish.el b/dirvish.el
index ac3b4df668..b2eea1c7e4 100644
--- a/dirvish.el
+++ b/dirvish.el
@@ -1132,7 +1132,7 @@ Optionally, use CURSOR as the enabled cursor type."
   (dirvish--hide-dired-header)
   (dirvish--maybe-toggle-cursor 'box) ; restore from `wdired'
   (setq-local dirvish--dir-data (or dirvish--dir-data (dirvish--ht))
-              revert-buffer-function #'dirvish-revert
+              revert-buffer-function #'dirvish-revert truncate-lines t
               dired-hide-details-hide-symlink-targets nil)
   (add-hook 'pre-redisplay-functions #'dirvish-pre-redisplay-h nil t)
   (add-hook 'window-buffer-change-functions #'dirvish-winbuf-change-h nil t)
diff --git a/docs/FAQ.org b/docs/FAQ.org
index 9e942e7436..dd0ea3bd4b 100644
--- a/docs/FAQ.org
+++ b/docs/FAQ.org
@@ -30,23 +30,6 @@
 (setq dirvish-default-layout nil)
 #+end_src
 
-* How to hide continuation lines?
-
-Do not display continuation lines globally:
-
-#+begin_src emacs-lisp
-  (setq-default truncate-lines t)
-#+end_src
-
-Or disable it only in dirvish:
-
-#+begin_src emacs-lisp
-  (add-hook 'dirvish-find-entry-hook
-            (lambda (&rest _) (setq-local truncate-lines t)))
-#+end_src
-
-Also see https://github.com/alexluigit/dirvish/issues/33
-
 * How to kill all session buffers on quit?
 
 Set ~dirvish-reuse-session~ to nil.

Reply via email to