From e7b1508a6007dcf9fd337de6cbec50c93f3a08ce Mon Sep 17 00:00:00 2001 From: Sravan Balaji Date: Sun, 12 Nov 2023 12:45:48 -0500 Subject: [PATCH] Fix Doom Doctor Warnings - Disable support for unused languages - Add dotfiles to projectile search path - Add shell settings so bash is used internally and fish is used for terminal emulators --- README.org | 22 +++++++++++++++++----- config.el | 7 ++++++- init.el | 8 ++++---- 3 files changed, 27 insertions(+), 10 deletions(-) diff --git a/README.org b/README.org index 6d7000e..532eb47 100644 --- a/README.org +++ b/README.org @@ -32,6 +32,7 @@ - [[#automatically-revert-buffers-for-changed-files][Automatically Revert Buffers For Changed Files]] - [[#rainbow-mode][Rainbow Mode]] - [[#debugging][Debugging]] + - [[#shell][Shell]] - [[#packagesel][packages.el]] - [[#packages][Packages]] @@ -217,15 +218,15 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo ;;gdscript ; the language you waited for ;;(go +lsp) ; the hipster dialect ;;(graphql +lsp) ; Give queries a REST - (haskell +lsp) ; a language that's lazier than I am + ;;(haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on (json +lsp) ; At least it ain't XML - (java +lsp) ; the poster child for carpal tunnel syndrome + ;;(java +lsp) ; the poster child for carpal tunnel syndrome (javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) - (julia +lsp) ; a better, faster MATLAB + ;;(julia +lsp) ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) - (latex +cdlatex +lsp ) ; writing papers in Emacs has never been so fun + (latex +cdlatex +lsp) ; writing papers in Emacs has never been so fun ;;lean ; for folks with too much to prove ;;ledger ; be audit you can be ;;lua ; one-based indices? one-based indices @@ -756,7 +757,7 @@ If you use =org= and don't want your org files in the default location below, ch *** Projectile #+BEGIN_SRC emacs-lisp :tangle config.el -(setq projectile-project-search-path '("~/Git/" "~/.config/")) +(setq projectile-project-search-path '("~/Git/" "~/.config/" "~/.dotfiles/")) #+END_SRC *** Prettier Formatter @@ -839,6 +840,17 @@ Revert buffers when the underlying file has changed (setq dap-python-debugger 'debugpy)) #+END_SRC +*** Shell + +#+BEGIN_SRC emacs-lisp :tangle config.el +(setq shell-file-name (executable-find "bash")) +#+END_SRC + +#+BEGIN_SRC emacs-lisp :tangle config.el +(setq-default vterm-shell (executable-find "fish")) +(setq-default explicit-shell-file-name (executable-find "fish")) +#+END_SRC + ** packages.el To install a package with Doom you must declare them here and run =doom sync= on the command line, then restart Emacs for the changes to take effect -- or use =M-x doom/reload=. diff --git a/config.el b/config.el index 7131182..5c967d2 100644 --- a/config.el +++ b/config.el @@ -168,7 +168,7 @@ '(markdown-header-face-2 ((t (:inherit markdown-header-face :height 1.4)))) '(markdown-header-face-3 ((t (:inherit markdown-header-face :height 1.2))))) -(setq projectile-project-search-path '("~/Git/" "~/.config/")) +(setq projectile-project-search-path '("~/Git/" "~/.config/" "~/.dotfiles/")) (add-hook! 'web-mode-hook 'prettier-js-mode) @@ -217,3 +217,8 @@ (after! dap-mode (setq dap-python-debugger 'debugpy)) + +(setq shell-file-name (executable-find "bash")) + +(setq-default vterm-shell (executable-find "fish")) +(setq-default explicit-shell-file-name (executable-find "fish")) diff --git a/init.el b/init.el index f126d65..345eb72 100644 --- a/init.el +++ b/init.el @@ -123,15 +123,15 @@ ;;gdscript ; the language you waited for ;;(go +lsp) ; the hipster dialect ;;(graphql +lsp) ; Give queries a REST - (haskell +lsp) ; a language that's lazier than I am + ;;(haskell +lsp) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; a language you can depend on (json +lsp) ; At least it ain't XML - (java +lsp) ; the poster child for carpal tunnel syndrome + ;;(java +lsp) ; the poster child for carpal tunnel syndrome (javascript +lsp) ; all(hope(abandon(ye(who(enter(here)))))) - (julia +lsp) ; a better, faster MATLAB + ;;(julia +lsp) ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) - (latex +cdlatex +lsp ) ; writing papers in Emacs has never been so fun + (latex +cdlatex +lsp) ; writing papers in Emacs has never been so fun ;;lean ; for folks with too much to prove ;;ledger ; be audit you can be ;;lua ; one-based indices? one-based indices