spell checking git commits, use flycheck, rename functions

This commit is contained in:
Łukasz Pankowski 2019-12-18 18:43:13 +01:00
parent 89e8072992
commit 1d2c5c5e54

17
init.el
View File

@ -283,15 +283,21 @@
;;; ### Spell checking ### ;;; ### Spell checking ###
(defun am () (setq ispell-dictionary "american")
(defun my-american-dict ()
"Change dictionary to american." "Change dictionary to american."
(interactive) (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." "Change dictionary to polish."
(interactive) (interactive)
(setq ispell-local-dictionary "polish")) (setq ispell-local-dictionary "polish")
(flyspell-mode 1)
(flyspell-buffer))
(defalias 'ir #'ispell-region) (defalias 'ir #'ispell-region)
@ -316,6 +322,9 @@
(use-package magit (use-package magit
:bind ("C-x g" . magit-status)) :bind ("C-x g" . magit-status))
(use-package git-commit
:hook (git-commit-mode . my-american-dict))
(use-package git-messenger (use-package git-messenger
:bind ("C-x G" . git-messenger:popup-message) :bind ("C-x G" . git-messenger:popup-message)
:config :config