From 049df0ec3dfcbaff86efa612082fd73672570062 Mon Sep 17 00:00:00 2001 From: earnest ma Date: Sat, 19 Nov 2022 14:59:16 -0500 Subject: [PATCH] doom: Update project config, completion, spell-checking --- doom/.config/doom/+projects.el | 4 +++- doom/.config/doom/+ui.el | 2 +- doom/.config/doom/config.el | 5 +++++ doom/.config/doom/init.el | 4 ++-- doom/.config/doom/snippets/git-commit-mode/relates-to | 5 +++++ 5 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 doom/.config/doom/snippets/git-commit-mode/relates-to diff --git a/doom/.config/doom/+projects.el b/doom/.config/doom/+projects.el index 5728cae..e15e740 100644 --- a/doom/.config/doom/+projects.el +++ b/doom/.config/doom/+projects.el @@ -8,7 +8,9 @@ Most of them are managed using `ghq' in ~/ghq/, however there are also some projects in other locations.") -(after! projectile +(use-package! projectile + :init + (setq projectile-auto-discover t) (setq projectile-project-search-path project-locations)) (after! magit diff --git a/doom/.config/doom/+ui.el b/doom/.config/doom/+ui.el index 1c50769..ee61279 100644 --- a/doom/.config/doom/+ui.el +++ b/doom/.config/doom/+ui.el @@ -14,7 +14,7 @@ ;; pop-ups (setq which-key-idle-delay 0.25) -(setq company-idle-delay 0.1) +(setq company-idle-delay 0.25) ;; centaur tabs issue: https://github.com/ema2159/centaur-tabs/issues/181 (after! centaur-tabs diff --git a/doom/.config/doom/config.el b/doom/.config/doom/config.el index ce9dcf6..7841a5c 100644 --- a/doom/.config/doom/config.el +++ b/doom/.config/doom/config.el @@ -69,6 +69,11 @@ the compiled PDF version) in pympress." (start-process "pympress" nil "pympress" (replace-regexp-in-string "\.tex" ".pdf" buffer-file-name))) ;; (async-shell-command (concat "pympress " (replace-regexp-in-string "\.tex" ".pdf" buffer-file-name)))) +(use-package! ispell + :config + (setq ispell-personal-dictionary (expand-file-name "~/.aspell.en.pws")) + (setq ispell-dictionary "en_CA")) + ;; Whenever you reconfigure a package, make sure to wrap your config in an ;; `after!' block, otherwise Doom's defaults may override your settings. E.g. ;; diff --git a/doom/.config/doom/init.el b/doom/.config/doom/init.el index ae50bd9..c53dbcc 100644 --- a/doom/.config/doom/init.el +++ b/doom/.config/doom/init.el @@ -44,7 +44,7 @@ ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows tabs ; a tab bar for Emacs - treemacs ; a project drawer, like neotree but cooler + (treemacs +lsp) ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages vc-gutter ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB @@ -81,7 +81,7 @@ :checkers syntax ; tasing you for every semicolon you forget - ;;(spell +flyspell) ; tasing you for misspelling mispelling + (spell +flyspell) ; tasing you for misspelling mispelling ;;grammar ; tasing grammar mistake every you make :tools diff --git a/doom/.config/doom/snippets/git-commit-mode/relates-to b/doom/.config/doom/snippets/git-commit-mode/relates-to new file mode 100644 index 0000000..03cd2fc --- /dev/null +++ b/doom/.config/doom/snippets/git-commit-mode/relates-to @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: Relates-to: ... +# key: rel +# -- +Relates-to: [${0}] \ No newline at end of file