(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))

(add-hook
 'markdown-mode-hook
 (lambda ()
   (local-unset-key (kbd "<backtab>"))
   (defvar markdown-indent-on-enter "markdown-mode.el")
   (setq markdown-indent-on-enter nil)
   ;; Clean whitespace on save (except in /Developer/).
   (add-hook 'before-save-hook
             (lambda ()
               (unless
                   (string-match "/Developer/" default-directory)
                 (whitespace-cleanup))) nil t)
   ;; Use visual-line-mode instead of auto-fill-mode
   (auto-fill-mode 0)
   (visual-line-mode 1)
   ;; Disable flycheck
   (flycheck-mode 0)
   ;; Disable company-mode
   (company-mode 0)))

(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))

(add-hook
 'markdown-mode-hook
 (lambda ()
   (local-unset-key (kbd "<backtab>"))
   (defvar markdown-indent-on-enter "markdown-mode.el")
   (setq markdown-indent-on-enter nil)
   ;; Clean whitespace on save (except in /Developer/).
   (add-hook 'before-save-hook
             (lambda ()
               (unless
                   (string-match "/Developer/" default-directory)
                 (whitespace-cleanup))) nil t)
   ;; Use visual-line-mode instead of auto-fill-mode
   (auto-fill-mode 0)
   (visual-line-mode 1)
   ;; Disable flycheck
   (flycheck-mode 0)
   ;; Disable company-mode
   (company-mode 0)
   ;; Turn on subword mode.
   (subword-mode)
   (require 'diminish)
   (diminish 'subword-mode)))

Enable subword mode in markdown
Enable subword mode in markdown

kaidadragonfly/.emacs