Commit graph

106 commits

Author SHA1 Message Date
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
Ivan Yonchovski bc55d9b6fd Make sure eldoc info is not removed when you switch to insert mode
- This will prevent jumping of eldoc box when you switch to insert mode.
2019-11-27 21:30:29 +01:00
duianto b9e61e6437 Add transient state keys _, j, k
Thanks sdwolfz for the suggestion to add underscore to the transient states,
then the shift key doesn't have to be released if it was held down to press `+`.

Added key bindings:
Evil numbers:
`SPC n _` decrease number under point
in the transient state:
`j` decrease number under point
`k` increase number under point

`SPC T T _` decrease transparency
`SPC z x _` scale down font
`SPC z f _` zoom out frame

Update documentation:
Zoom frame:
`q` quit transient state

Evil numbers:
`SPC n =` increase number under point
`SPC n _` decrease number under point
`0..9` add a number prefix argument
`q` quit transient state

Fixed a typo and made a small rewrite of the tip about using a prefix argument.

Added keys to transient states:
Font scaling:
Added `_` scale down
Reordered `k` assignment to match the order in the transient state

Frame transparency:
Added `_` decrease
Reordered `k` assignment to match the order in the transient state

Evil numbers:
Added `k` increase
Added `_` and `j` decrease

Zoom frame:
Added `_` zoom frame out
Reordered `k` assignment to match the order in the transient state

Which-key entries for Evil numbers `SPC n`:
Group together keys that call the same command:
From: + and =
To:   +,=

From: - and _
To:   -,_
2019-07-14 22:56:57 +02:00
duianto d6cdd6aa88 Add a tutorials section to SPC h T
`SPC h T e` for `emacs-tutorial` (aliased from `help-with-tutorial` for a more
descriptive name)
`SPC h T v` for `evil-tutor-start`

Added a wikipedia link to the `vi` article, where the origins of modal editing
is discussed.
2019-07-07 11:34:16 +02:00
Jake Romer 7c3d211726 Run foreign keys in evil-numbers transient state 2019-07-06 01:59:04 +02:00
jcaw d4cca74854 Add support for visual line numbers
Emacs 26 added built-in support for line numbers, relative line numbers, and
visual line numbers. Spacemacs supports only absolute and relative, but there is
no way to access the visual mode. It's hard to get around this, since Spacemacs
abstracts line numbers to a reasonably high degree.

Arguably, `visual` is much more useful than `relative` as a display type. Visual
line numbers are like relative line numbers, but only lines that are actually
showing are counted. This means:

  1. Hidden lines are not counted. If a large amount of text is folded, the line
     numbers won't jump from "10" to "546". This is particularly useful in
     buffers like `magit-status`, where a large amount of information is folded
     by default.

  2. Lines that are wrapped are counted as multiple lines, since they're being
     displayed as multiple lines in the editor. Each visual line will be
     numbered - unlike `relative`, where the entire thing is numbered... Once.

With standard relative line numbers, you can't actually navigate using the line
numbers in the sidebar as soon as folded or wrapped lines are introduced. Since
this is one of the main use cases for relative line numbers, this is a big
problem.

Visual mode fixes that problem. Every line that's being displayed is labelled.
Numbers always correspond to the actual number of lines you'd need to navigate
to reach that line.

This commit extends Spacemacs' line number interface to provide visual line
number support.
2019-06-23 19:16:44 +02:00
duianto 3868a5364f [doc] Fix typos and add missing/remove extra ~
Add missing ~ (tilde) around key bindings.
Remove an extra ~.
2019-06-01 20:40:22 +02:00
emacspace 2aa62bb5ed documentation formatting: Tue May 28 14:41:10 UTC 2019 2019-05-28 17:43:54 +03:00
JAremko ce4e6e355f tag docs 2019-05-28 17:35:49 +03:00
Sorawee Porncharoenwase 8671362aa9 evil-unimpaired switch from normal to motion state
This change will make buffers with the motion state
(e.g., spacemacs home buffer) be able to use the
evil-unimpaired navigation key bindings.

Note that the normal state will inherit the motion
state map anyway, so there's no need to set the
normal state map separately.
2019-05-23 08:59:58 +02:00
Anton-Latukha f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
JAremko 77c680160e Add placeholder tags 2019-05-05 20:40:47 +03:00
Bet4 554ca097f2 Check for universal arg before paste
This commit fixes #4219 and fixes #8897
2019-04-25 19:30:29 +02:00
Hoyon Mak beab291332 Don't lazy load keybindings for evil surround 2019-04-10 19:30:32 +02:00
duianto 2ef94efbf4 Add line text object using evil-textobj-line 2019-04-07 15:34:02 +02:00
deb0ch 1402b1bacc formatting 2018-11-05 22:14:32 +00:00
Codruț Constantin Gușoi 5c6057226e Encapsulates multiple cursors functionality in a layer 2018-10-27 14:33:42 +03:00
JAremko cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
mpanarin ae00b1c70a Revert "Disable evil-ediff for now"
This reverts commit 4dbd5e6110.
2018-08-31 16:58:05 +03:00
bmag 4f70a9abcc Load evil-surround when entering operator state
Only using visual state as entry point for evil-surround doesn't guarantee
surround is available for evil-yank and evil-delete. Fixed by also using
operator state.

Fixes #11019 and #11021
2018-07-12 11:56:20 +03:00
syl20bnr 4dbd5e6110 Disable evil-ediff for now 2018-07-04 02:36:59 -04:00
syl20bnr 54ace2e998 Fix lazy loading of evil-escape
Add transient hook on window-configuration-change-hook
2018-06-15 03:09:14 -04:00
syl20bnr 5ab0b7918e Lazy load evil-escape 2018-06-14 21:54:39 -04:00
syl20bnr 9d7c1c8adf Lazy load evil-numbers 2018-06-14 21:54:39 -04:00
syl20bnr 8281ed74ae Lazy load evil-lion 2018-06-14 21:54:39 -04:00
syl20bnr 03786aa94a Lazy load evil-surround 2018-06-14 21:54:39 -04:00
syl20bnr fc08a3b9c1 Lazy load evil-exchange 2018-06-14 21:54:39 -04:00
syl20bnr 8425d16c55 Lazy load evil-indent-plus 2018-06-14 21:54:39 -04:00
syl20bnr c50ff88812 Lazy load evil-args 2018-06-14 21:51:31 -04:00
syl20bnr 3b06108161 Lazy load evil-goggles 2018-06-14 21:23:12 -04:00
Codruț Constantin Gușoi 8ad78ca7d3 Brings back search highlight clear 2018-06-12 22:43:22 +03:00
syl20bnr 41b90e403c Lazy load evil-lisp-state 2018-06-11 02:46:38 -04:00
syl20bnr 095a83896a Remove evil-search-highlight-persist as it seems uneeded now 2018-06-11 02:02:20 -04:00
syl20bnr 5004e05d44 Add hybrid-style-visual-feedback variable 2018-06-08 02:32:05 -04:00
syl20bnr 2b4d90ba20 Set default value of vim-style-visual-feedback to nil 2018-06-08 02:24:38 -04:00
syl20bnr 9539e4206d Rename Vim style related variable to vim-style-xxxxx
Update the documentation
Define alias for backward compatibility
2018-06-08 02:24:38 -04:00
syl20bnr e39b3495bd Add vim-style-visual-feedback variable and documentation 2018-06-08 02:24:38 -04:00
syl20bnr 1833c9c4f7 iedit: fix TAB in Vim and Hybrid states to toggle occurrences
Fixes #10398
2018-06-07 01:59:16 -04:00
syl20bnr 740251d896 Disable evil-goggles pulse 2018-06-03 02:21:21 -04:00
syl20bnr 306f8d6cd8 Hide ligther for evil-goggles-mode 2018-06-03 01:09:28 -04:00
syl20bnr 1ec62a496a Add evil-goggles and tune effect duration for async and blocking ops 2018-06-02 02:51:06 -04:00
syl20bnr 1374cd615f Fix evil-escape lighter being shown in mode-line
Also simplify code a bit.
2018-06-02 01:56:25 -04:00
bmag 8f82486154 Add support for native line numbers in Emacs 26
Emacs 26.1 will introduce a new native line numbers feature:
"display-line-numbers". It includes relative line numbers, is faster than
current linum-mode, and doesn't use the margin area (it has its own area). So
yeah, we want to use the new feature when possible.

No changes are required on the user side, except for Emacs 26 users are
recommended to remove nlinum layer from their configuration (if they have
enabled it).

With this change:
- Emacs 26:
  - uses display-line-numbers by default.
  - linum and linum-relative packages are excluded.
- Emacs 25:
  - does NOT use display-line-numbers.
  - continues to use linum and linum-relative.
- nlinum layer:
  - can still be used as before in Emacs 25.
  - is NOT recommended in Emacs 26, but can be used.
  - when enabled, excludes display-line-numbers.

Also contains some bug fixes:

Fixes a bug where setting `dostpacemacs-line-numbers` to `t` or `relative`
enabled line numbers in every buffer, instead of only in buffers that derive
from prog-mode and text-mode.

Likewise fixes a bug where specifying `:enabled-for-modes nil` (or not
specifying `:enabled-for-modes` at all) in `dotspacemacs-line-numbers` settings
meant "enable in all modes" instead of "enable in modes derived from prog-mode
or text-mode".

Because of this change, also adds a way for users to enable line numbers
in *all* buffers.

Removes check for special buffer. All our current checks should be enough to
enable line numbers only where it makes sense. Disabling in all special buffers
is not necessary.
2018-05-28 19:29:15 +03:00
smile13241324 106b27f52e Deactivate evil-escape in holy-mode 2018-05-27 22:37:48 +03:00
syl20bnr 0fa3658cd8 reorganize spacemacs-base distribution into +spacemacs/spacemacs-xxx
This idea is to have the spacemacs-base distribution only configure defaults for
built-in packages. Those buit-in packages are now configured in the new layer
spacemacs-defaults.
Additionally some other packages of spacemacs-base have been dispatched to
better suiting spacemacs layers.

Projectile has been moved to the new layer spacemacs-project

- Move the following packages to bootsrap distributio layer:
  - exec-path-from-shell
  - evil-evilified-state
  - holy-mode
  - hybrid-mode
  - spacemacs-theme
- ace-window has been moved to spacemacs-navigation
- centered-buffer-mode has been moved to spacemacs-editing-visual
- pcre2el has been moved to spacemacs-editing
- evil-escape and evil-visualstar have been moved to spacemacs-evil
2018-03-04 20:54:54 -05:00
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
bmag f84ab9af8f u-p-always-defer fix regress: spacemacs-evil, spacemacs-editing
These changes were missed in commit 29c78ce841
2018-03-03 14:17:01 +02:00
syl20bnr 29c78ce841 Defer packages by default using use-package-always-defer
Warning now `:defer t` is implied, to force a package to load `:demand t` is
now necessary.
2018-02-27 23:32:52 -05:00
smile13241324 d526121202 Fix doc for first bunch of internal spacemacs layers 2018-02-22 17:36:45 +02:00
duianto 25fa9b0a50 Format spacemacs-evil/packages.el max 80 chars 2018-01-20 10:41:43 -05:00