 ;;; License: GPLv3
 
 ;; ---------------------------------------------------------------------------
-;; Prefixes 
-;; ---------------------------------------------------------------------------
-
+;; Prefixes
+;; ---------------------------------------------------------------------------
+
+;; We define prefix commands only for the sake of guide-key
 (setq spacemacs/key-binding-prefixes '(("a" .  "applications")
                                        ("as" . "applications-shells")
                                        ("b" .  "buffers")

  (setq auto-save-list-file-prefix (concat autosave-dir "/")
        auto-save-file-name-transforms `((".*" ,autosave-dir t))))

;; bookmarks
(setq bookmark-save-flag 1) ;; save after every change
(setq bookmark-default-file (concat spacemacs-cache-directory "bookmarks"))

;; more cache files

;; url files
(setq url-configuration-directory (concat spacemacs-cache-directory "url"))
;; eshell files
(setq eshell-directory-name (concat spacemacs-cache-directory "eshell" ))
;; Tramp history
(setq tramp-persistency-file-name (concat spacemacs-cache-directory "tramp"))

;; increase memory threshold for GC
(setq gc-cons-threshold 20000000)

;; ;; save a bunch of variables to the desktop file
;; ;; for lists specify the len of the maximal saved data also

;; ---------------------------------------------------------------------------

(ido-mode t)
(setq ido-save-directory-list-file (concat spacemacs-cache-directory "ido.last")
      ;; enable fuzzy matching
      ido-enable-flex-matching t)
;; Auto refresh buffers
(global-auto-revert-mode 1)
;; Also auto refresh dired, but be quiet about it
(setq global-auto-revert-non-file-buffers t
      auto-revert-verbose nil)
;; activate winner mode use to undo and redo windows layout
(winner-mode t)
;; no beep pleeeeeease ! (and no visual blinking too please)
