basic emacs config
This commit is contained in:
parent
309433bd7b
commit
e4f44574e0
2 changed files with 29 additions and 5 deletions
|
@ -4,11 +4,15 @@ let
|
||||||
emacsWithPackages = (pkgs.emacsPackagesGen myEmacs).emacsWithPackages;
|
emacsWithPackages = (pkgs.emacsPackagesGen myEmacs).emacsWithPackages;
|
||||||
in
|
in
|
||||||
emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
|
emacsWithPackages (epkgs: (with epkgs.melpaStablePackages; [
|
||||||
magit # ; Integrate git <C-x g>
|
magit
|
||||||
zerodark-theme # ; Nicolas' theme
|
solarized-theme
|
||||||
]) ++ (with epkgs.melpaPackages; [
|
evil
|
||||||
|
])
|
||||||
]) ++ (with epkgs.elpaPackages; [
|
++ (with epkgs.melpaPackages; [
|
||||||
|
xterm-color
|
||||||
|
nix-mode
|
||||||
|
])
|
||||||
|
++ (with epkgs.elpaPackages; [
|
||||||
beacon # ; highlight my cursor when scrolling
|
beacon # ; highlight my cursor when scrolling
|
||||||
nameless # ; hide current package name everywhere in elisp code
|
nameless # ; hide current package name everywhere in elisp code
|
||||||
]) ++ [
|
]) ++ [
|
||||||
|
|
|
@ -1,5 +1,25 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
home.file.".emacs".text = ''
|
||||||
|
(require 'package)
|
||||||
|
|
||||||
|
;; optional. makes unpure packages archives unavailable
|
||||||
|
(setq package-archives nil)
|
||||||
|
|
||||||
|
(setq package-enable-at-startup nil)
|
||||||
|
(package-initialize)
|
||||||
|
|
||||||
|
(require 'xterm-color)
|
||||||
|
(progn (add-hook 'comint-preoutput-filter-functions 'xterm-color-filter)
|
||||||
|
(setq comint-output-filter-functions (remove 'ansi-color-process-output comint-output-filter-functions)))
|
||||||
|
|
||||||
|
|
||||||
|
(set-terminal-parameter nil 'background-mode 'dark)
|
||||||
|
(xterm-mouse-mode 1)
|
||||||
|
|
||||||
|
(require 'evil)
|
||||||
|
(evil-mode 1)
|
||||||
|
'';
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = (import ./emacs.nix { inherit pkgs; });
|
package = (import ./emacs.nix { inherit pkgs; });
|
||||||
|
|
Loading…
Reference in a new issue