mirror of
https://github.com/willemml/dotfiles.nix.git
synced 2025-04-13 19:57:19 +00:00
use emacs-29 branch, remove company-quickhelp and disable company-files
This commit is contained in:
parent
f43cc131ca
commit
38cb4125ac
5 changed files with 123 additions and 101 deletions
|
@ -6,6 +6,13 @@
|
||||||
}: {
|
}: {
|
||||||
flake.overlays = {
|
flake.overlays = {
|
||||||
default = import ../packages;
|
default = import ../packages;
|
||||||
|
emacs29 = final: prev: {
|
||||||
|
emacs29 = prev.emacsGit.overrideAttrs (old: {
|
||||||
|
name = "emacs29";
|
||||||
|
version = "29.0-${inputs.emacs-src.shortRev}";
|
||||||
|
src = inputs.emacs-src;
|
||||||
|
});
|
||||||
|
};
|
||||||
emacs-overlay = inputs.emacs-overlay.overlays.default;
|
emacs-overlay = inputs.emacs-overlay.overlays.default;
|
||||||
fenix = inputs.fenix.overlays.default;
|
fenix = inputs.fenix.overlays.default;
|
||||||
rycee-firefox-addons = final: prev: {rycee-firefox-addons = inputs.rycee-firefox-addons.outputs.packages.${prev.system};};
|
rycee-firefox-addons = final: prev: {rycee-firefox-addons = inputs.rycee-firefox-addons.outputs.packages.${prev.system};};
|
||||||
|
|
18
flake.lock
generated
18
flake.lock
generated
|
@ -41,6 +41,23 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"emacs-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1680780971,
|
||||||
|
"narHash": "sha256-c5aLVyuT8bK3bJfQSi+HNQGSJyWSvp7X+tr0bX3syZ4=",
|
||||||
|
"ref": "emacs-29",
|
||||||
|
"rev": "305246d9726bbe05a65ad3836880138db5c01dfa",
|
||||||
|
"revCount": 164964,
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.savannah.gnu.org/git/emacs.git"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"ref": "emacs-29",
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://git.savannah.gnu.org/git/emacs.git"
|
||||||
|
}
|
||||||
|
},
|
||||||
"fenix": {
|
"fenix": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
|
@ -312,6 +329,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"darwin": "darwin",
|
"darwin": "darwin",
|
||||||
"emacs-overlay": "emacs-overlay",
|
"emacs-overlay": "emacs-overlay",
|
||||||
|
"emacs-src": "emacs-src",
|
||||||
"fenix": "fenix",
|
"fenix": "fenix",
|
||||||
"flake-parts": "flake-parts",
|
"flake-parts": "flake-parts",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
darwin.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
emacs-overlay.url = "github:nix-community/emacs-overlay";
|
||||||
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
emacs-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
emacs-src.url = "git+https://git.savannah.gnu.org/git/emacs.git?ref=emacs-29";
|
||||||
|
emacs-src.flake = false;
|
||||||
fenix.url = "github:nix-community/fenix";
|
fenix.url = "github:nix-community/fenix";
|
||||||
flake-parts.url = "github:hercules-ci/flake-parts";
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
||||||
home-manager.url = "github:nix-community/home-manager";
|
home-manager.url = "github:nix-community/home-manager";
|
||||||
|
|
|
@ -3,13 +3,8 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
emacsConfig = pkgs.emacsWithPackagesFromUsePackage {
|
emacsPackage =
|
||||||
config = ./init.el;
|
(pkgs.emacsPackagesFor pkgs.emacs29).emacsWithPackages
|
||||||
|
|
||||||
defaultInitFile = true;
|
|
||||||
|
|
||||||
package =
|
|
||||||
(pkgs.emacsPackagesFor pkgs.emacsGit).emacsWithPackages
|
|
||||||
(epkgs:
|
(epkgs:
|
||||||
(with epkgs; let
|
(with epkgs; let
|
||||||
org-auctex = epkgs.trivialBuild {
|
org-auctex = epkgs.trivialBuild {
|
||||||
|
@ -70,7 +65,6 @@
|
||||||
cdlatex
|
cdlatex
|
||||||
citeproc
|
citeproc
|
||||||
company
|
company
|
||||||
company-quickhelp
|
|
||||||
counsel
|
counsel
|
||||||
editorconfig
|
editorconfig
|
||||||
edit-indirect
|
edit-indirect
|
||||||
|
@ -104,6 +98,12 @@
|
||||||
plantuml
|
plantuml
|
||||||
sqlite
|
sqlite
|
||||||
]));
|
]));
|
||||||
|
emacsConfig = pkgs.emacsWithPackagesFromUsePackage {
|
||||||
|
config = ./init.el;
|
||||||
|
|
||||||
|
defaultInitFile = true;
|
||||||
|
|
||||||
|
package = emacsPackage;
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
home.file.".emacs.d/early-init.el".source = ./early-init.el;
|
home.file.".emacs.d/early-init.el".source = ./early-init.el;
|
||||||
|
|
|
@ -65,7 +65,6 @@
|
||||||
(require 'cdlatex)
|
(require 'cdlatex)
|
||||||
(require 'citeproc)
|
(require 'citeproc)
|
||||||
(require 'company)
|
(require 'company)
|
||||||
(require 'company-quickhelp)
|
|
||||||
(require 'counsel)
|
(require 'counsel)
|
||||||
(require 'edit-indirect)
|
(require 'edit-indirect)
|
||||||
(require 'editorconfig)
|
(require 'editorconfig)
|
||||||
|
@ -135,8 +134,6 @@
|
||||||
(setq company-tooltip-offset-display 'lines)
|
(setq company-tooltip-offset-display 'lines)
|
||||||
;; Display text icon of type in company popup
|
;; Display text icon of type in company popup
|
||||||
|
|
||||||
(company-quickhelp-mode)
|
|
||||||
|
|
||||||
(global-set-key "\C-s" 'swiper)
|
(global-set-key "\C-s" 'swiper)
|
||||||
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
(global-set-key (kbd "C-c C-r") 'ivy-resume)
|
||||||
(global-set-key (kbd "<f6>") 'ivy-resume)
|
(global-set-key (kbd "<f6>") 'ivy-resume)
|
||||||
|
@ -157,8 +154,6 @@
|
||||||
|
|
||||||
(editorconfig-mode 1)
|
(editorconfig-mode 1)
|
||||||
|
|
||||||
(add-hook 'eglot-connect-hook 'company-mode)
|
|
||||||
|
|
||||||
(global-set-key (kbd "C-c C-y") 'format-all-buffer)
|
(global-set-key (kbd "C-c C-y") 'format-all-buffer)
|
||||||
(setq-default format-all-formatters format-all-default-formatters)
|
(setq-default format-all-formatters format-all-default-formatters)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue