summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/init-flyspell.el3
-rw-r--r--lisp/init-org.el7
2 files changed, 3 insertions, 7 deletions
diff --git a/lisp/init-flyspell.el b/lisp/init-flyspell.el
index c72edcd..bf4769d 100644
--- a/lisp/init-flyspell.el
+++ b/lisp/init-flyspell.el
@@ -4,7 +4,8 @@
;; load flyspell automatically for these modes
:hook ((git-commit-mode . flyspell-mode)
- (gfm-mode . flyspell-mode))
+ (gfm-mode . flyspell-mode)
+ (org-mode . flyspell-mode))
:bind (:map flyspell-mode-map
("C-c s" . flyspell-correct-word-before-point)))
diff --git a/lisp/init-org.el b/lisp/init-org.el
index d56ae91..b9551ec 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -44,11 +44,6 @@
(setq org-src-tab-acts-natively t)
;; C-c captures tasks
- (global-set-key (kbd "C-c c") 'org-capture)
-
- ;; enable flyspell-mode
- (add-hook 'org-mode-hook
- (lambda ()
- (when (featurep 'flyspell) (flyspell-mode 1)))))
+ (global-set-key (kbd "C-c c") 'org-capture))
(provide 'init-org)