  word-wrap t
  vc-follow-symlinks t)
 
-;; Save point across sessions
-(require 'saveplace)
-(setq save-place-file (concat doom-cache-dir "saveplace"))
-(save-place-mode +1)
-
-;; Save history across sessions
-(require 'savehist)
-(setq savehist-file (concat doom-cache-dir "savehist")
-      savehist-save-minibuffer-history t
-      savehist-autosave-interval nil ; save on kill only
-      savehist-additional-variables '(kill-ring search-ring regexp-search-ring))
-(savehist-mode 1)
-
-;; Branching & persistent undo
-(require 'undo-tree)
-(setq undo-tree-auto-save-history t
-      undo-tree-history-directory-alist (list (cons "." (concat doom-cache-dir "undo-tree-hist/"))))
-
-;; Keep track of recently opened files
-(require 'recentf)
-(setq recentf-save-file (concat doom-cache-dir "recentf")
-      recentf-exclude (list "/tmp/" "/ssh:" "\\.?ido\\.last$" "\\.revive$" "/TAGS$"
-                            "^/var/folders/.+$" doom-local-dir)
-      recentf-max-menu-items 0
-      recentf-max-saved-items 250
-      recentf-filename-handlers '(abbreviate-file-name))
-(quiet! (recentf-mode 1))
-
 ;; Ediff: use existing frame instead of creating a new one
 (add-hook! ediff-load
   (setq ediff-diff-options           "-w"

  ;; Show whitespace in tabs indentation mode
  (add-hook! 'editorconfig-custom-hooks
    (if indent-tabs-mode (whitespace-mode +1))))

;; Auto-close delimiters and blocks as you type
(def-package! smartparens :demand t


;; Handles whitespace (tabs/spaces) settings externally. This way projects can
;; specify their own formatting rules.
(def-package! editorconfig
  :mode ("\\.?editorconfig$" . editorconfig-conf-mode)
  :init
  ;; deferred loading, the clumsy way
  (add-transient-hook! 'find-file-hook (require 'editorconfig))
  (add-transient-hook! 'after-change-major-mode-hook (require 'editorconfig))

  (def-setting! :editorconfig (action value)
    ":add or :remove an entry in `editorconfig-indentation-alist'."
    `(after! editorconfig
       ,(cond ((eq action :add)
               `(push ',value editorconfig-indentation-alist))
