summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-11-16 21:39:53 +0800
committerJSDurand <mmemmew@gmail.com>2022-11-16 21:39:53 +0800
commit13288ef81b98eac29349faa7f0a7543ae3b23cb1 (patch)
treedbe2f865303daef52bd90cb59d2a378221a2cbbf
parent6f8c0abb82c922a46e48864a4a7c2b3bc45e5f35 (diff)
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.
-rw-r--r--subed-conf.el16
1 files changed, 15 insertions, 1 deletions
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