summaryrefslogblamecommitdiff
path: root/config/init-writing.el
blob: c60a18a0a10ae96b7148b4f82a96ee18c4ee1670 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                                      














                                                           



                             
;;; init-writing.el --- Configure things related to writing -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>

;;; Commentary:

;; Configure things related to writing

;;; Code:

(require 'init-markdown)

(use-package flyspell
  :commands (flyspell-mode flyspell-prog-mode)
  :hook ((text-mode . flyspell-mode)
	 (org-mode . flyspell-mode)
	 (git-commit-mode . flyspell-mode)
	 (prog-mode . flyspell-prog-mode))
  :if (setq ispell-program-name (executable-find "aspell"))
  :diminish flyspell-mode
  :bind (:map flyspell-mode-map
              ("C-." . nil)
              ("C-;" . nil))
  :custom
  (ispell-silently-savep t)
  (ispell-local-dictionary "en_US")
  (ispell-extra-args '("--camel-case")))

(provide 'init-writing)

;;; init-writing.el ends here