From 13288ef81b98eac29349faa7f0a7543ae3b23cb1 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Wed, 16 Nov 2022 21:39:53 +0800 Subject: subed: some convenience settings * subed-conf.el (subed-mode-map): Use normal brackets. (subed-disable-pause-while-typing): I don't want to pause while typing. --- subed-conf.el | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'subed-conf.el') diff --git a/subed-conf.el b/subed-conf.el index f9404ad..0a33253 100644 --- a/subed-conf.el +++ b/subed-conf.el @@ -25,13 +25,15 @@ ;;; Code: +;;; Load package + (use-package "subed/subed" 'subed) ;;; Use a shorter name for the socket (setq subed-mpv-socket-dir "/tmp/") -;; Make some modifications so that mpv works +;;; Make some modifications so that mpv works (defun durand-subed-mpv--socket () "Path to mpv's RPC socket for a particular buffer. @@ -51,5 +53,17 @@ See also `subed-mpv-socket-dir'." (advice-add #'subed-mpv--socket :override #'durand-subed-mpv--socket) +;;; Normal brackets are easier to hit for me + +(define-key subed-mode-map (vector 3 ?\() + #'subed-copy-player-pos-to-start-time) + +(define-key subed-mode-map (vector 3 ?\)) + #'subed-copy-player-pos-to-stop-time) + +;;; Disable pausing when typing + +(subed-disable-pause-while-typing t) + (provide 'subed-conf) ;;; subed-conf.el ends here -- cgit v1.2.3-18-g5258