diff options
author | Ashton Wiersdorf <mail@wiersdorf.dev> | 2024-12-14 16:59:30 -0700 |
---|---|---|
committer | Ashton Wiersdorf <mail@wiersdorf.dev> | 2024-12-14 16:59:30 -0700 |
commit | 24890d2c26b26d1543bbc8ab4cb05cf5aafc04d9 (patch) | |
tree | 06fdeef50fde0d68e625e8c70df193495c60970c | |
parent | c5aeec258e9e77d37e3c16a0af350a1db15ab6c9 (diff) |
Comments, add writer.el config
-rw-r--r-- | extras/base.el | 4 | ||||
-rw-r--r-- | extras/writer.el | 62 |
2 files changed, 65 insertions, 1 deletions
diff --git a/extras/base.el b/extras/base.el index 295e76c..7f4dd1a 100644 --- a/extras/base.el +++ b/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 diff --git a/extras/writer.el b/extras/writer.el new file mode 100644 index 0000000..3fe801c --- /dev/null +++ b/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)) + ) |