aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2024-10-29 08:00:07 -0700
committerRaúl Benencia <id@rbenencia.name>2024-10-29 08:00:07 -0700
commit06c08b015368fa4277a7c83657c83c291539c179 (patch)
tree4fa909063f905f96022bc91f67661630b93562da /.emacs.d
parent35130754a48d2d5473a95bc7a06338ae7c0a58fa (diff)
emacs: add rul-feeds and rul-fm to literate config
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/rul-emacs.org54
-rw-r--r--.emacs.d/rul-lisp/packages/rul-feeds.el2
-rw-r--r--.emacs.d/rul-lisp/packages/rul-mail.el3
3 files changed, 59 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
diff --git a/.emacs.d/rul-lisp/packages/rul-feeds.el b/.emacs.d/rul-lisp/packages/rul-feeds.el
index 43c4afc..6352882 100644
--- a/.emacs.d/rul-lisp/packages/rul-feeds.el
+++ b/.emacs.d/rul-lisp/packages/rul-feeds.el
@@ -1,2 +1,4 @@
+;;; rul-feeds.el --- Information feeds
+
(use-package elfeed :ensure t)
(provide 'rul-feeds)
diff --git a/.emacs.d/rul-lisp/packages/rul-mail.el b/.emacs.d/rul-lisp/packages/rul-mail.el
index 5f3706e..18fe376 100644
--- a/.emacs.d/rul-lisp/packages/rul-mail.el
+++ b/.emacs.d/rul-lisp/packages/rul-mail.el
@@ -1,6 +1,9 @@
;; mail-mode
+
+; mml-sec.el
(setq mml-secure-openpgp-sign-with-sender t)
+; sendmail.el
(add-hook 'mail-mode-hook
(lambda ()
(font-lock-add-keywords nil
nihil fit ex nihilo