]> git.armaanb.net Git - config.org.git/blobdiff - config.org
Improve dired config
[config.org.git] / config.org
index f5b3cc3a195c1935a7a99e3f6a2edde3d4632394..7e9404a6f7a775acee886ff0367e058eca76bf68 100644 (file)
@@ -326,6 +326,7 @@ Use elfeed for reading RSS. I have another file with all the feeds in it that I'
   (use-package elfeed
     :bind (("C-c e" . elfeed))
     :config (load "~/.emacs.d/feeds.el")
+    :custom (elfeed-db-directory "~/.emacs.d/elfeed")
     :bind (:map elfeed-search-mode-map ("C-c C-o" . 'elfeed-show-visit)))
 #+end_src
 ** Email
@@ -631,10 +632,12 @@ The best file manager!
   (use-package dired
     :straight (:type built-in)
     :commands (dired dired-jump)
-    :custom ((dired-listing-switches "-agho --group-directories-first"))
-    :config (evil-collection-define-key 'normal 'dired-mode-map
-              "h" 'dired-single-up-directory
-              "l" 'dired-single-buffer))
+    :custom (dired-listing-switches "-agh --group-directories-first")
+    :bind
+    ([remap dired-find-file] . dired-single-buffer)
+    ([remap dired-mouse-find-file-other-window] . dired-single-buffer-mouse)
+    ([remap dired-up-directory] . dired-single-up-directory)
+    ("C-x C-j" . dired-jump))
 
   (use-package dired-single
     :commands (dired dired-jump))
@@ -646,8 +649,7 @@ The best file manager!
 
   (use-package dired-hide-dotfiles
     :hook (dired-mode . dired-hide-dotfiles-mode)
-    :config
-    (evil-collection-define-key 'normal 'dired-mode-map
+    :config (evil-collection-define-key 'normal 'dired-mode-map
       "H" 'dired-hide-dotfiles-mode))
 #+end_src
 ** Git
@@ -732,9 +734,8 @@ Abbreviate things! I just use this for things like my email address and copyrigh
   (defun doas-edit (&optional arg)
     "Edit currently visited file as root.
 
-    With a prefix ARG prompt for a file to visit.
-    Will also prompt for a file to visit if current
-    buffer is not visiting a file.
+    With a prefix ARG prompt for a file to visit.  Will also prompt
+    for a file to visit if current buffer is not visiting a file.
 
     Modified from Emacs Redux."
     (interactive "P")
@@ -1195,6 +1196,6 @@ I use tmux in order to keep my st build light. Still learning how it works.
 ** sx
 #+begin_src shell :tangle ~/.config/sx/sxrc :tangle-mode (identity #o755)
   autostart &
-  dwmsetroot &
+  dwmblocks &
   exec dwm
 #+end_src