2022-09-22 08:41:52 +02:00
|
|
|
(use-package flycheck)
|
2022-08-20 17:20:21 +02:00
|
|
|
|
|
|
|
;; https://www.reddit.com/r/emacs/comments/931la6/tip_how_to_adopt_flycheck_as_your_new_best_friend/
|
|
|
|
(defhydra hydra-flycheck (:color blue)
|
|
|
|
"
|
|
|
|
^
|
|
|
|
^Flycheck^ ^Errors^ ^Checker^
|
|
|
|
^────────^──────────^──────^────────────^───────^─────
|
|
|
|
_q_ quit _<_ previous _?_ describe
|
|
|
|
_M_ manual _>_ next _d_ disable
|
|
|
|
_v_ verify setup _f_ check _m_ mode
|
|
|
|
^^ _l_ list _s_ select
|
|
|
|
^^ ^^ ^^
|
|
|
|
"
|
|
|
|
("q" nil)
|
|
|
|
("<" flycheck-previous-error :color pink)
|
|
|
|
(">" flycheck-next-error :color pink)
|
|
|
|
("?" flycheck-describe-checker)
|
|
|
|
("M" flycheck-manual)
|
|
|
|
("d" flycheck-disable-checker)
|
|
|
|
("f" flycheck-buffer)
|
|
|
|
("l" flycheck-list-errors)
|
|
|
|
("m" flycheck-mode)
|
|
|
|
("s" flycheck-select-checker)
|
|
|
|
("v" flycheck-verify-setup))
|
|
|
|
|
|
|
|
;; ispell settings
|
2022-09-01 09:13:18 +02:00
|
|
|
(setenv "DICTIONARY" "en_GB")
|
2022-08-20 17:20:21 +02:00
|
|
|
(setq ispell-program-name "hunspell")
|
2022-09-01 09:13:18 +02:00
|
|
|
(setq ispell-local-dictionary "en_GB")
|
2022-08-20 17:20:21 +02:00
|
|
|
(setq ispell-local-dictionary-alist
|
2022-09-01 09:13:18 +02:00
|
|
|
'(("en_GB" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "en_GB") nil utf-8)
|
2022-08-20 17:20:21 +02:00
|
|
|
("de_CH" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "de_CH") nil utf-8)))
|