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