继续学习spacemacs的配置,前面掌握了几个目录相关的函数之后,看一下接下来的一系列目录的定义。

;; paths

(defvar spacemacs-start-directory

  user-emacs-directory

  "Spacemacs start directory.")

    上面定义的这个目录,之前已经确认过了,就是.emacs.d目录。

(defconst spacemacs-core-directory

  (expand-file-name (concat spacemacs-start-directory "core/"))

  "Spacemacs core directory.")

    这个目录是如下目录:

216_spacemacs的目录定义_emacs

(defconst spacemacs-info-directory

  (expand-file-name (concat spacemacs-core-directory "info/"))

  "Spacemacs info files directory")

216_spacemacs的目录定义_github_02

(defconst spacemacs-release-notes-directory

  (expand-file-name (concat spacemacs-info-directory "release-notes/"))

  "Spacemacs release notes directory")

216_spacemacs的目录定义_emacs_03

(defconst spacemacs-banner-directory

  (expand-file-name (concat spacemacs-core-directory "banners/"))

  "Spacemacs banners directory.")

216_spacemacs的目录定义_github_04

(defconst spacemacs-banner-official-png

  (expand-file-name (concat spacemacs-banner-directory "img/spacemacs.png"))

  "Spacemacs official banner image.")

216_spacemacs的目录定义_github_04

(defconst spacemacs-badge-official-png

  (expand-file-name (concat spacemacs-banner-directory

                            "img/spacemacs-badge.png"))

  "Spacemacs official badge image.")

216_spacemacs的目录定义_github_06

(defconst spacemacs-purple-heart-png

  (expand-file-name (concat spacemacs-banner-directory "img/heart.png"))

  "Purple heart emoji.")

216_spacemacs的目录定义_emacs_07

(defconst spacemacs-cache-directory

  (expand-file-name (concat user-emacs-directory ".cache/"))

  "Spacemacs storage area for persistent files")

216_spacemacs的目录定义_emacs_08

(defconst spacemacs-auto-save-directory

  (expand-file-name (concat spacemacs-cache-directory "auto-save/"))

  "Spacemacs auto-save directory")

216_spacemacs的目录定义_github_09

(defconst spacemacs-docs-directory

  (expand-file-name (concat spacemacs-start-directory "doc/"))

  "Spacemacs documentation directory.")

216_spacemacs的目录定义_emacs_10

(defconst spacemacs-news-directory

  (expand-file-name (concat spacemacs-start-directory "news/"))

  "Spacemacs News directory.")

216_spacemacs的目录定义_emacs_11

(defconst spacemacs-assets-directory

  (expand-file-name (concat spacemacs-start-directory "assets/"))

  "Spacemacs assets directory.")

216_spacemacs的目录定义_github_04

(defconst spacemacs-test-directory

  (expand-file-name (concat spacemacs-start-directory "tests/"))

  "Spacemacs tests directory.")

216_spacemacs的目录定义_github_13

(defconst user-home-directory

  (expand-file-name "~/")

  "User home directory (~/).")

216_spacemacs的目录定义_emacs_14

(defconst pcache-directory

  (concat spacemacs-cache-directory "pcache/"))

    上面的这个目录,在我当前的目录中没有看到。或许是在配置中并没有用到?后面的进一步分析应该可以分析的出来。