summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlendoit <blendoit@gmail.com>2020-12-02 21:22:54 -0800
committerBlendoit <blendoit@gmail.com>2020-12-02 21:22:54 -0800
commitf8df8e589b0545f45be6673e9e0ff06ca41c1c2b (patch)
tree1477f6a56dfc43122d09f02812cc3ed15256f356
parent750ba03e9b7f5e4aca4d180302a6641d4a549802 (diff)
sd-sidebar
-rw-r--r--smart-documents.org8
1 files changed, 7 insertions, 1 deletions
diff --git a/smart-documents.org b/smart-documents.org
index 865e779..46f8529 100644
--- a/smart-documents.org
+++ b/smart-documents.org
@@ -927,9 +927,15 @@ We replace the standard welcome screen with our own.
Get inspiration from ~ibuffer-sidebar~ and create a better sidebar.
#+BEGIN_SRC emacs-lisp :tangle yes
+(defvar sd-sidebar nil "Becomes true if sd-sidebar is visible.")
+
(defun sd-sidebar ()
(interactive)
- (split-window-right))
+(if (eq sd-sidebar t))
+ (split-window-right)
+ (dired ".")
+ (dired-hide-details-mode)
+ (setq sd-sidebar t))
#+END_SRC
*** Better parentheses
Copyright 2019--2024 Marius PETER