;;; -*- lexical-binding: t -*- ;; Time-stamp: <2026-06-23 10h11 BST (4331e7a1)> ;; ----------------------------------------------------------------------------- ;; Spelling (use-package spell-fu :ensure :defer :config (setq ispell-dictionary "en_GB-ise-w_accents" ispell-personal-dictionary "~/.aspell.en.pws") ;; The default was this "\\b\\([[:alpha:]][[:alpha:]']*\\)\\b", but that ;; didn't play well with ``LaTeX's quoting system''. (setq-default spell-fu-word-regexp "\\([[:alpha:]]+\\('[[:alpha:]]+\\)*\\)" spell-fu-faces-exclude '(font-latex-math-face font-latex-sedate-face font-lock-keyword-face font-lock-function-name-face font-lock-variable-name-face))) (setq sentence-end-double-space nil) (add-hook 'text-mode-hook (lambda () (setq line-spacing 4) (subword-mode 1) (electric-pair-local-mode 1) ;; (turn-on-auto-fill) (visual-line-mode 1) (siege-mode 1) (spell-fu-mode 1))) (use-package dictionary :ensure :defer) ;; ----------------------------------------------------------------------------- ;; Markdown (use-package markdown-mode :ensure :defer :hook (markdown-mode . (lambda () (auto-fill-mode -1) (setq-local electric-pair-text-pairs (append '((?{ . ?}) (?` . ?`) (?$ . ?$)) electric-pair-pairs)) (electric-pair-local-mode 1) (visual-line-mode)))) ;; ----------------------------------------------------------------------------- ;; Org (use-package org :defer :bind (:map org-mode-map ("M-h" . nil)) ;; :hook (org-mode . (lambda () ;; (activate-input-method default-input-method))) :config (setq org-use-sub-superscripts (quote {}) org-modules nil))