Skip to content

Commit

Permalink
Use eval-and-compile in example configuration
Browse files Browse the repository at this point in the history
Closes #249.
  • Loading branch information
tarsius committed Dec 1, 2024
1 parent bbcbdcd commit b8a922b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ If you would like to use base directories different from what
variables before loading the feature.

#+begin_src emacs-lisp
(setq no-littering-etc-directory
(expand-file-name "config/" user-emacs-directory))
(setq no-littering-var-directory
(expand-file-name "data/" user-emacs-directory))
(require 'no-littering)
(eval-and-compile ; Ensure values don't differ at compile time.
(setq no-littering-etc-directory
(expand-file-name "config/" user-emacs-directory))
(setq no-littering-var-directory
(expand-file-name "data/" user-emacs-directory))
(require 'no-littering))
#+end_src

*** Suggested Settings
Expand Down
11 changes: 6 additions & 5 deletions no-littering.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@
;; `no-littering' uses by default, then you have to set the respective
;; variables before loading the feature.
;;
;; (setq no-littering-etc-directory
;; (expand-file-name "config/" user-emacs-directory))
;; (setq no-littering-var-directory
;; (expand-file-name "data/" user-emacs-directory))
;; (require 'no-littering)
;; (eval-and-compile ; Ensure values don't differ at compile time.
;; (setq no-littering-etc-directory
;; (expand-file-name "config/" user-emacs-directory))
;; (setq no-littering-var-directory
;; (expand-file-name "data/" user-emacs-directory))
;; (require 'no-littering)

;; For additional optional settings see "README.org".

Expand Down

0 comments on commit b8a922b

Please sign in to comment.