Use pgtk emacs

This commit is contained in:
Alexander Bantyev 2021-03-11 01:57:37 +03:00
parent c4cf85990a
commit fb621305f1
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
6 changed files with 34 additions and 25 deletions

View File

@ -70,6 +70,21 @@
"type": "github"
}
},
"emacs-overlay": {
"locked": {
"lastModified": 1615335717,
"narHash": "sha256-nJ4CSh9hm5U1g+x0ev1nozhgfFVG2jKU1DCKoEMBbeI=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "2d16cdb183d1c5de65758d602a7fbb2f17d2099d",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "emacs-overlay",
"type": "github"
}
},
"flake-compat": {
"flake": false,
"locked": {
@ -385,6 +400,7 @@
"NUR": "NUR",
"base16-unclaimed-schemes": "base16-unclaimed-schemes",
"deploy-rs": "deploy-rs",
"emacs-overlay": "emacs-overlay",
"flake-compat": "flake-compat_2",
"home-manager": "home-manager",
"lambda-launcher": "lambda-launcher",

View File

@ -55,6 +55,7 @@
wee-slack.flake = false;
nix-zsh-completions.url = "github:Ma27/nix-zsh-completions/flakes";
nix-zsh-completions.flake = false;
emacs-overlay.url = "github:nix-community/emacs-overlay";
};
outputs = { nixpkgs, nix, self, deploy-rs, ... }@inputs: {

View File

@ -7,7 +7,7 @@
home-manager.users.balsoft = {
programs.emacs = {
enable = true;
package = pkgs.emacs;
package = pkgs.emacsPgtk;
extraPackages = epkgs:
with epkgs; [
use-package
@ -31,7 +31,6 @@
clipmon
org-gcal
company-ghci
xresources-theme
company-tabnine
expand-region
ivy
@ -62,17 +61,6 @@
};
home.packages = [
(pkgs.makeDesktopItem {
terminal = "false";
type = "Application";
name = "emacsclient";
genericName = "Text editor";
desktopName = "Emacs client";
mimeType = "text/plain";
exec = "emacsclient -c %F";
categories = "Development;TextEditor;Utility;";
icon = "emacs";
})
pkgs.clang
];

View File

@ -206,15 +206,15 @@ If point was already at that position, move point to beginning of line."
;; -------------------
;; Theme
;; -------------------
(use-package xresources-theme
:config
(load-theme 'xresources t)
(setq after-init-hook (load-theme 'xresources t))
(add-hook 'after-make-frame-functions
(lambda (frame)
(with-selected-frame frame
(load-theme 'xresources t)
(set-frame-font "IBM Plex Mono 11" nil t)))))
;; (use-package xresources-theme
;; :config
;; (load-theme 'xresources t)
;; (setq after-init-hook (load-theme 'xresources t))
;; (add-hook 'after-make-frame-functions
;; (lambda (frame)
;; (with-selected-frame frame
;; (load-theme 'xresources t)
;; (set-frame-font "IBM Plex Mono 11" nil t)))))
(setq inhibit-startup-screen t)
@ -240,4 +240,6 @@ If point was already at that position, move point to beginning of line."
:config
(envrc-global-mode)
(advice-add 'lsp :before (lambda (&optional n) (envrc--update))))
(load-theme 'manoj-dark t)
;;; init.el ends here

View File

@ -11,15 +11,16 @@
optimise.automatic = true;
binaryCachePublicKeys =
[ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
binaryCachePublicKeys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
];
package = inputs.nix.packages.x86_64-linux.nix;
extraOptions = ''
experimental-features = nix-command flakes
'';
requireSignedBinaryCaches = false;
requireSignedBinaryCaches = true;
};
environment.etc.nixpkgs.source = inputs.nixpkgs;
}

View File

@ -9,6 +9,7 @@ let
});
in {
nixpkgs.overlays = [
(import inputs.emacs-overlay)
# inputs.nix.overlay
(self: super: rec {
nix = super.nix // {