diff options
author | Thanos Apollo <[email protected]> | 2023-06-03 06:55:25 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-06-03 06:55:25 +0300 |
commit | b1ba34471a2881e0243ec7b9b27f259dfb2f3bfd (patch) | |
tree | 188693402a96fecbafa647e9eb9c5b83c05617c0 /emacs.org | |
parent | 2bcee123678c48092079fe2bbd4a1264735a206b (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-x | emacs.org | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |