Skip to content

Commit

Permalink
Fix restart
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonm23 committed Jul 20, 2022
1 parent a4f8060 commit 9c6c869
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions markdown-soma.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Jason Milkins <[email protected]>
;; URL: https://github.com/jasonm23/markdown-soma
;; Keywords: wp, docs, text, markdown
;; Version: 0.2.3
;; Version: 0.2.4
;; Package-Requires: ((emacs "25") (s "1.11.0") (dash "2.19.1") (f "0.20.0"))

;; This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -132,9 +132,7 @@ By default, `~/.cargo/bin` will be in your `$PATH`."
"Render TEXT via soma.
markdown-soma-render is debounced to 250ms."
(message "render attempt")
(when (null markdown-soma--render-gate)
(message "render done...")
(process-send-string (get-process"markdown-soma") (format "%s\n" text))
(process-send-eof (get-process"markdown-soma")))
(setq-local markdown-soma--render-gate t)
Expand Down Expand Up @@ -187,7 +185,7 @@ markdown-soma-render is debounced to 250ms."
(if markdown-soma-mode
(progn
(markdown-soma-stop)
(markdown-soma-start))
(run-with-timer 0.2 nil #'markdown-soma-start))
(user-error "Please note markdown-soma-mode is not currently active")))

(defun markdown-soma--run ()
Expand Down

0 comments on commit 9c6c869

Please sign in to comment.