diff --git a/.doom.d/config.el b/.doom.d/config.el index 06b52e6..cb3c9c0 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -34,6 +34,10 @@ (setq browse-url-browser-function 'eww-browse-url) +(setq shell-file-name "/bin/fish") + +(setq eshell-aliases-file "~/.doom.d/aliases") + (defun prefer-horizontal-split () (set-variable 'split-height-threshold nil t) (set-variable 'split-width-threshold 40 t)) ; make this as low as needed diff --git a/.doom.d/config.org b/.doom.d/config.org index 453c452..a077630 100644 --- a/.doom.d/config.org +++ b/.doom.d/config.org @@ -69,6 +69,17 @@ Set urls to open in a specific browser. I set this to use Emacs' own browser (e (setq browse-url-browser-function 'eww-browse-url) #+END_SRC +* SHELLS +The =inferior shell= is what you get when you run M-x shell. It is a wrapper around your default shell. It is governed by explicit-shell-file-name, the ESHELL environment variable or shell-file-name, in that order. Below, I demonstrate how to change shell to use fish even though the default shell may be something else. This will also make M-x term and M-x ansi-term default to fish, though it asks you to confirm before it launches. +#+BEGIN_SRC emacs-lisp +(setq shell-file-name "/bin/fish") +#+END_SRC + +Sets the file for where I place my eshell aliases. +#+BEGIN_SRC emacs-lisp +(setq eshell-aliases-file "~/.doom.d/aliases") +#+END_SRC + * SPLITS Force splits to open on the right #+BEGIN_SRC emacs-lisp