commit 24890d2c26b26d1543bbc8ab4cb05cf5aafc04d9 from: Ashton Wiersdorf date: Sat Dec 14 23:59:30 2024 UTC Comments, add writer.el config commit - c5aeec258e9e77d37e3c16a0af350a1db15ab6c9 commit + 24890d2c26b26d1543bbc8ab4cb05cf5aafc04d9 blob - 295e76c545e21c0a0c8e5a762062a018088ba23f blob + 7f4dd1ab11c14dab6beef2a19447b12b4272e070 --- extras/base.el +++ extras/base.el @@ -64,6 +64,8 @@ ;; Narrowing lets you restrict results to certain groups of candidates (setq consult-narrow-key "<")) +;; Embark: supercharged context-dependent menu; kinda like a +;; super-charged right-click. (use-package embark :ensure t :demand t @@ -112,7 +114,7 @@ :config (marginalia-mode)) -;; Popup completion-at-point +;; Corfu: Popup completion-at-point (use-package corfu :ensure t :init blob - /dev/null blob + 3fe801c8b779145b8e31ac46b79db730e5c3b719 (mode 644) --- /dev/null +++ extras/writer.el @@ -0,0 +1,62 @@ +;;; Emacs Bedrock +;;; +;;; Extra config: Writer + +;;; Usage: Append or require this file from init.el for writing aids. +;;; +;;; Jinx is a spell-checking package that is performant and flexible. +;;; You can use Jinx inside of programming modes and it will only +;;; check spelling inside of strings and comments. (Configurable, of +;;; course.) It also supports having multiple languages (e.g. English +;;; and German) in the same file. +;;; +;;; Olivetti narrows the window margins so that your text is centered. +;;; This makes writing in a wide, dedicated window more pleasant. +;;; +;;; NOTE: the Olivetti package lives on the MELPA repository; you will +;;; need to update the `package-archives' variable in init.el before +;;; before loading this file; see the comment in init.el under +;;; "Package initialization". + +;;; Contents: +;;; +;;; - Spell checking +;;; - Dictionary +;;; - Distraction mitigation + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Spell checking +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; Jinx: Enchanted spell-checking +(use-package jinx + :ensure t + :hook (((text-mode prog-mode) . jinx-mode)) + :bind (("C-;" . jinx-correct)) + :custom + (jinx-camel-modes '(prog-mode)) + (jinx-delay 0.01)) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Dictionary +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(setopt dictionary-use-single-buffer t) +(setopt dictionary-server "dict.org") + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;;; +;;; Distraction mitigation +;;; +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +;; Olivetti: Set the window margins so your text is centered +(use-package olivetti + :ensure t + ;; Uncomment below to make olivetti-mode turn on automatically in certain modes + ; :hook ((markdown-mode . olivetti-mode)) + )