branch: elpa/subed
commit 2d882e18e25f57d3858c21e7f8f40e04b345693f
Author: Marcin Borkowski <mb...@mbork.pl>
Commit: Marcin Borkowski <mb...@mbork.pl>

    Add support for comment editing in SRT files
---
 subed/subed-srt.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/subed/subed-srt.el b/subed/subed-srt.el
index d1aa8cfae3..ad1404459a 100644
--- a/subed/subed-srt.el
+++ b/subed/subed-srt.el
@@ -393,6 +393,8 @@ Use the format-specific function for MAJOR-MODE."
   (setq-local subed--regexp-timestamp subed-srt--regexp-timestamp)
   (setq-local subed--regexp-separator subed-srt--regexp-separator)
   (setq-local font-lock-defaults '(subed-srt-font-lock-keywords))
+  (setq-local comment-start "{\\")
+  (setq-local comment-end "}")
   ;; Support for fill-paragraph (M-q)
   (let ((timestamps-regexp (concat subed--regexp-timestamp
                                    " *--> *"

Reply via email to