2020-02-17 17:00:59 +04:00
|
|
|
{ pkgs, config, lib, ... }: {
|
|
|
|
home-manager.users.balsoft = {
|
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.emacs;
|
|
|
|
extraPackages = epkgs:
|
|
|
|
with epkgs; [
|
|
|
|
use-package
|
|
|
|
nix-mode
|
|
|
|
haskell-mode
|
|
|
|
wakib-keys
|
|
|
|
exec-path-from-shell
|
|
|
|
counsel
|
|
|
|
projectile
|
|
|
|
which-key
|
|
|
|
markdown-mode
|
|
|
|
frames-only-mode
|
|
|
|
company
|
|
|
|
rainbow-delimiters
|
|
|
|
diff-hl
|
|
|
|
mode-line-bell
|
|
|
|
hasklig-mode
|
|
|
|
flycheck
|
|
|
|
flycheck-pkg-config
|
|
|
|
auto-indent-mode
|
|
|
|
clipmon
|
|
|
|
org-gcal
|
|
|
|
company-ghci
|
|
|
|
xresources-theme
|
|
|
|
company-tabnine
|
|
|
|
expand-region
|
|
|
|
ivy
|
|
|
|
smex
|
|
|
|
quickrun
|
|
|
|
counsel-tramp
|
|
|
|
ix
|
|
|
|
magit
|
|
|
|
xah-fly-keys
|
|
|
|
arduino-mode
|
|
|
|
elixir-mode
|
2020-02-27 13:45:30 +04:00
|
|
|
company-box
|
2020-03-17 22:45:17 +04:00
|
|
|
ws-butler
|
2020-04-15 16:54:26 +04:00
|
|
|
yaml-mode
|
|
|
|
gitlab-ci-mode
|
|
|
|
gitlab-ci-mode-flycheck
|
|
|
|
gitlab
|
2020-07-16 17:46:49 +04:00
|
|
|
undo-tree
|
2020-09-14 02:36:22 +04:00
|
|
|
rust-mode
|
|
|
|
go-mode
|
2020-10-18 14:28:27 +04:00
|
|
|
edit-indirect
|
2020-12-04 14:20:51 +04:00
|
|
|
lsp-mode
|
2020-02-17 17:00:59 +04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = [
|
|
|
|
(pkgs.makeDesktopItem {
|
2020-04-25 04:41:29 +04:00
|
|
|
terminal = "false";
|
2020-02-17 17:00:59 +04:00
|
|
|
type = "Application";
|
|
|
|
name = "emacsclient";
|
|
|
|
genericName = "Text editor";
|
|
|
|
desktopName = "Emacs client";
|
|
|
|
mimeType = "text/plain";
|
|
|
|
exec = "emacsclient -s /tmp/emacs1000/server -c %F";
|
2020-04-25 04:41:29 +04:00
|
|
|
categories = "Development;TextEditor;Utility;";
|
2020-02-17 17:00:59 +04:00
|
|
|
icon = "emacs";
|
|
|
|
})
|
|
|
|
pkgs.clang
|
|
|
|
];
|
|
|
|
|
|
|
|
services.emacs.enable = true;
|
|
|
|
|
|
|
|
systemd.user.services.emacs.Service.Environment =
|
|
|
|
"PATH=/run/current-system/sw/bin:/etc/profiles/per-user/balsoft/bin";
|
|
|
|
|
|
|
|
home.file.".emacs.d/init.el".source = ./init.el;
|
|
|
|
home.activation.emacs = {
|
|
|
|
before = [ ];
|
|
|
|
after = [ ];
|
|
|
|
data = "$DRY_RUN_CMD mkdir -p ~/.emacs.d/autosave";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|