From 02884d752ff5320e41e23dd5a62e1243639de189 Mon Sep 17 00:00:00 2001 From: benj Date: Mon, 27 Nov 2023 14:24:52 -0800 Subject: basic org config and jinx sp check --- init.el | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/init.el b/init.el index 6d3c728..db84135 100644 --- a/init.el +++ b/init.el @@ -50,6 +50,7 @@ ;; Custom load paths, files, and directories (setq custom-file (expand-file-name "custom.el" user-emacs-directory)) (setq templates-dir (expand-file-name "templates" user-emacs-directory)) + (setq org-dir (expand-file-name ".org")) (add-to-list 'load-path templates-dir) @@ -163,6 +164,14 @@ :init (global-hl-todo-mode)) +(use-package jinx + :ensure t + :hook ((text-mode . jinx-mode) + (org-mode . jinx-mode)) + :bind (("" . 'jinx-correct) + ("M-$" . 'jinx-correct) + ("C-M-$" . 'sjinx-languages))) + (use-package lsp-mode :ensure t :commands lsp) @@ -226,6 +235,15 @@ (completion-styles '(orderless basic)) (completion-category-overrides'((file (styles basic partial-completion))))) +(use-package org-mode + :mode "\\.org$" + :bind ("C-c o c" . 'org-capture) + :custom + (org-todo-keywords `((sequence "Backlog(b)" "Todo(t)" "In Progress(i)" "|" "Done(d)" "Cancelled(c)"))) + (org-capture-templates + `(("i" "Inbox" entry (file+headline ,(concat org-dir "/inbox.org") "Inbox") "* Todo %?\nCreated: %T\n" :empty-lines 0) + ("j" "Journal Entry" entry (file+datetree ,(concat org-dir "/journal.org")) "* %?" :empty-lines 0)))) + (use-package rust-mode :ensure t :bind ((:map rust-mode-map -- cgit v1.2.3