Skip to content

Commit

Permalink
[𝚫] (emacs): irkalla moving from literal -> modular config
Browse files Browse the repository at this point in the history
  • Loading branch information
Icy-Thought committed Sep 7, 2023
1 parent 66199c9 commit 6da7fb0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 22 deletions.
6 changes: 3 additions & 3 deletions config/shell-abbr/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
let
main = {
ls = "exa -Slhg --icons -s newest";
lsa = "exa -Slhga --icons -s newest";
tree = "exa -SlhgT --icons -s newest";
ls = "exa -Slhg --icons";
lsa = "exa -Slhga --icons";
tree = "exa -SlhgT --icons";
wget = "curl -O";
imgcat = "wezterm imgcat";

Expand Down
8 changes: 4 additions & 4 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 6 additions & 15 deletions modules/desktop/editors/emacs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,22 +119,13 @@ in {
};

home.configFile = {
irkalla-init = {
target = "emacs/init.org";
source = "${inputs.emacs-dir}/irkalla/init.org";
onChange = let
initFiles = "${config.hm.xdg.configHome}/emacs/init.org";
in ''
${cfg.package}/bin/emacs --batch \
--eval "(require 'ob-tangle)" \
--eval "(setq org-confirm-babel-evaluate nil)" \
--eval '(org-babel-tangle-file "${initFiles}")'
'';
irkalla-early-init = {
target = "emacs/early-init.el";
source = "${inputs.emacs-dir}/irkalla/early-init.el";
};
irkalla-lib = {
target = "emacs/lib";
source = "${inputs.emacs-dir}/irkalla/lib";
recursive = true;
irkalla-init = {
target = "emacs/init.el";
source = "${inputs.emacs-dir}/irkalla/init.el";
};
};
})
Expand Down

0 comments on commit 6da7fb0

Please sign in to comment.