Commit graph

63 commits

Author SHA1 Message Date
Maximilian Wolff
793898f818
[core] Move snoopy mode to spacemacs-editing layer 2020-08-11 00:05:40 +02:00
Tim Jäger
aa6ab15776
Add layer for snoopy-mode 2020-08-10 12:59:46 +02:00
Maximilian Wolff
c7ed2fc597
[helm] Provide fuzzy matching for Helm-M-x
Following the advice from duianto #13100 we are
setting completion-styles for helm-M-x to include
the emacs version specific fuzzy strategy as last
resort.

Before no fuzzy matching occured within command
searches.
2020-05-11 12:36:56 +02:00
duianto
0a06c7ca6b Fix filenames in layer file headers
Also fixed the groovy/funcs.el header which said: Java
2020-02-20 00:07:30 +01:00
duianto
f578e618a5
[nlinum] Show deprecation (Emacs 26.1+) warning on startup
The warning:
nlinum layer is deprecated for Emacs 26.1 and above
wasn't shown until SPC h SPC was pressed.

Because the variable: configuration-layer--used-layers
wasn't populated before the warning check occurred in
nlinum/packages.el.

The solution (suggested by syl20bnr) was to move the
check to a new file: nlinum/config.el.
2020-02-18 21:09:23 +01:00
duianto
7b28e62fb0 [nlinum] Fix symbol name typo
Thanks bcc32
2020-02-03 21:37:00 +01:00
wangtianshu
b6f9f7ffc9
Disable warning unless use the nlinum layer 2020-02-01 08:03:41 +00:00
kimr
da80634370
converted cl to cl-lib 2019-12-14 20:20:51 +00:00
duianto
8fcc9d8490 [multiple-cursors] Remove layer keys. Added upstream
Removed the following key bindings from the multiple-cursors layer:
grI  evil-mc-make-cursor-in-visual-selection-beg
grA  evil-mc-make-cursor-in-visual-selection-end
because they have been added upstream in the evil-mc package.

Changed the changelog.develop entry from saying that they were
added to the layer, to say that they were documented in the layer.
2019-11-25 17:45:01 +01:00
emacspace
9a82ee3ba7 documentation formatting: Fri Nov 22 19:37:23 UTC 2019 2019-11-22 22:47:35 +01:00
duianto
8bb98bcffa [multiple-cursors] Add evil-mc keys, cursors from selection
Added evil-mc make cursors from selection key bindings:
grI calls evil-mc-make-cursor-in-visual-selection-beg
grA calls evil-mc-make-cursor-in-visual-selection-end
2019-11-22 07:34:00 +01:00
Seong Yong-ju
6556cfc80d [multiple-cursors] Improvements
Fixed evil-mc-mode won't start automatically
Moved evil-mc key bindings to evil-mc-key-map, not global keymap
2019-11-15 13:49:02 +01:00
deb0ch
0cec3d0a69 docstring 2019-09-16 17:41:15 +03: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
duianto
348e996f7d [multiple-cursors] Update snippet, sort key bindings
Show the better supported backend in the readme snippet.
2019-05-27 15:46:07 +02:00
emacspace
c7c348a676 documentation formatting: Sun May 26 20:58:52 UTC 2019 2019-05-27 01:23:35 +03:00
bb2020
d68c6311d6 Add magnars's multiple-cursors backend 2019-05-26 22:51:26 +02:00
Anton-Latukha
f6660f82d4
Switch to the new layers generator 2019-05-15 21:08:21 +03:00
JAremko
5d02b1c4bb Add more tags 2019-05-03 03:44:19 +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
Henrique Jung
504fd6c120 Update key bind doc according to evil-mc changes
Commit gabesoft/evil-mc@041b904475 changed
the default key bind of `g r u` to a different (new) function. The old
behaviour is now available at `g r q`.
2019-04-22 23:43:09 +02:00
Robert O'Connor
66eebcf032 [ietf layer] Add RFC files to the auto-mode-alist to use irfc-mode 2019-04-13 18:59:54 +02:00
emacspace
6cde1e49bc documentation formatting: Fri Apr 12 19:31:31 UTC 2019 2019-04-12 22:02:05 +02:00
smile13241324
0cb2ef57cd Fix wrong use-package declaration of irfc-mode
ietf layer declared a wrong use-package
declaration, which tried to load ietf-docs
instead of the locally installed irfc package
causing irfc-mode to fail loading.
2019-04-12 21:24:45 +02:00
smile13241324
a6d505033c Load irfc package locally as it is no longer hosted on melpa or elpa 2019-04-12 20:48:22 +02:00
smile13241324
025e69256e Fix documentation for ietf layer 2019-04-12 20:09:51 +02:00
Christian E. Hopps
446299ffbd IETF related layers and packages. 2019-04-11 00:03:40 +02:00
duianto
cfa4abfa7a Hide evil-mc single cursor mode-line lighter "emc" 2019-04-06 09:20:13 +02:00
Aaron Renner
9008a2ca1d Fix typo in multiple-cursors readme 2019-04-02 23:11:14 +02:00
emacspace
45276bd96f documentation formatting: Wed Dec 5 03:03:03 UTC 2018 2018-12-04 22:06:14 -05:00
JAremko
141b6328e3 Reformat docs 2018-11-08 22:37:23 +02:00
JAremko
d2f4cb7114 Add Features: list 2018-11-08 22:37:23 +02:00
deb0ch
4036556fb5 fix binding conflicts between evil-mc, magit and treemacs 2018-11-05 22:14:32 +00:00
deb0ch
1402b1bacc formatting 2018-11-05 22:14:32 +00:00
Codruț Constantin Gușoi
f5243bb69a Document sublime inspired keybindings 2018-10-27 14:52:03 +03:00
Codruț Constantin Gușoi
25e76bff8e Documentation for multiple cursors 2018-10-27 14:34:08 +03:00
Codruț Constantin Gușoi
debf872c06 Renames the multiple cursors paste functions 2018-10-27 14:33:51 +03:00
Codruț Constantin Gușoi
5c6057226e Encapsulates multiple cursors functionality in a layer 2018-10-27 14:33:42 +03:00
Boris Buliga
d81e75584e
bump year in the copyright headers
Folks, this time of year has come. We can bump year in the copyright headers.
Let's celebrate!
2018-10-16 20:27:05 +03:00
JAremko
cd39f80c24 Reformat documentation 2018-10-11 00:13:43 +03:00
Codruț Constantin Gușoi
f2a4cc87c1 Fixes copy-as-format documentation 2018-07-27 01:20:09 +03:00
Ruslan Kamashev
c802d09ce9 Add copy-as-format layer 2018-07-27 01:09:30 +03:00
syl20bnr
76981cda26 New layer category +readers, move layers:
dash
deft
elfeed
epub
pdf
speed-reading
2018-06-06 00:36:10 -04:00
Jeremy Dormitzer
0e67c0eba2 Add epub layer
Ignore the nov-places file produced by nov.el

Fix link formatting

Add features to README

Format README

Remove trailing whitespace
2018-06-06 00:36:10 -04:00
syl20bnr
8660f93dec nlinum: deprecate layer for Emacs 26.1 and above 2018-06-02 01:28:54 -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
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
5c251f6415 use-package-always-defer: fix regressions: hybrid-mode, line-numbers
These changes were missed in commit 29c78ce841
2018-02-28 22:50:11 +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