diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index 3f1e119..f780545 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -66,6 +66,16 @@ ;; :config ;; (add-hook 'redacted-mode-hook (lambda () (read-only-mode (if redacted-mode 1 -1))))) +(use-package! subed + :config + ;; This assures evil does not conflict with subed keybinds. + ;; https://github.com/haditim/.doom.d + (map! :map (subed-mode subed-srt-mode-map) + :n "M-p" #'subed-backward-subtitle-text + :n "M-n" #'subed-forward-subtitle-text + :leader + :desc "MPV play/pause" "" #'subed-mpv-toggle-pause)) + (defun open-in-pympress () "Open the current buffer (assumed to be a tex file that has the same name as the compiled PDF version) in pympress." diff --git a/doom/.config/doom/packages.el b/doom/.config/doom/packages.el index 8a8995c..8105e8c 100644 --- a/doom/.config/doom/packages.el +++ b/doom/.config/doom/packages.el @@ -56,6 +56,9 @@ (package! speed-type :pin "304cb8cd6c30d07577d7d864fd32858a29a73dba") (package! pinentry) (package! redacted) +(package! subed + :recipe (:host github :repo "sachac/subed" + :files ("subed/*.el"))) (package! ess-view) (package! ess-view-data) (package! pandoc-mode)