From 1d2c5c5e542544b2799c5347f99f88512a8cdae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Wed, 18 Dec 2019 18:43:13 +0100 Subject: [PATCH] spell checking git commits, use flycheck, rename functions --- init.el | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 3e29b08..1041789 100644 --- a/init.el +++ b/init.el @@ -283,15 +283,21 @@ ;;; ### Spell checking ### -(defun am () +(setq ispell-dictionary "american") + +(defun my-american-dict () "Change dictionary to american." (interactive) - (setq ispell-local-dictionary "american")) + (setq ispell-local-dictionary "american") + (flyspell-mode 1) + (flyspell-buffer)) -(defun pl () +(defun my-polish-dict () "Change dictionary to polish." (interactive) - (setq ispell-local-dictionary "polish")) + (setq ispell-local-dictionary "polish") + (flyspell-mode 1) + (flyspell-buffer)) (defalias 'ir #'ispell-region) @@ -316,6 +322,9 @@ (use-package magit :bind ("C-x g" . magit-status)) +(use-package git-commit + :hook (git-commit-mode . my-american-dict)) + (use-package git-messenger :bind ("C-x G" . git-messenger:popup-message) :config