Skip to content

Commit

Permalink
Now :variables values must be quoted like in setq sexps
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Jun 1, 2015
1 parent 4b0c84e commit 4489de8
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contrib/auto-completion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ The default configuration of the layer is:
```elisp
(setq-default dotspacemacs-configuration-layers '(
(auto-completion :variables
auto-completion-return-key-behavior complete
auto-completion-tab-key-behavior cycle
auto-completion-return-key-behavior 'complete
auto-completion-tab-key-behavior 'cycle
auto-completion-complete-with-key-sequence nil)
))
```
Expand Down
2 changes: 1 addition & 1 deletion contrib/ibuffer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Example:

```elisp
(setq-default dotspacemacs-configuration-layers '(
(ibuffer :variables ibuffer-group-buffers-by projects)))
(ibuffer :variables ibuffer-group-buffers-by 'projects)))
```

## Key bindings
Expand Down
4 changes: 2 additions & 2 deletions contrib/shell/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ to the following variables:

```elisp
(setq-default dotspacemacs-configuration-layers
'(shell :variables shell-default-shell eshell))
'(shell :variables shell-default-shell 'eshell))
```

The default shell is quickly accessible via a the default shortcut key
Expand All @@ -69,7 +69,7 @@ It is also possible to set the default height in percents with the variable
```elisp
(setq-default dotspacemacs-configuration-layers
'(shell :variables
shell-default-position bottom
shell-default-position 'bottom
shell-default-height 30))
```

Expand Down
4 changes: 3 additions & 1 deletion core/core-configuration-layer.el
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ the following keys:
(while variables
(let ((var (pop variables)))
(if (consp variables)
(set-default var (pop variables))
(progn
;; (message "%s" `(set-default ,var ,(pop variables)))
(set-default var (eval (pop variables))))
(spacemacs-buffer/warning "Missing value for variable %s !"
var)))))))

Expand Down

0 comments on commit 4489de8

Please sign in to comment.