doom: + subed

main
earnest ma 2022-12-02 15:32:21 -05:00
parent 6abefd1c8a
commit 177ce5457c
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
2 changed files with 13 additions and 0 deletions

View File

@ -66,6 +66,16 @@
;; :config ;; :config
;; (add-hook 'redacted-mode-hook (lambda () (read-only-mode (if redacted-mode 1 -1))))) ;; (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" "<RET>" #'subed-mpv-toggle-pause))
(defun open-in-pympress () (defun open-in-pympress ()
"Open the current buffer (assumed to be a tex file that has the same name as "Open the current buffer (assumed to be a tex file that has the same name as
the compiled PDF version) in pympress." the compiled PDF version) in pympress."

View File

@ -56,6 +56,9 @@
(package! speed-type :pin "304cb8cd6c30d07577d7d864fd32858a29a73dba") (package! speed-type :pin "304cb8cd6c30d07577d7d864fd32858a29a73dba")
(package! pinentry) (package! pinentry)
(package! redacted) (package! redacted)
(package! subed
:recipe (:host github :repo "sachac/subed"
:files ("subed/*.el")))
(package! ess-view) (package! ess-view)
(package! ess-view-data) (package! ess-view-data)
(package! pandoc-mode) (package! pandoc-mode)