From fbba5d21a58c6b1a989a4f512f8d7f4b4b9d8f5d Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Tue, 19 Oct 2021 11:34:44 +0200 Subject: [PATCH] config/doom: add auto-correct and fix C-c C-c --- .config/doom/config.el | 10 +++++----- .config/doom/packages.el | 3 +++ .../snippets/org-mode/bibleserver-slt-reference-verse | 1 - 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 22aef62..6cd97f2 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -113,14 +113,14 @@ Version 2019-11-04 2021-02-16" ;;;; GLOBAL SETUP -(setq confirm-kill-emacs nil) +(setq confirm-kill-emacs nil + lazy-highlight-cleanup nil + large-file-warning-threshold 40000000) (setq initial-major-mode 'org-mode) (add-to-list 'auto-mode-alist '("/journal/" . org-mode)) - (whitespace-mode 0) - -(setq lazy-highlight-cleanup nil) +(auto-correct-mode) ;;; UTF-8 encoding - https://zhangda.wordpress.com/2016/02/15/configurations-for-beautifying-emacs-org-mode/ ;; disable CJK coding/encoding (Chinese/Japanese/Korean characters) @@ -162,7 +162,7 @@ Version 2019-11-04 2021-02-16" kept-old-versions 3 ) -;; Data dirs +;; Directory configuration (defvar user-data-dir "~/data/" "Location of the main user data") diff --git a/.config/doom/packages.el b/.config/doom/packages.el index 6f2d154..d2a4d55 100644 --- a/.config/doom/packages.el +++ b/.config/doom/packages.el @@ -55,6 +55,9 @@ (package! ox-context :recipe (:host github :repo "Jason-S-Ross/ox-context")) +; https://elpa.gnu.org/packages/auto-correct.html +(package! auto-correct) + (package! evil-tutor) ; dark vim tutor (package! evil-args) ; motions in args (package! evil-replace-with-register) ; grrrrr diff --git a/.config/doom/snippets/org-mode/bibleserver-slt-reference-verse b/.config/doom/snippets/org-mode/bibleserver-slt-reference-verse index ed3562c..14235e8 100644 --- a/.config/doom/snippets/org-mode/bibleserver-slt-reference-verse +++ b/.config/doom/snippets/org-mode/bibleserver-slt-reference-verse @@ -1,6 +1,5 @@ # -*- mode: snippet -*- # name: Org Reference Bibleserver Verse # key: bv -# binding: C-c C-c b # -- {[[https://www.bibleserver.com/SLT.KJV/$1$2[$2]}$0