home/natto/emacs: add direnv and misc changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-12-05 14:39:27 +05:30
parent df682cdebe
commit eac8edecd9
5 changed files with 16 additions and 6 deletions

View File

@@ -246,6 +246,13 @@ For autocomplete
(add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
#+end_src
** Direnv
#+begin_src emacs-lisp
(use-package direnv
:config
(direnv-mode))
#+end_src
** Lang support
#+begin_src emacs-lisp
(use-package inform7)

View File

@@ -23,5 +23,6 @@
};
go.enable = true;
password-store.enable = true;
direnv.enable = true;
};
}

View File

@@ -6,7 +6,9 @@ in
services = {
baremacs = {
enable = true;
package = pkgs.mymacs ./config/emacs/config.org;
package = pkgs.mymacs.override {
config = ./config/emacs/config.org;
};
defaultEditor = {
enable = false;
editor = "emacsclient";

View File

@@ -4,15 +4,15 @@
, fetchurl
, fetchFromGitHub
, emacsNativeComp
, conf ? null
, config ? null
, package ? emacsNativeComp
, ...
}:
assert (conf != null);
assert (config != null);
emacsWithPackagesFromUsePackage {
config = conf;
package = emacsNativeComp;
inherit config package;
alwaysEnsure = true;
alwaysTangle = true;
extraEmacsPackages = epkgs: with epkgs; [

View File

@@ -5,7 +5,7 @@ let
mpd_discord_richpresence = call ./mpd-rpc { };
customscripts = call ./customscripts { };
gruvbox-icons = call ./gruvbox-icons { };
mymacs = c: call ./emacs { conf = c; };
mymacs = call ./emacs { };
tlauncher = call ./tlauncher { };
simp1e-cursors = call ./simp1e { };
}