diff --git a/contrib/lang/scala/packages.el b/contrib/lang/scala/packages.el index 82f97a9244da..7aac5ddced9b 100644 --- a/contrib/lang/scala/packages.el +++ b/contrib/lang/scala/packages.el @@ -1,4 +1,4 @@ -(defvar scale-packages +(defvar scala-packages '( ensime sbt-mode diff --git a/spacemacs/config.el b/spacemacs/config.el index e18b79d6c2e5..d4d2ad8527a3 100644 --- a/spacemacs/config.el +++ b/spacemacs/config.el @@ -174,6 +174,14 @@ Can be installed with `brew install trash'." savehist-autosave-interval 60) (savehist-mode +1) +;; auto-save +(let + ((autosave-dir (expand-file-name (concat spacemacs-cache-directory "autosave")))) + (unless (file-exists-p autosave-dir) + (make-directory autosave-dir)) + (setq auto-save-list-file-prefix (concat autosave-dir "/") + auto-save-file-name-transforms `((".*" ,autosave-dir t)))) + ;; bookmarks (setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks")) (setq bookmark-save-flag 1) ;; save after every change