Start moving emacs configuration to nix.
This commit is contained in:
parent
0d9fa5b37e
commit
986ca7f5cd
11 changed files with 841 additions and 67 deletions
19
pkgs/pkgsets/emacs/company.nix
Normal file
19
pkgs/pkgsets/emacs/company.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, ... }:
|
||||
|
||||
mkIf (elem "emacs-company" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage.company = {
|
||||
enable = true;
|
||||
diminish = [ "company-mode" ];
|
||||
hook = [ "(after-init . global-company-mode)" ];
|
||||
bind = { "\t" = "'company-complete-common"; };
|
||||
config = ''
|
||||
(setq company-idle-delay 0.3
|
||||
company-show-numbers t)
|
||||
'';
|
||||
extraConfig = ''
|
||||
:bind (:map company-mode-map
|
||||
([remap completion-at-point] . company-complete-common)
|
||||
([remap complete-symbol] . company-complete-common))
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue