summaryrefslogtreecommitdiff
path: root/emacs.org
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-06-03 06:55:25 +0300
committerThanos Apollo <[email protected]>2023-06-03 06:55:25 +0300
commitb1ba34471a2881e0243ec7b9b27f259dfb2f3bfd (patch)
tree188693402a96fecbafa647e9eb9c5b83c05617c0 /emacs.org
parent2bcee123678c48092079fe2bbd4a1264735a206b (diff)
emacs: Add dired-watch-video function
Create a function to watch videos through async-shell-command with mpv
Diffstat (limited to 'emacs.org')
-rwxr-xr-xemacs.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs.org b/emacs.org
index 236dd76..6709cfb 100755
--- a/emacs.org
+++ b/emacs.org
@@ -216,6 +216,16 @@ Fonts and basic appearance settings for each device
([remap describe-key] . helpful-key))
#+end_src
* Dired
+** Functions
+#+begin_src emacs-lisp
+ (defun dired-watch-video ()
+ (interactive)
+ (async-shell-command (format "mpv \"%s\"" (dired-get-filename))))
+#+end_src
+** Keybindings
+#+begin_src emacs-lisp
+ (define-key dired-mode-map "b" 'dired-up-directory)
+#+end_src
** All-the-icons.el
#+begin_src emacs-lisp
(require 'cl-lib)