;;; edit-server-conf.el --- Settings for edit-server
;;
;;; Commentary:
;;
;;; Code:
(require 'edit-server)

(custom-set-variables
 '(edit-server-new-frame nil)
 '(edit-server-default-major-mode 'markdown-mode))

;; Fix a really buggy issue with edit-server:
(define-key edit-server-edit-mode-map (kbd "C-x C-s") #'save-buffer)

;;; edit-server-conf.el ends here

;;; edit-server-conf.el --- Settings for edit-server
;;
;;; Commentary:
;;
;;; Code:
(require 'edit-server)
(require 'markdown-mode)

(custom-set-variables
 '(edit-server-new-frame nil)
 '(edit-server-default-major-mode 'markdown-mode))

;; Fix a really buggy issue with edit-server:
(define-key edit-server-edit-mode-map (kbd "C-x C-s") #'save-buffer)

;; Put markdown-mode into the right state:
(add-hook 'edit-server-edit-mode-hook #'pjones:markdown-visual-line)

;;; edit-server-conf.el ends here

Make sure markdown-mode formats correctly
edit-server: Make sure markdown-mode formats correctly

pjones/emacsrc