summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorbd <bdunahu@gmail.com>2024-01-04 21:26:07 -0700
committerbd <bdunahu@gmail.com>2024-01-04 21:26:07 -0700
commit98506b88e8d1f7d88565e2510ae4c67a103a1ec8 (patch)
tree748097e39ce16597eb559adcc00704c6d2a982e9 /.config/emacs
parentb2978f58cdd6369548dcefeb9bb0c508587262b2 (diff)
Default dired shell command for pdf and video formats
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/bd-default.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/.config/emacs/bd-default.el b/.config/emacs/bd-default.el
index b27a21d..9e5f69f 100644
--- a/.config/emacs/bd-default.el
+++ b/.config/emacs/bd-default.el
@@ -68,6 +68,10 @@ open URL at point."
;; allow one side window per side of frame
(setopt window-sides-slots '(1 1 1 1))
+;; do not show async command buffers by default
+(add-to-list 'display-buffer-alist
+ (cons "\\*Async Shell Command\\*.*" (cons #'display-buffer-no-window nil)))
+
(setopt scroll-up-aggressively '0.0
scroll-down-aggressively '0.0)
@@ -112,14 +116,17 @@ open URL at point."
(use-package image-dired
:bind (("C-c d" . dired-jump))
:custom
- (dired-listing-switches "-alh"))
+ (dired-listing-switches "-alh")
+ (dired-guess-shell-alist-user
+ `((,(regexp-opt '(".mkv" ".mov" ".mp4" ".webm" ".m4v" ".wav" ".mp3" ".opus" ".ogv" ".flac")) "mpv &")
+ (,(regexp-opt '(".pdf")) "zathura &"))))
(use-package erc
:config
(defalias 'erc 'erc-tls)
:custom
+ (erc-lurker-threshold-time 3600)
(erc-server "irc.libera.chat")
(erc-nick "Isaz")
- (erc-user-full-name "bd")
(erc-kill-buffer-on-part t)
(erc-autojoin-channels-alist '(("irc.libera.chat" "#parabola" "#emacs" "#guix"))))