spacemacs layer: set evil-move-beyond-eol to t

This variable allows to put the point behind the last
character of a line in normal state.
So now eval-last-sexp behaves as expected in elisp and all
other languages.

Note that this is not the default in Vim but it does not
make a lot of sense to force this behavior in Emacs where
eval-last-sexp is so important.

Anyway it is easy to revert the behavior by setting this
variable back to nil in dotspacemacs/config
This commit is contained in:
syl20bnr 2015-07-31 22:28:35 -04:00
parent fcc1bca209
commit ed2fbb7f72

View file

@ -570,6 +570,11 @@
;; https://bitbucket.org/lyro/evil/issue/502/cursor-is-not-refreshed-in-some-cases
(add-hook 'post-command-hook 'evil-refresh-cursor)
;; allow the point to go past the end of line so we can
;; consisently evaluate expression with eval-last-sexp in
;; all modes
(setq evil-move-beyond-eol t)
(defun spacemacs/state-color-face (state)
"Return the symbol of the face for the given STATE."
(intern (format "spacemacs-%s-face" (symbol-name state))))