Use pgtk emacs
This commit is contained in:
parent
c4cf85990a
commit
fb621305f1
16
flake.lock
16
flake.lock
@ -70,6 +70,21 @@
|
|||||||
"type": "github"
|
"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-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -385,6 +400,7 @@
|
|||||||
"NUR": "NUR",
|
"NUR": "NUR",
|
||||||
"base16-unclaimed-schemes": "base16-unclaimed-schemes",
|
"base16-unclaimed-schemes": "base16-unclaimed-schemes",
|
||||||
"deploy-rs": "deploy-rs",
|
"deploy-rs": "deploy-rs",
|
||||||
|
"emacs-overlay": "emacs-overlay",
|
||||||
"flake-compat": "flake-compat_2",
|
"flake-compat": "flake-compat_2",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"lambda-launcher": "lambda-launcher",
|
"lambda-launcher": "lambda-launcher",
|
||||||
|
@ -55,6 +55,7 @@
|
|||||||
wee-slack.flake = false;
|
wee-slack.flake = false;
|
||||||
nix-zsh-completions.url = "github:Ma27/nix-zsh-completions/flakes";
|
nix-zsh-completions.url = "github:Ma27/nix-zsh-completions/flakes";
|
||||||
nix-zsh-completions.flake = false;
|
nix-zsh-completions.flake = false;
|
||||||
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, nix, self, deploy-rs, ... }@inputs: {
|
outputs = { nixpkgs, nix, self, deploy-rs, ... }@inputs: {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
home-manager.users.balsoft = {
|
home-manager.users.balsoft = {
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.emacs;
|
package = pkgs.emacsPgtk;
|
||||||
extraPackages = epkgs:
|
extraPackages = epkgs:
|
||||||
with epkgs; [
|
with epkgs; [
|
||||||
use-package
|
use-package
|
||||||
@ -31,7 +31,6 @@
|
|||||||
clipmon
|
clipmon
|
||||||
org-gcal
|
org-gcal
|
||||||
company-ghci
|
company-ghci
|
||||||
xresources-theme
|
|
||||||
company-tabnine
|
company-tabnine
|
||||||
expand-region
|
expand-region
|
||||||
ivy
|
ivy
|
||||||
@ -62,17 +61,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
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
|
pkgs.clang
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -206,15 +206,15 @@ If point was already at that position, move point to beginning of line."
|
|||||||
;; -------------------
|
;; -------------------
|
||||||
;; Theme
|
;; Theme
|
||||||
;; -------------------
|
;; -------------------
|
||||||
(use-package xresources-theme
|
;; (use-package xresources-theme
|
||||||
:config
|
;; :config
|
||||||
(load-theme 'xresources t)
|
;; (load-theme 'xresources t)
|
||||||
(setq after-init-hook (load-theme 'xresources t))
|
;; (setq after-init-hook (load-theme 'xresources t))
|
||||||
(add-hook 'after-make-frame-functions
|
;; (add-hook 'after-make-frame-functions
|
||||||
(lambda (frame)
|
;; (lambda (frame)
|
||||||
(with-selected-frame frame
|
;; (with-selected-frame frame
|
||||||
(load-theme 'xresources t)
|
;; (load-theme 'xresources t)
|
||||||
(set-frame-font "IBM Plex Mono 11" nil t)))))
|
;; (set-frame-font "IBM Plex Mono 11" nil t)))))
|
||||||
|
|
||||||
(setq inhibit-startup-screen t)
|
(setq inhibit-startup-screen t)
|
||||||
|
|
||||||
@ -240,4 +240,6 @@ If point was already at that position, move point to beginning of line."
|
|||||||
:config
|
:config
|
||||||
(envrc-global-mode)
|
(envrc-global-mode)
|
||||||
(advice-add 'lsp :before (lambda (&optional n) (envrc--update))))
|
(advice-add 'lsp :before (lambda (&optional n) (envrc--update))))
|
||||||
|
|
||||||
|
(load-theme 'manoj-dark t)
|
||||||
;;; init.el ends here
|
;;; init.el ends here
|
||||||
|
@ -11,15 +11,16 @@
|
|||||||
|
|
||||||
optimise.automatic = true;
|
optimise.automatic = true;
|
||||||
|
|
||||||
binaryCachePublicKeys =
|
binaryCachePublicKeys = [
|
||||||
[ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||||
|
];
|
||||||
|
|
||||||
package = inputs.nix.packages.x86_64-linux.nix;
|
package = inputs.nix.packages.x86_64-linux.nix;
|
||||||
|
|
||||||
extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
requireSignedBinaryCaches = false;
|
requireSignedBinaryCaches = true;
|
||||||
};
|
};
|
||||||
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
environment.etc.nixpkgs.source = inputs.nixpkgs;
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,7 @@ let
|
|||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
|
(import inputs.emacs-overlay)
|
||||||
# inputs.nix.overlay
|
# inputs.nix.overlay
|
||||||
(self: super: rec {
|
(self: super: rec {
|
||||||
nix = super.nix // {
|
nix = super.nix // {
|
||||||
|
Loading…
Reference in New Issue
Block a user