From 74cf79361f3c0eaf8b5543e51ead9307c679ca9c Mon Sep 17 00:00:00 2001 From: Diego Berrocal Date: Sun, 3 Jan 2016 17:33:50 -0500 Subject: [PATCH] Add UndoHist Package to have persistent undo history --- layers/+distribution/spacemacs-base/packages.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/layers/+distribution/spacemacs-base/packages.el b/layers/+distribution/spacemacs-base/packages.el index d762d8d7226e..67ab5a246e58 100644 --- a/layers/+distribution/spacemacs-base/packages.el +++ b/layers/+distribution/spacemacs-base/packages.el @@ -53,6 +53,7 @@ spacemacs-theme subword undo-tree + undohist (uniquify :location built-in) (url :location built-in) use-package @@ -1436,6 +1437,13 @@ ARG non nil means that the editing style is `vim'." :config (spacemacs|hide-lighter undo-tree-mode))) +(defun spacemacs-base/init-undohist () + (use-package undohist + :init + (setq undohist-directory (expand-file-name "undo-history" spacemacs-cache-directory)) + :config + (undohist-initialize))) + (defun spacemacs-base/init-uniquify () (require 'uniquify) ;; When having windows with repeated filenames, uniquify them