Browse Source

Move emacs-cache definition, add to auto-package-update

master
Riyyi 5 years ago
parent
commit
ee656a8aee
  1. 2
      .emacs.d/config.org
  2. 5
      .emacs.d/init.el

2
.emacs.d/config.org

@ -55,6 +55,7 @@ https://github.com/rranelli/auto-package-update.el
:custom
(auto-package-update-delete-old-versions t)
(auto-package-update-hide-results t)
(auto-package-update-last-update-day-path (concat emacs-cache "/.last-package-update-day"))
:config
(auto-package-update-maybe))
#+END_SRC
@ -386,7 +387,6 @@ https://github.com/laishulu/hl-fill-column
File auto-saves, backups, tramps.
#+BEGIN_SRC emacs-lisp
(setq emacs-cache (concat (getenv "XDG_CACHE_HOME") "/emacs"))
(unless (file-directory-p emacs-cache)
(make-directory emacs-cache t))
;https://emacs.stackexchange.com/questions/33/put-all-backups-into-one-backup-folder

5
.emacs.d/init.el

@ -6,6 +6,11 @@
; --------------------------------------
(defvar emacs-cache (concat (getenv "XDG_CACHE_HOME") "/emacs")
"Directory where cache data is stored.")
; --------------------------------------
;; Add the melpa repository to the package manager
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))

Loading…
Cancel
Save