FAQ: Set sentence-end-double-space in user-config

The FAQ has an entry for configuring Spacemacs to use double-space as the
sentence delimiter.  This FAQ entry instructs the reader to set the
sentence-end-double-space variable in the dotspacemacs/user-init function.

The problem is that the spacemacs-defaults layer sets
sentence-end-double-space when it loads, and Spacemacs loads layers after
calling dotspacemacs/user-init, which means the layer overrides any setting
for sentence-end-double-space in dotspacemacs/user-init.

To solve this problem, this commit modifies the FAQ entry to instruct the
reader to set the variable in the dotspacemacs/user-config function, which
Spacemacs runs after loading layers.

The FAQ entry was added in commit ee4ad69847.

* doc/FAQ.org: Instruct the reader to set sentence-end-double-space in
dotspacemacs/user-init rather than in dotspacemacs/user-config.
This commit is contained in:
Miciah Masters 2019-04-10 11:59:57 -04:00 committed by duianto
parent b00767cd6e
commit b1b483e4ae
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ management), you can use this:
** Restore the sentence delimiter to two spaces? ** Restore the sentence delimiter to two spaces?
To restore the sentence delimiter to two spaces, add the following code to the To restore the sentence delimiter to two spaces, add the following code to the
=dotspacemacs/user-init= function of your =.spacemacs=: =dotspacemacs/user-config= function of your =.spacemacs=:
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq sentence-end-double-space t) (setq sentence-end-double-space t)