Commit graph

309 commits

Author SHA1 Message Date
syl20bnr 3d63dd4392 core: fix red mode-line when an error occurred
Rename function configuration-layer//set-error to
configuration-layer//increment-error-count
2016-01-12 00:08:36 -05:00
Fabien Dubosson 78b8d939f4 Add spacemacs/describe-last-keys 2016-01-11 22:01:01 -05:00
Fabien Dubosson 2441b5861f Remove duplicate definition of SPC hds 2016-01-11 22:01:01 -05:00
syl20bnr 438bce3d29 Move request package storage directory to .cache 2016-01-11 21:59:34 -05:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -05:00
syl20bnr ce33918714 Use spacemacs/add-to-hooks 2016-01-11 01:15:47 -05:00
Eivind Fonn d8833215b0 Make scratch buffer major mode configurable 2016-01-11 01:13:10 -05:00
justbur c5528a5031 ivy: Minor changes to make more consistent w/ helm
1. Ask for intial directory in "file" search commands
2. "ry" -> counsel-yank-pop (browse kill ring)
3. Shorten which-key description for project search commands.
2016-01-11 01:13:09 -05:00
Fabien Dubosson a2ad920216 Enable hl-todo in text-mode derived buffers 2016-01-10 14:24:30 +01:00
syl20bnr ea333f7282 completion: move hjkl function to layers and treat ivy as a package 2016-01-09 15:29:37 -05:00
justbur 4872c711a2 spacemacs-ivy: Fix imenu jumping for ivy split
Make spacemacs/jump-in-buffer aware of ivy and move jI into the
spacemacs-helm layer
2016-01-09 13:36:03 -05:00
justbur 00b25656a0 spacmacs-helm: Move binding for hdm
For some reason this fixing a problem with helm refusing to load
2016-01-09 13:36:03 -05:00
justbur e4b865d88f ivy: Move persp keybindings out of projectile init
Now in post-init functions in the spacemacs-layout layer

Cleans up f74fbc6baba044b559917f6b15cb6f91934cdeee
2016-01-09 13:36:03 -05:00
justbur 3e2b5c88c3 ivy/helm: Reorganize help bindings
Mainly, reduce the duplication in bindings, but also issue message for
common spacemacs commands that are not implemented in spacemacs-ivy yet.
2016-01-09 13:36:03 -05:00
justbur a8c5119a50 ivy: Fix recentf loading
ivy-use-virtual-buffers was triggering recentf-mode to be called before
the recentf init function was called leading to problems with where the
recentf file was placed.
2016-01-09 13:36:03 -05:00
justbur 99140bc679 spacemacs: Port spacemacs/helm-open-junk-file for ivy
This is now spacemacs/open-junk-file and decides whether to use ivy or
helm based on the use of the spacemacs-ivy layer
2016-01-09 13:36:03 -05:00
Alexandr Skurikhin e64555d9d3 Map <escape> to minibuffer-keyboard-quit in ivy-minibuffer-map 2016-01-09 13:36:03 -05:00
justbur 08ec94a373 Update previous commit for new layer 2016-01-09 13:36:03 -05:00
Alexandr Skurikhin c7008108f5 Add ivy-persp-switch-project 2016-01-09 13:36:03 -05:00
justbur 32f523e062 spacemacs-helm: New layer
Collect helm configuration from spacemacs and spacemacs-base into one
place. The purpose is to allow choice between this layer and
spacemacs-ivy.
2016-01-09 13:36:03 -05:00
Fabien Dubosson 72a89ab312 Use jump-forward C-i binding only in GUI mode
Background: `C-i` and `TAB` are the same keycode for historic reasons.

With the current settings, evil [1] and evil-jumper [2] associate
`jump-forward` to `C-i` (==`TAB`), what overrides bindings set to
`TAB` (==`C-i`) in terminal mode, like `orc-cycle`. To fix this,
this commit:

- Set `evil-want-C-i-jump` to `nil`, to prevent `evil` and `evil-jumper`
  to use the `C-i` (==`TAB`) keycode.

- Remove the spacemacs' code that bind `jump-forward` to `TAB`(==`C-i`)

The current spacemacs code already rebind `jump-forward` to the GUI-only
`<C-i>` keycode.

[1] 082bd65ccc/evil-maps.el?fileviewer=file-view-default#evil-maps.el-323
[2] efaa841ca4/evil-jumper.el (L241)

Fix #4505
Fix #4487
2016-01-09 18:43:48 +01:00
syl20bnr fa50f4600a Move avy bindings to spacemacs/init-avy, remove "SPC `" 2016-01-09 02:28:19 -05:00
syl20bnr 58e5241c8d dotfile: rename dotspacemacs-command-key for dotspacemacs-emacs-command-key
And change the key from ":" to "SPC"
This key does not try to bind evil ex-command anymore, it only bind
M-x behind the leader key.
2016-01-09 01:53:24 -05:00
syl20bnr 454027df35 Remove undocumented and duplicated SPC j m and update doc. 2016-01-09 01:30:05 -05:00
justbur 02e2ce4d5a keybindings: Add SPC j for jumping
Use mnemonic j for jumping commands. Although some of these commands
exist in other places, they are duplicated here when they don't
conflict.

Add:

  1. jb for bookmark-jump
  2. jc for avy char jump
  3. jd for dired-jump
  4. jD for dired-jump-other-window
  5. jf for find-function-at-point
  6. ji for spacemacs/jump-in-buffer (imenu)
  7. jI for helm imenu in all buffers
  8. jl for avy go to line
  9. ju for avy-pop-mark (u for "undo")
  10. jU for spacmacs/avy-goto-url
  11. jv for find-variable-at-point
  12. jw for avy go to word or subword

Move:
  1. jh to j0 (push mark and go to beginning of line)
  1. jl to j$ (push mark and go to end of line)
2016-01-09 01:00:44 -05:00
Eivind Fonn c4a1a56e6a Add <C-i> binding for forward jump 2016-01-08 23:10:44 -05:00
syl20bnr 4ed2229c5c shell: move deactivation of smooth-scrolling to shell layer 2016-01-08 21:27:26 -05:00
Eivind Fonn f549333762 Unset scroll margin in eshell 2016-01-08 21:43:35 +01:00
justbur 1c94c84c09 bind-map: Add evilified state to evil major-mode keys
Fixes problem referred to in #4495
2016-01-08 20:52:53 +01:00
justbur f3c650472c transparency: Better version of toggle transparency
Before we could get an error if for some reason the user set the alpha
parameter to something other than a cons cell.

Ref #4388
2016-01-06 00:26:53 -05:00
syl20bnr 29a7eab537 Remove unneeded variable spacemacs-mode-line-new-version-lighterp 2016-01-05 12:50:21 -05:00
Eivind Fonn de17125e6d Fix void variable error for new version segment 2016-01-05 15:31:51 +01:00
Sebastian Wiesner f074c3887b Bind hn to view-emacs-news 2016-01-05 01:27:25 -05:00
syl20bnr 2f479eedc3 holy-mode: fix handling of evil-escape 2016-01-05 00:58:05 -05:00
justbur 8a5882ec6b evil-jumper: Move bindings to global motion map
Having them in a minor mode map gives them precedence over other minor
modes. It's better to put the bindings in the same place as the original
evil jump commands which is the global motion map.
2016-01-05 00:40:16 -05:00
syl20bnr c913ec89f8 Improve support for GUI client of emacs --daemon
Fix spacemacs|do-after-display-system-init
Delay setup of spaceline separator
Explicitly reload the theme for the first GUI client
2016-01-04 23:18:45 -05:00
syl20bnr 96a648d1da Update deprecation TODO to 0.106 2016-01-03 22:46:01 -05:00
Yiming Chen 954104a792 Bind g and G in helm micro state
Fix #4233
2016-01-03 22:23:12 -05:00
Fabien Dubosson 6cb7399cac Change SPC f e h to SPC h SPC for helm-spacemacs default binding
This make `SPC h SPC` as default binding for accessing `helm-spacemacs`,
by either A) changing all the documentation; and B) adding a deprecation
message for `SPC f e h`.

The deprecation use a warning, because if a message is used it's hidden
directly when the helm buffer is shown, making it nearly unnoticeable
for the user.
2016-01-03 22:23:12 -05:00
justbur 564e2611bf Fix transparency toggle
The docs state that the parameter should be a cons cell instead of a
list. Cleaned up the toggle function a bit, too.
2016-01-03 22:23:12 -05:00
Xue Fuqiao e8e679ba6d Re-enable lockfiles 2016-01-03 22:23:12 -05:00
Eivind Fonn fd014b6908 Add some text objects 2016-01-03 22:23:11 -05:00
Christoph Paulik ab0abb823c Remove custom write-file function, use save-buffer
Could not find a use case where the custom function performs differently
it is just missing functionality for indirect buffers.
2016-01-03 22:23:11 -05:00
Eivind Fonn 24d0fe3b7b Set helm-org-format-outline-path to t by default
Also ensure FAQ source works regardless of this setting
2016-01-03 18:30:41 +01:00
Eivind Fonn ee42853ac6 Fix helm grep 2016-01-03 15:47:39 +01:00
Eivind Fonn 9642c35a6a Fix helm-spacemacs FAQ candidates
Yes helm, please do keep changing your API
2015-12-27 13:03:20 +01:00
Wieland Hoffmann 31c73913b5 Remove rxt-fontify-regexp-at-point
It has been removed from pcre2el more than a year ago with
e1e8593db1.
2015-12-21 01:07:52 -05:00
justbur 864fd54209 Use spacemacs/set-leader-keys in evil-lisp-state config
Given the intended behavior of having evil-lisp-state-map available
under SPC k, it is simplest to bind it directly to
spacemacs-default-map.

This requires no changes to evil-lisp-state itself.

Fixes #4151
2015-12-21 00:59:24 -05:00
justbur 0b02475772 Use built-in evil functions to set default states
evil-set-initial-state is safer than manually adding and deleting from
the lists, because it knows about all available states and ensures that
the mode only shows up in one list. If it is in multiple list the
initial state depends on which is checked first, which we don't want.
2015-12-21 00:22:18 -05:00
syl20bnr 5463a370bd holy-mode: fix toggle rule regression
From doc:
SPC t e E toggles between vim and emacs styles (corrected)
SPC t e h toggles between vim and hybrid styles (was correct)
2015-12-21 00:14:46 -05:00
justbur 27fa611af6 holy-mode: Disable certain modes on activation
Includes evil-escape-mode and hybrid-mode for now, but more can be added
to holy-mode-modes-to-disable-alist.
2015-12-21 00:13:34 -05:00
justbur 84a8f124df hybrid-mode: Add option to change default state
Useful for those who want to start in hybrid state with emacs bindings.
2015-12-21 00:13:29 -05:00
justbur 1d05f3887a holy-mode == (evil-mode -1)
The proper holy-mode (IMO). Simply disable evil-mode and reset the
cursor and mode-line settings.
2015-12-20 23:25:48 -05:00
syl20bnr a5022743e5 core: remove dash and f from boostrap and attempt to remove evil
Cannot remove evil due to bind-map requiring it.
2015-12-20 23:00:09 -05:00
syl20bnr 522366bbd1 spacemacs: hide cursor in helm buffers
fixes #4236
2015-12-20 01:16:36 -05:00
syl20bnr 88fba59879 evilified-state: normalize modified evil keymaps
on visual state entry
also remove ESC key binding in evilified state
2015-12-20 00:49:52 -05:00
Driftcrow c9c3d685ea fix toggle-truncate off bug 2015-12-19 23:19:43 +01:00
Eivind Fonn 03c83e169c helm-spacemacs: Fix FAQ source
See commits regarding https://github.com/emacs-helm/helm/issues/1294
2015-12-18 11:27:37 +01:00
Eivind Fonn fb8ca59583 Remove custom fancy battery modeline
Now in Spaceline
2015-12-15 00:18:47 -05:00
syl20bnr 17fae46f8b evilified state: fix visual state bindings
Clear the normal state keymap when in visual state
2015-12-14 00:38:02 -05:00
Eivind Fonn edd7364db8 Fix smartparens bindings 2015-12-13 01:44:26 -05:00
justbur 7eefe0df2f spacemacs-base: Don't use obsolete variable
default-fill-column is marked obsolete since 23.2. Use setq-default on
fill-column.
2015-12-12 23:02:24 -05:00
Sebastian Wiesner 3aa8e755dd Compare system-type as symbol
As per documentation, system-type holds a symbol denoting the OS type; let's treat it as such.
2015-12-12 10:58:12 +01:00
syl20bnr dac714cdd6 evilified-state: allow back and forth between normal and evilified
using ESC.
2015-12-11 21:24:33 -05:00
syl20bnr 4a6fd1b364 core: hide mode-line at startup 2015-12-11 03:07:15 -05:00
justbur 812ba329f2 core: move spacemacs-mode to core-spacemacs-buffer.el
The rationale is to keep the spacemacs buffer related code contained in
the core-spacemacs-buffer.el file.
2015-12-11 02:25:22 -05:00
justbur f2878d594a core: Factor out spacemacs-buffer creation
Factor out the code related to creating the spacemacs buffer, so that it
can be recreated easily if it gets deleted.
2015-12-11 02:25:19 -05:00
Diego Berrocal 8fb3af3e56 Add ability to **add** a layer in helm-spacemacs
I've been introducing tons of people to Spacemacs, and most of them
always think that having to read documentation in how to add a layer is
too much.

I made this modification to make it easier to install layers.
2015-12-11 02:13:17 -05:00
Daniel Luna cf11545cc4 spacemacs/sudo-edit working on remote ssh buffers with multi-hops 2015-12-11 02:11:32 -05:00
Fabien Dubosson 315528c89f Refactor CONTRIBUTING documentations
This commit merge the `CONTRIBUTING.md` and `doc/CONTRIBUTE.org` file
into a new `CONTRIBUTING.org` file. It also refactors the content to be
more organized and make its navigation more goal-oriented.

Github displays a link to the `CONTRIBUTING.*` file when people are
opening new issues or proposing new PRs. This file is important because
it is the entry-point to contributions guidelines for most of the users.
The current setup is non-optimal, even broken, as it adds a level of
indirection, and points to a contributing file that has broken
links (due to the new documentation format). The possible drawback of
the proposed solution is that I'm not sure if it is possible to include
it into the new online documentation as it is not in `doc/` folder.

The other possibility is to keep a small `CONTRIBUTING.md` file, as it
is now, pointing to the new documentation system (once online), but I'm
preferring the proposed solution for the following reasons:

- People that are willing to contribute will probably open Github
  first (for forking, creating PR, etc), not the online documentation.

- It has one level of indirection less when people click on the
  guidelines guide from a new issue/PR.

- `CONTRIBUTING.*` is by convention a special kind of file on github, so
  it's valid reason to break the rule and not having it in the `doc/`
  folder.
2015-12-11 01:09:09 -05:00
syl20bnr eaf6b8c134 selectric: tweak configuration, declare SPC C-t prefix name 2015-12-09 18:56:08 -05:00
William Casarin c4a80efcb8 keybinding: ck -> kill-compilation 2015-12-09 01:31:42 -05:00
justbur 76d82869a8 bind-map: Define minor-mode name
New bind-map option allows defining the name for the overriding-mode.
This does that and removes the now redundant :evil-use-local option.
2015-12-09 01:25:19 -05:00
syl20bnr 0860d64660 Replace old evilify macro for neotree 2015-12-09 01:22:43 -05:00
syl20bnr 4a75ab4dfb Require helm in spacemacs/helm-open-junk-file 2015-12-09 01:14:15 -05:00
Muneeb Shaikh 7309c861f0 junk: open junk file using helm, allow searching with prefix
Also renamed `open-junk-file-directory` to new var
`open-junk-file-format`
2015-12-09 01:10:12 -05:00
syl20bnr 5895e0e45f change mhh for gh to follow-symbol in help buffers
Also document the key bindings
2015-12-09 01:08:52 -05:00
AdrieanKhisbe ccb5ce5578 Add new keys in help-mode for navigation
Add keys to browse back and forward in help-mode

cf #2698

Add new key in help-mode

Last changes for motion in help buffer
2015-12-09 00:59:07 -05:00
Bar Magal 0ce04e0518 Evilify Neotree 2015-12-09 00:55:44 -05:00
syl20bnr 30e9a294d9 evilified-state: use a copy of evilified-state
instead of the map itself.
2015-12-08 02:08:50 -05:00
syl20bnr e0b3f5e1de spacemacs-base: enable hl-todo only when needed 2015-12-07 22:59:14 -05:00
Fabien Dubosson 6def1a480b Use hl-todo for TODOs/FIXMEs highlighting
The current way to highlight TODOs is `spacemacs/highlight-TODO-words`
which is a spacemacs' hard-coded function.

This commit changes it for the `hl-todo` package. This imply:

- More keywords are supported out of the box.

- Keywords are associated to faces, so they are shown in different
  colors.

- Keywords are stored with their faces in a list, so it's easier for
  users to add their own keywords and faces (as contrary to a regexp).

- It is possible to disable highlighting by simply excluding the
  package.
2015-12-07 19:39:38 +01:00
Fabien Dubosson ec8250ea1d Move jump-in-buffer to SPC s j
After a discussion on gitter with @TheBB and @syl20bnr, `jump-in-buffer`
is moved from `SPC s L` to `SPC s j`.
2015-12-07 13:12:10 +01:00
syl20bnr 5104593e89 spacemacs-base: swap SPC s l and SPC s L
SPC s l to bring last search buffer is a powerful binding, let it take
the easier binding.
2015-12-06 23:20:46 -05:00
syl20bnr 0438ee43cf evilified-state: better tag for evilified state 2015-12-06 01:06:41 -05:00
syl20bnr 6fd2af2af3 evilified-state: support for magit remap entries in section maps
Add :pre-bindings keyword argument used to restore explicit key binding
in section maps.
2015-12-06 01:04:13 -05:00
syl20bnr 085d8f150a evilified state: fix visual state
reintroduce the pre-command hook which is required for visual state
borrow code from evil-magit to fix ESC bug in visual state in magit buffers
2015-12-05 23:13:40 -05:00
justbur 899123258a keys: Don't specify C-i as a binding key
(kbd "C-i") == (kbd "TAB") so for consistency sake we always bind to TAB
by convention.
2015-12-05 13:18:37 -05:00
vijaykiran d6be41a4e8 Fix Latin function name
Apparently ` in-nominus-patris-et-filii-et-sipritus-sancti` should be
`in-nomine-patris-et-filii-et-sipritus-sancti`

See: https://en.wikipedia.org/wiki/Trinitarian_formula
Via: https://twitter.com/PeterHilton/status/672133909795196928
2015-12-03 23:54:15 -05:00
Daniel Choi 2d17a08138 core: fix: 'ahs-edit-mode' func requires argument
func signature is (defun ahs-edit-mode (arg &optional temporary))
2015-12-03 23:49:32 -05:00
Eivind Fonn 4870030ba1 Auto-set evil-shift-width based on mode settings 2015-12-01 02:19:56 -05:00
AdrieanKhisbe 5a69b6dd9c Extract spray speed reading layer
cf #3882
2015-12-01 01:45:05 -05:00
justbur 81765e9f8f keys: Fix #3927
Use new bind-map option to override minor-mode maps with the emacs
leader key.
2015-12-01 01:22:53 -05:00
Allen Li 4321fccb05 Fix issue #3978
Duplicate prefix maps when evilifying maps to fix prefix binding getting
shared and overwritten between maps.
2015-12-01 01:18:01 -05:00
syl20bnr 97ae903317 evilified-state: remove unnecessary pre-command-hook 2015-12-01 00:46:19 -05:00
syl20bnr 1e6e4023e8 evilified-state: handle minibuffer
Fix isearch not working with evilified keys.
Requires last version (3.11 or above) of evil-escape to be fully
functional.
2015-11-30 11:30:18 -05:00
justbur 648a4e9937 keys: Fix #3981
Make bind-map use default behavior of evil-leader, which used local
state maps for global bindings.
2015-11-29 23:21:09 -05:00
Chris Perkins d99259bcd5 Add some missing which-key prefixes 2015-11-29 12:12:43 +01:00
syl20bnr a19c0f3d24 core: remove spacemacs/set-key funcs and add a new pre-command-hook
This pre-command-hook translates the special key to the corresponding
emacs function key. This effects only happens in terminal, this hook is
a no-op in GUI.

By doing this we attempt to bring more consistency between the GUI
and the terminal regarding TAB and RET keys.
2015-11-28 23:11:48 -05:00
syl20bnr d5233a9706 core: new spacemacs function to set keys
spacemacs/set-key
spacemacs/set-key-for-state

These functions find normalized keys which should handle as sanely as
possible the GUI and the terminal.

See docstring of spacemacs//normalize-key for more info.
2015-11-28 00:13:31 -05:00