Update README.md

This commit is contained in:
James Cherti
2025-03-11 12:09:37 -04:00
parent ef460b51e8
commit c52d9468b3

View File

@@ -738,14 +738,19 @@ To configure **flyspell**, add the following to `~/.emacs.d/post-init.el`:
:defer t :defer t
:commands flyspell-mode :commands flyspell-mode
:hook :hook
((text-mode . flyspell-mode) ((prog-mode . flyspell-prog-mode)
(prog-mode . flyspell-prog-mode)) (text-mode . (lambda()
(if (or (derived-mode-p 'yaml-mode)
(derived-mode-p 'yaml-ts-mode)
(derived-mode-p 'ansible-mode))
(flyspell-prog-mode)
(flyspell-mode 1)))))
:config :config
;; Remove strings from Flyspell ;; Remove strings from Flyspell
(setq flyspell-prog-text-faces (delq 'font-lock-string-face (setq flyspell-prog-text-faces (delq 'font-lock-string-face
flyspell-prog-text-faces)) flyspell-prog-text-faces))
;; Remove docstrings from Flyspell ;; Remove doc from Flyspell
(setq flyspell-prog-text-faces (delq 'font-lock-doc-face (setq flyspell-prog-text-faces (delq 'font-lock-doc-face
flyspell-prog-text-faces))) flyspell-prog-text-faces)))
``` ```
@@ -924,9 +929,6 @@ To prevent Emacs from saving customization information to a custom file, set `cu
"\\|^flymake_.*")) "\\|^flymake_.*"))
(add-hook 'dired-mode-hook #'dired-omit-mode) (add-hook 'dired-mode-hook #'dired-omit-mode)
;; Enable on-the-fly spell checking (Flyspell mode).
(add-hook 'text-mode-hook #'flyspell-mode)
;; Configure Emacs to ask for confirmation before exiting ;; Configure Emacs to ask for confirmation before exiting
(setq confirm-kill-emacs 'y-or-n-p) (setq confirm-kill-emacs 'y-or-n-p)