Browse Source

enable flyspell-mode for markdown files

pull/1/head
10sr 10 years ago
parent
commit
812f146cc2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      emacs.el

+ 2
- 1
emacs.el View File

@@ -939,7 +939,7 @@ found, otherwise returns nil."
(setq sh-here-document-word "__EOC__") (setq sh-here-document-word "__EOC__")


(defun my-execute-shell-command-current-line () (defun my-execute-shell-command-current-line ()
"Run current line as shell command"
"Run current line as shell command."
(interactive) (interactive)
(shell-command (buffer-substring-no-properties (point-at-bol) (shell-command (buffer-substring-no-properties (point-at-bol)
(point)))) (point))))
@@ -1002,6 +1002,7 @@ found, otherwise returns nil."
(add-hook 'markdown-mode-hook (add-hook 'markdown-mode-hook
(lambda () (lambda ()
(outline-minor-mode 1) (outline-minor-mode 1)
(flyspell-mode)
(set (make-local-variable 'comment-start) ";")))) (set (make-local-variable 'comment-start) ";"))))


;; http://d.hatena.ne.jp/emergent/20070203/1170512717 ;; http://d.hatena.ne.jp/emergent/20070203/1170512717


Loading…
Cancel
Save