diff --git a/doom.d/config.el b/doom.d/config.el index 3ceeca8..556231a 100644 --- a/doom.d/config.el +++ b/doom.d/config.el @@ -113,6 +113,9 @@ ;; TODO: Make this conditional so we can make the correct choice on macos (setq alert-default-style 'libnotify)) +(after! dired + (setq dired-omit-files "\\`[.]?#\\|\\`[.]?\\'\\|^\\.DS_Store\\'\\|^\\.project\\(?:ile\\)?\\'\\|^\\.\\(?:svn\\|git\\)\\'\\|^\\.ccls-cache\\'\\|\\(?:\\.js\\)?\\.meta\\'\\|\\.\\(?:elc\\|o\\|pyo\\|swp\\|class\\)\\'")) + (setq-default fill-column 100) (after! avy @@ -148,6 +151,9 @@ (use-package! deadgrep :bind ("C-c s r" . deadgrep)) +(after! flyspell + (add-hook 'prog-mode-hook #'flyspell-prog-mode)) + (setq org-hide-emphasis-markers t org-pretty-entities t) diff --git a/doom.d/config.org b/doom.d/config.org index 36bffd1..f5fc148 100644 --- a/doom.d/config.org +++ b/doom.d/config.org @@ -5,7 +5,6 @@ My doom emacs configuration * Basic Doom stuff - The provided default ~config.el~ #+begin_src emacs-lisp @@ -150,6 +149,12 @@ Configure notifications that originate from within emacs ;; TODO: Make this conditional so we can make the correct choice on macos (setq alert-default-style 'libnotify)) #+end_src +** Dired +Modify the ~dired-omit-files~ regex to exclude the current working directory (~.~), but not the parent directory(~..~). +#+begin_src emacs-lisp +(after! dired + (setq dired-omit-files "\\`[.]?#\\|\\`[.]?\\'\\|^\\.DS_Store\\'\\|^\\.project\\(?:ile\\)?\\'\\|^\\.\\(?:svn\\|git\\)\\'\\|^\\.ccls-cache\\'\\|\\(?:\\.js\\)?\\.meta\\'\\|\\.\\(?:elc\\|o\\|pyo\\|swp\\|class\\)\\'")) +#+end_src * Basic Editing ** Fill Column Set the default fill column to 100 @@ -217,7 +222,12 @@ Ripgrep, but from within emacs (use-package! deadgrep :bind ("C-c s r" . deadgrep)) #+end_src - +** Spell Checking +Hook ~flyspell-prog-mode~ into ~prog-mode~ +#+begin_src emacs-lisp +(after! flyspell + (add-hook 'prog-mode-hook #'flyspell-prog-mode)) +#+end_src * Org Mode Improvements to the best mode in emacs diff --git a/doom.d/init.el b/doom.d/init.el index 0e3486f..23a8383 100644 --- a/doom.d/init.el +++ b/doom.d/init.el @@ -15,19 +15,17 @@ ;; directory (for easy access to its source code). (doom! :completion - company ; the ultimate code completion backend + (company +childframe) ; the ultimate code completion backend (ivy +fuzzy +precient +childframe +icons) :ui doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs - (emoji +unicode +github) ; 🙂 + (emoji +unicode) ; 🙂 hl-todo ; highlight todo-words indent-guides ; highlighted indent columns - ;;(ligatures +fira) ; ligatures and symbols to make your code pretty again modeline ; snazzy, Atom-inspired modeline, plus API nav-flash ; blink cursor line after big motions - ;; ophints ; highlight the region an operation acts on (popup +defaults) ; tame sudden yet inevitable temporary windows tabs ; a tab bar for Emacs (treemacs +lsp) ; a project drawer, like neotree but cooler @@ -40,7 +38,7 @@ file-templates ; auto-snippets for empty files fold ; (nigh) universal code folding (format +onsave) ; automated prettiness - ;; multiple-cursors ; editing in many places at once + multiple-cursors ; editing in many places at once rotate-text ; cycle region at point between text candidates snippets ; my elves. They type so I don't have to word-wrap ; soft wrapping with language-aware indent @@ -91,18 +89,12 @@ (kotlin +lsp) (java +lsp +meghanada) (javascript +lsp) + :email (mu4e +org) - ;;notmuch - ;;(wanderlust +gmail) :app - ;;calendar - ;; emms - ;;everywhere ; *leave* Emacs!? You must be joking - ;;irc ; how neckbeards socialize (rss +org) ; emacs as an RSS reader - ;;twitter ; twitter client https://twitter.com/vnought :config literate