aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-emacs.org
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/rul-emacs.org')
-rw-r--r--.emacs.d/rul-emacs.org54
1 files changed, 54 insertions, 0 deletions
diff --git a/.emacs.d/rul-emacs.org b/.emacs.d/rul-emacs.org
index f51cbdc..fd64947 100644
--- a/.emacs.d/rul-emacs.org
+++ b/.emacs.d/rul-emacs.org
@@ -501,3 +501,57 @@ context-specific actions in the minibuffer, or common buffers.
(provide 'rul-completion)
#+end_src
+
+** The =feeds= module
+The =feeds= module contains code pertaining to information feeds. It's a
+small module for now, as it only installs =elfeed=. If it doesn't get
+bigger, I'll consider merging it with another module.
+
+#+begin_src emacs-lisp :tangle "rul-lisp/packages/rul-feeds.el"
+;;; rul-feeds.el --- Information feeds
+
+(use-package elfeed :ensure t)
+(provide 'rul-feeds)
+#+end_src
+
+** The =fm= module
+The =fm= module contains code pertaining to file management. In
+particular, it's the module that configures =dired= and adds a few extra
+packages.
+
+#+begin_src emacs-lisp :tangle "rul-lisp/packages/rul-fm.el"
+;;; rul-fm.el --- File management
+
+;; dired
+(add-hook 'dired-mode-hook #'dired-hide-details-mode)
+(setq dired-guess-shell-alist-user
+ '(("\\.\\(png\\|jpe?g\\|tiff\\)" "feh" "xdg-open")
+ ("\\.\\(mp[34]\\|m4a\\|ogg\\|flac\\|webm\\|mkv\\)" "mpv" "xdg-open")
+ (".*" "xdg-open")))
+
+(setq dired-kill-when-opening-new-dired-buffer t)
+(put 'dired-find-alternate-file 'disabled nil)
+
+;; dired-preview
+(use-package dired-preview
+ :ensure t
+ :config
+
+ (setq dired-preview-delay 0.5)
+ (setq dired-preview-max-size (expt 2 20))
+ (setq dired-preview-ignored-extensions-regexp
+ (concat "\\."
+ "\\(mkv\\|webm\\|mp4\\|mp3\\|ogg\\|m4a"
+ "\\|gz\\|zst\\|tar\\|xz\\|rar\\|zip"
+ "\\|iso\\|epub\\|pdf\\)"))
+
+ (dired-preview-global-mode 1))
+
+;;; Icons
+(use-package nerd-icons :ensure t )
+(use-package nerd-icons-dired :ensure t
+ :config
+ (add-hook 'dired-mode-hook #'nerd-icons-dired-mode))
+
+(provide 'rul-fm)
+#+end_src
nihil fit ex nihilo