lmao
This commit is contained in:
parent
b4a8cba204
commit
79f15beaac
|
@ -1,5 +1,5 @@
|
||||||
#+title: Sakomacs configuration
|
#+title: Sakomacs configuration
|
||||||
#+PROPERTY: header-args:emacs-lisp :tangle yes
|
#+PROPERTY: header-args:emacs-lisp :tangle yes :tangle init.el
|
||||||
* Usage
|
* Usage
|
||||||
M-x org-bable-tangle
|
M-x org-bable-tangle
|
||||||
* Lexical Binding
|
* Lexical Binding
|
||||||
|
@ -90,14 +90,14 @@ Should make startup faster, taken from doom-emacs
|
||||||
(require `package)
|
(require `package)
|
||||||
|
|
||||||
(setq package-archives `(("mepla" . "https://melpa.org/packages/")
|
(setq package-archives `(("mepla" . "https://melpa.org/packages/")
|
||||||
("org" . "https://orgmode.org/elpa/")
|
("org" . "https://orgmode.org/elpa/")
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
("elpa" . "https://elpa.gnu.org/packages/")))
|
||||||
|
|
||||||
(package-initialize)
|
(package-initialize)
|
||||||
(unless package-archive-contents
|
(unless package-archive-contents
|
||||||
(package-refresh-contents))
|
(package-refresh-contents))
|
||||||
|
|
||||||
;; Init package for non-linux
|
;; install the thing
|
||||||
(unless (package-installed-p `use-package)
|
(unless (package-installed-p `use-package)
|
||||||
(package-install `use-package))
|
(package-install `use-package))
|
||||||
|
|
||||||
|
|
|
@ -23,12 +23,15 @@ in {
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = cfg.daemon;
|
enable = cfg.daemon;
|
||||||
install = true;
|
install = true;
|
||||||
# package = pkgs.emacs29-pgtk;
|
# package = pkgs.emacs29-pgtk;
|
||||||
package = pkgs.emacsWithPackagesFromUsePackage {
|
package = pkgs.emacsWithPackagesFromUsePackage {
|
||||||
config = ../../../../config/emacs/emacs.org;
|
config = ../../../../config/emacs/emacs.org;
|
||||||
package = pkgs.emacs-pgtk;
|
package = pkgs.emacs-pgtk;
|
||||||
alwaysEnsure = true;
|
alwaysEnsure = true;
|
||||||
alwaysTangle = true;
|
alwaysTangle = true;
|
||||||
|
extraEmacsPackages = epkgs: [
|
||||||
|
epkgs.use-package
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
users.users.sako.packages = with pkgs; [
|
users.users.sako.packages = with pkgs; [
|
||||||
|
@ -36,6 +39,19 @@ in {
|
||||||
direnv
|
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; [
|
fonts.packages = with pkgs; [
|
||||||
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
(nerdfonts.override {fonts = ["JetBrainsMono"];})
|
||||||
jetbrains-mono
|
jetbrains-mono
|
||||||
|
|
Loading…
Reference in a new issue