emacs: add undo-tree minor mode.
This commit is contained in:
parent
2d3ca78643
commit
f855cf3f1e
1 changed files with 16 additions and 0 deletions
16
pkgsets/emacs/undo-tree.nix
Normal file
16
pkgsets/emacs/undo-tree.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
mkIf (elem "emacs::undo-tree" config.machine.pkgs) {
|
||||
programs.emacs.init.usePackage.undo-tree = {
|
||||
enable = true;
|
||||
hook = [ "(after-init . global-undo-tree-mode)" ];
|
||||
config = ''
|
||||
(setq undo-tree-visualizer-diff 't)
|
||||
(setq undo-tree-auto-save-history 't)
|
||||
(setq undo-tree-enable-undo-in-region 't)
|
||||
(setq undo-tree-history-directory-alist '(("." . "~/.emacs_undo")))
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue