Commit Graph

72 Commits

Author SHA1 Message Date
duianto b7cbcb5ed5 [parinfer] Fix: Wrong number of arguments: setq, 5
cause:
The spacemacs|add-toggle expression,
ended up in the combined setq above.

additional changes:
Separated the combined setqs, to make it
easier see where each assignment starts.

Wrapped the lines at 80 chars to reduce
the need to scroll horizontally.
2021-03-08 10:31:43 +01:00
Maximilian Wolff de55a45dbd
[parinfer] Switch implementation to parinfer-rust-mode
as parinfer-mode is officially unmaintained now.
2021-03-07 23:09:22 +01:00
Maximilian Wolff be908875cb
Change newly added which-key bindings to use keymap api
The newly added bindings had side effects for
magit. This was caused by which-keys replacement
working on bindings which are identical between
various modes.

To fix this I have changed the api to use the newly
added keymap based replacements which avoid these
issues.

As a side effect they are a ton faster as which
key does not have to compare all available bindings
everytime it opens its help window.

I have also fixed some more missing which-key
description in magit status buffer.
2020-11-27 22:46:56 +01:00
Maximilian Wolff cb9c5c976c
[core] Add missing which-key description for `evil-mc`
evil-mc puts its bindings behind `gr` but misses
to define a proper which key prefix.
2020-11-27 20:18:32 +01:00
emacspace a9fc0d5fcc documentation formatting: Thu Oct 8 06:38:34 UTC 2020 2020-10-08 09:49:06 +03:00
Kevin bf78bd4ec5 Add dtrt-indent layer 2020-10-06 12:30:47 +02:00
duianto d72019e33d
[multiple-cursors] Disable evil-mc-mode in magit-mode (#13971)
Resolves #13948

problem:
The p key tries to paste in the read-only magit buffer,
instead of calling magit-push.

After toggling text-mode on and off (C-t or \),
because evil-mc-mode becomes enabled when text-mode is enabled.
2020-09-23 22:37:55 +02:00
Robert O'Connor 82ba73a1c0
update copyright to 2020 2020-09-23 21:25:01 +02:00
duianto 81d1c9f787 Fix org table evil paste
Paste using *table--cell-yank, in org-src-mode.
2020-08-19 23:46:21 +02:00
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