Added direnv to emacs config
This commit is contained in:
parent
40b93567d1
commit
0a49ce845b
@ -32,6 +32,7 @@
|
||||
# List packages installed in system profile.
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
vim
|
||||
screen
|
||||
killall
|
||||
];
|
||||
|
@ -61,6 +61,16 @@ Company is a package that automatically finds completions instead of making the
|
||||
:init (global-flycheck-mode))
|
||||
#+end_src
|
||||
|
||||
** Direnv for Nix-Shell Integration
|
||||
|
||||
Direnv is a program that will automatically run ~nix-shell~ when a ~.envrc~ file is found. Using the ~emacs-direnv~ package, you can more easily integrate nix into your development environment.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package direnv
|
||||
:config
|
||||
(direnv-mode))
|
||||
#+end_src
|
||||
|
||||
* Language Servers
|
||||
|
||||
This will include any language server packages and configuration.
|
||||
|
@ -23,15 +23,24 @@
|
||||
nodePackages.vscode-json-languageserver
|
||||
];
|
||||
|
||||
programs.emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs29;
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
mu4e
|
||||
vterm
|
||||
all-the-icons
|
||||
nerd-icons
|
||||
];
|
||||
programs = {
|
||||
# For integration with shell.nix files
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
emacs = {
|
||||
enable = true;
|
||||
package = pkgs.emacs29;
|
||||
extraPackages = epkgs: with epkgs; [
|
||||
mu4e
|
||||
vterm
|
||||
all-the-icons
|
||||
nerd-icons
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
home.file = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user