emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 48bc7a81c73a2d74b748e63adec2abae1d3a0c04
parent 8fd1b14dc7360bbed7ccc0b56ea04576cada4b3a
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri, 17 Jul 2020 23:46:07 +0300

spelling: configure flyspell and ispell for easier usage on Emacs.

flyspell is now enabled on all text-mode buffers.

Diffstat:
Minit.org | 22++++++++++++++++++++++
1 file changed, 22 insertions(+), 0 deletions(-)

diff --git a/init.org b/init.org @@ -60,6 +60,7 @@ this file itself. - [[#coding-system-for-terminal][Coding System for Terminal]] - [[#backup-options][Backup Options]] - [[#set-browser][Set Browser]] + - [[#spelling][Spelling]] - [[#local-init-file][Local init file]] - [[#end-of-the-file][End of the file]] @@ -1036,6 +1037,27 @@ so that I don't have to keep track of it in case I ever change my browser. browse-url-browser-function 'browse-url-generic)) #+END_SRC +** Spelling + +As a person who constantly writes documents, spelling is an important part of +the day, huh? + +#+BEGIN_SRC emacs-lisp + (use-package flyspell + :if (executable-find "aspell") + :bind (("C-c i r" . flyspell-region) + ("C-c i b" . flyspell-buffer) + ("C-c i m" . flyspell-mode)) + :hook (text-mode . flyspell-mode)) + + (use-package ispell + :if (executable-find "aspell") + :bind ("C-c i c" . ispell-change-dictionary) + :custom + (ispell-program-name (executable-find "aspell")) + (ispell-list-command "--list")) +#+END_SRC + ** Local init file Now that all of this is done, we can load user's personal configuration