Codebase list no-littering-el / 5023875
New upstream version 1.2.5 Lev Lamberov 2 years ago
2 changed file(s) with 22 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
7979 ;; or
8080 (setq custom-file (no-littering-expand-etc-file-name "custom.el"))
8181
82 #### Native compilation cache
83
84 The location of the native compilation cache has to be changed using a
85 function, preferably in `early-init.el`:
86
87 (when (fboundp 'startup-redirect-eln-cache)
88 (startup-redirect-eln-cache
89 (convert-standard-filename
90 (expand-file-name "var/eln-cache/" user-emacs-directory))))
91
8292 Conventions
8393 -----------
8494
5252 ;; location. You will have to move the files manually. See issue
5353 ;; #79 for more information.
5454
55 ;; Usage:
55 ;;;; Usage
5656
5757 ;; Load the feature `no-littering' as early as possible in your init
5858 ;; file. Make sure you load it at least before you change any path
7070 ;; (expand-file-name "data/" user-emacs-directory))
7171 ;; (require 'no-littering)
7272
73 ;; Conventions:
74
75 ;; * A) File names
73 ;; For additional optional settings see "README.md".
74
75 ;;;; Conventions
76 ;;;;; A) File names
7677 ;;
7778 ;; 1. File names are based on the name of the respective Emacs Lisp
7879 ;; variables and the name of the respective Emacs package.
9495 ;; E.g. if a file contains an S-expression, then the suffix should be
9596 ;; `*.el`.
9697
97 ;; * B) File location and subdirectories
98 ;;;;; B) File location and subdirectories
9899 ;;
99100 ;; 1. If a package has only one data file, then that is usually placed in
100101 ;; `no-littering-var-directory` itself. Likewise if a package has
127128 ;; when the name of the variable is `<package>-directory`, in which
128129 ;; case we would use just `<package>/` as the path.
129130
130 ;; * C) Ordering and alignment
131 ;;;;; C) Ordering and alignment
131132 ;;
132133 ;; 1. The code that sets the values of themed variables is split into two
133134 ;; groups. The first group sets the value of variables that belong to
143144 ;; If it turns out that this happens very often, then we will adjust
144145 ;; the alignment eventually.
145146
146 ;; * D) Commit messages
147 ;;;;; D) Commit messages
147148 ;;
148149 ;; 1. Please theme each package using a separate commit and use commit
149150 ;; messages of the form "<package>: theme <variable".
301302 (setq bmkp-last-bookmark-file (var "bmkp/last-bookmark.el"))
302303 (setq bookiez-file (var "bookiez"))
303304 (setq cider-repl-history-file (var "cider-repl-history.el"))
305 (setq code-review-db-database-file (var "code-review/database.sqlite"))
306 (setq code-review-download-dir (var "code-review/downloads/"))
307 (setq code-review-log-file (var "code-review/log"))
304308 (eval-after-load 'command-log-mode
305309 `(make-directory ,(var "command-log-mode-logging/") t))
306310 (setq clm/logging-dir (var "command-log-mode/logging/"))
420424 (setq quack-dir (var "quack/"))
421425 (setq rfc-mode-directory (var "rfc-mode/"))
422426 (setq request-storage-directory (var "request/storage/"))
427 (setq rime-user-data-dir (var "rime/"))
423428 (setq rmh-elfeed-org-files (list (var "elfeed/rmh-elfeed.org")))
424429 (setq runner-init-file (var "runner-init.el"))
425430 (setq save-kill-file-name (var "save-kill.el"))