Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions atomic-chrome.el
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,19 @@ STRING is the string process received."

;;;###autoload
(defun atomic-chrome-start-server ()
"Start websocket server for atomic-chrome."
"Start websocket server for atomic-chrome. Fails silently if a \
server is already running."
(interactive)
(and (not atomic-chrome-server-atomic-chrome)
(memq 'atomic-chrome atomic-chrome-extension-type-list)
(setq atomic-chrome-server-atomic-chrome
(atomic-chrome-start-websocket-server 64292)))
(and (not (process-status "atomic-chrome-httpd"))
(memq 'ghost-text atomic-chrome-extension-type-list)
(atomic-chrome-start-httpd))
(global-atomic-chrome-edit-mode 1))
(ignore-errors
(progn
(and (not atomic-chrome-server-atomic-chrome)
(memq 'atomic-chrome atomic-chrome-extension-type-list)
(setq atomic-chrome-server-atomic-chrome
(atomic-chrome-start-websocket-server 64292)))
(and (not (process-status "atomic-chrome-httpd"))
(memq 'ghost-text atomic-chrome-extension-type-list)
(atomic-chrome-start-httpd))
(global-atomic-chrome-edit-mode 1))))

;;;###autoload
(defun atomic-chrome-stop-server nil
Expand Down