This commit is contained in:
Sakooooo 2023-12-26 14:53:46 +04:00
parent b4a8cba204
commit 79f15beaac
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 21 additions and 5 deletions

View file

@ -1,5 +1,5 @@
#+title: Sakomacs configuration
#+PROPERTY: header-args:emacs-lisp :tangle yes
#+PROPERTY: header-args:emacs-lisp :tangle yes :tangle init.el
* Usage
M-x org-bable-tangle
* Lexical Binding
@ -97,7 +97,7 @@ Should make startup faster, taken from doom-emacs
(unless package-archive-contents
(package-refresh-contents))
;; Init package for non-linux
;; install the thing
(unless (package-installed-p `use-package)
(package-install `use-package))

View file

@ -29,6 +29,9 @@ in {
package = pkgs.emacs-pgtk;
alwaysEnsure = true;
alwaysTangle = true;
extraEmacsPackages = epkgs: [
epkgs.use-package
];
};
};
users.users.sako.packages = with pkgs; [
@ -36,6 +39,19 @@ in {
direnv
];
home-manager.users.sako = {lib, ...}: {
home.file = {
".emacs.d/init.el".source = pkgs.runCommand "init.el" {} ''
cp ${../../../../config/emacs/emacs.org} emacs.org
${pkgs.emacs}/bin/emacs -Q --batch ./emacs.org -f org-babel-tangle
mv init.el $out
'';
# Create the auto-saves directory
# ".emacs.d/auto-saves/.manage-directory".text = "";
};
};
fonts.packages = with pkgs; [
(nerdfonts.override {fonts = ["JetBrainsMono"];})
jetbrains-mono