2022-12-19 09:09:08 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2021-05-28 20:14:04 +01:00
|
|
|
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)
|
2022-09-04 13:22:34 +01:00
|
|
|
(setq custom-tab-width 2)
|
|
|
|
(setq indent-tabs-mode nil)
|
2021-05-28 20:14:04 +01:00
|
|
|
|
2023-06-23 08:45:55 +01:00
|
|
|
(setq make-backup-files nil)
|
|
|
|
(setq auto-save-default nil)
|
2023-08-13 17:00:41 +01:00
|
|
|
|
2022-09-04 13:22:34 +01:00
|
|
|
(require 'helm)
|
|
|
|
(require 'helm-config)
|
|
|
|
|
|
|
|
(require 'color-theme-sanityinc-solarized)
|
2021-05-28 20:14:04 +01:00
|
|
|
'';
|
2021-05-28 15:58:33 +01:00
|
|
|
programs.emacs = {
|
|
|
|
enable = true;
|
2022-12-19 09:09:08 +00:00
|
|
|
package = import ./emacs.nix {inherit pkgs;};
|
2021-05-28 15:58:33 +01:00
|
|
|
};
|
|
|
|
}
|