Configure flyspell with manual activation and ispell timeout

This commit is contained in:
Fabio Scotto di Santolo
2026-04-16 12:24:22 +02:00
parent 6c38c28479
commit 523eb862d8
5 changed files with 54 additions and 43 deletions

View File

@@ -8,7 +8,7 @@
*** [[https://lewboski.dev/rss.xml][Lewboski Blog]] :linux: :kernel: *** [[https://lewboski.dev/rss.xml][Lewboski Blog]] :linux: :kernel:
** FOSS News :news: ** FOSS News :news:
*** [[https://lwn.net/headlines/rss][LWN News]] :linux: :kernel: :programming: :security: *** [[https://lwn.net/headlines/rss][LWN News]] :linux: :kernel: :programming: :security:
*** [[https://voidlinux.org/atom.xml][Void News] :linux: :voidlinux: *** [[https://voidlinux.org/atom.xml][Void News]] :linux: :voidlinux:
*** [[https://github.com/void-linux/void-packages/commits/master.atom][Void Packages]] :linux: :voidlinux: *** [[https://github.com/void-linux/void-packages/commits/master.atom][Void Packages]] :linux: :voidlinux:
** Youtube :youtube: ** Youtube :youtube:
*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg][DistroTube]] :emacs: :foss: :linux: *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg][DistroTube]] :emacs: :foss: :linux:

View File

@@ -1,37 +1,38 @@
(message "Welcome to Emacs") (message "Welcome to Emacs")
(message "Loading user configuration...") (message "Loading user configuration...")
(message "Emacs profile: %s" fscotto/emacs-profile) (message "Emacs profile: %s" fscotto/emacs-profile)
;;===================================================================================== ;;=====================================================================================
;; Load modules ;; Load modules
;;===================================================================================== ;;=====================================================================================
(fscotto/load-modules (fscotto/load-modules
;; Core ;; Core
'core/packages 'core/packages
'core/ui 'core/ui
'core/performance 'core/performance
'core/editor 'core/editor
'core/keybindings 'core/keybindings
'core/buffer 'core/buffer
;; Tools ;; Tools
'tools/completion 'tools/completion
'tools/dired 'tools/dired
'tools/project 'tools/project
'tools/lsp 'tools/spell
'tools/dap 'tools/lsp
'tools/treesitter 'tools/dap
'tools/treesitter
;; Languages
'lang/c ;; Languages
'lang/docker 'lang/c
'lang/golang 'lang/docker
'lang/json 'lang/golang
'lang/markdown 'lang/json
'lang/org 'lang/markdown
'lang/shell 'lang/org
'lang/yaml 'lang/shell
'lang/yaml
;; Misc ;; Misc
'misc/dashboard 'misc/dashboard
'misc/custom-functions 'misc/custom-functions
@@ -42,9 +43,9 @@
'misc/rss 'misc/rss
'misc/terminal 'misc/terminal
'misc/vcs 'misc/vcs
;; FIXME PDF viewer with annotations ;; FIXME PDF viewer with annotations
;; 'misc/pdf ;; 'misc/pdf
'misc/epub 'misc/epub
'misc/i3-config) 'misc/i3-config)
(message "...user configuration loaded") (message "...user configuration loaded")

View File

@@ -4,6 +4,7 @@
(global-set-key (kbd "C-x C-b") #'ibuffer) (global-set-key (kbd "C-x C-b") #'ibuffer)
(global-set-key (kbd "C-<return>") 'company-complete) (global-set-key (kbd "C-<return>") 'company-complete)
(global-set-key (kbd "M-n f") #'flyspell-buffer)
(defvar fscotto/leader-map (make-sparse-keymap) (defvar fscotto/leader-map (make-sparse-keymap)
"Keymap per comandi sotto C-c.") "Keymap per comandi sotto C-c.")

View File

@@ -12,8 +12,7 @@
org-startup-folded 'content org-startup-folded 'content
org-todo-keywords '((sequence "🆕(t)" "▶️(s)" "⏳(w)" "🔎(p)" "|" "✅(d)" "🗑(c)" "👨(g)"))) org-todo-keywords '((sequence "🆕(t)" "▶️(s)" "⏳(w)" "🔎(p)" "|" "✅(d)" "🗑(c)" "👨(g)")))
:config :config
(add-hook 'org-mode-hook 'org-indent-mode) (add-hook 'org-mode-hook 'org-indent-mode))
(add-hook 'org-mode-hook 'flyspell-mode))
(use-package org-bullets (use-package org-bullets
:ensure t :ensure t

View File

@@ -0,0 +1,10 @@
;;; spell.el -*- lexical-binding: t; -*-
(setq ispell-really-hunspell t
ispell-silently-savep t
ispell-ignore-sentence-boundary t
ispell-process-timeout 10)
(provide 'tools/spell)
;;; spell.el ends here