Commit graph

277 commits

Author SHA1 Message Date
Fabien Dubosson b1fc99bdee Improve keybindings for text-region counting.
Emacs provides a `count-words-region' which is badly named as it counts
not only words, but also characters and lines. The current keybinding
for this function `SPC x w c' implies it's referring to words only. The
new mapping `SPC x c` is more coherent since it means counting text,
whether it is characters, words or lines. An alias `count-region` is
created to be less confusing in which-key description.

`SPC x w c` being free, `spacemacs/count-words-analysis` is remapped to
it instead of `SPC x w C` to save one keystroke.
2015-10-07 15:51:39 -04:00
Eivind Fonn 1c06e2369c Use helm or ibuffer to provide :ls 2015-10-07 15:51:39 -04:00
Fabien Dubosson 66bd2d326e Improve count-words-analysis output
The `spacemacs/count-words-analysis' function displays results with the
default elisp formatting of associative list. This change improves it by
changing the format to a more human-readable form, and also by ordering
results by frequencies first, and then alphabetically in case of tie.
2015-10-07 15:51:39 -04:00
person808 c1b6293268 Replace eval-after-load with with-eval-after-load.
We now backport the macro for 24.3 so we can use it everywhere.
2015-10-07 15:51:39 -04:00
Yen-Chin Lee 2a983671af Fix some cl-lib function with prefix
Since emacs 24.3, function in cl-lib should with cl- prefix.

Signed-off-by: Yen-Chin Lee <coldnew.tw@gmail.com>
2015-10-07 15:51:39 -04:00
Fabien Dubosson 5e3dbd9234 Add FAQ as a source in helm-spacemacs
Add the `FAQ.org` file as a source in helm-spacemacs (`SPC f e h`).
Define a new keybinding for looking directly inside the FAQ with helm:
`SPC f e f`.

With help from TheBB, thanks!
2015-10-07 15:51:38 -04:00
person808 28c5298f4c Use built-in evil variable to set Y behavior. 2015-10-05 12:17:27 +02:00
Eivind Fonn 273d6b5d11 helm-spacemacs: action to open readme for editing 2015-10-05 12:16:46 +02:00
Eivind Fonn 98380b3f72 Remove dead mode-line code 2015-09-30 15:07:01 +02:00
syl20bnr 14fd2b48e9 New variable dotspacemacs-remap-Y-to-y$ 2015-09-28 23:09:44 -04:00
syl20bnr b256475325 helm-find-files: use C-h and C-l to go up down a directory
Import TheBB configuration into Spacemacs and add `C-S-h` to replace
redefined `C-h` binidng.

Also remove the go up a directory behavior on backspace, now backspace
is a regular backspace.
2015-09-27 10:20:14 -04:00
syl20bnr ae475c06c4 base: move toggles for editing styles
SPC t E e -> emacs
SPC t E h -> hybrid
2015-09-26 11:06:45 -04:00
syl20bnr 48b3fb2cad Improve which-key prefix command names for toggles 2015-09-26 11:06:16 -04:00
syl20bnr 983e569de6 hybrid: redefine evil-insert-state-p
If it has nasty side effects we will just revert it in favor of the
precedent commit.
2015-09-26 00:54:56 -04:00
justbur 90fc25a19c hybrid: Prevent C-SPC toggling visual from hybrid
Redefines the `evil-visual-activate-hook` to add hybrid to the list of
states that don't go into visual state when the mark is activated
2015-09-26 00:45:45 -04:00
person808 a7c4014c3f Add new descriptions for new files in helm-spacemacs. 2015-09-24 00:36:53 -04:00
syl20bnr 5c53427c35 spacemacs-base: Remove outdated comment and sort packages 2015-09-23 23:47:36 -04:00
syl20bnr 7e8c275bc5 Rework editing style toggles
Put the toggles on SPC t E with
SPC t E h -> holy-mode
SPC t E y -> hybrid-mode

Make the mode-line diminished lighter consistent with the key bindings,
so holy is Ⓔh and hybrid is Ⓔy

Add seamless switch between holy and hybrid.
2015-09-23 23:27:51 -04:00
Ben Hayden ea805fdc7a Add diminish for hybrid. 2015-09-23 23:11:56 -04:00
syl20bnr 25ee106bdb Migrate some configuration to new built-in location 2015-09-23 22:02:39 -04:00
syl20bnr 0ab2c89628 evil: remove evil-move-beyond-eol and comment out cursor refresh hack 2015-09-19 18:16:00 -04:00
justbur 89ec2d7096 Add back core-keys: Rewrite emacs-leader handling
Brings back the changes made in
dad786bc8d with an additional fix for
evil-org whose config was unbinding important leader keys in org-mode
2015-09-19 01:07:26 -04:00
Chris Grindstaff 88daf79ad1 Update config.el
Fix spelling
2015-09-19 01:00:25 -04:00
syl20bnr 220b15a734 Revert "core-keys: Rewrite emacs-leader handling"
This reverts commit dad786bc8d.
2015-09-17 23:41:48 -04:00
justbur dad786bc8d core-keys: Rewrite emacs-leader handling
This is how evil-leader gets `SPC m` to work for mode specific bindings,
and we need to mirror this step for `M-m`. This is big change, but in
order for `M-m` to work properly we need to remap it to the mode-map
whenever possible.
2015-09-17 22:35:51 -04:00
Eivind Fonn 41459bea12 Set evil-move-beyond-eol to nil for now 2015-09-17 22:05:04 +02:00
Robert O'Connor 3f2e885811 Rename spacemacs-core to spacemacs-base
Per the discussion in #3002. A comment in #3047 prompted this PR.
2015-09-16 21:22:35 -04:00