Skip to content

Commit

Permalink
Add UndoHist Package to have persistent undo history
Browse files Browse the repository at this point in the history
  • Loading branch information
CestDiego committed Jan 4, 2016
1 parent 0f7a2e1 commit 74cf793
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions layers/+distribution/spacemacs-base/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
spacemacs-theme
subword
undo-tree
undohist
(uniquify :location built-in)
(url :location built-in)
use-package
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 74cf793

Please sign in to comment.