spell checking git commits, use flycheck, rename functions
This commit is contained in:
parent
89e8072992
commit
1d2c5c5e54
17
init.el
17
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user