Commit graph

1589 commits

Author SHA1 Message Date
Amar Sood (tekacs)
14b650e81e cider-turn-on-eldoc-mode is deprecated.
Use (eldoc-mode) instead.
2016-04-11 20:16:15 +02:00
Fabien Dubosson
f2f23e6aa1 Guard idris company setup on the auto-completion layer 2016-04-11 10:58:21 +02:00
Fabien Dubosson
247d7cc5bd Add back idris REPL bindings on ,si and ,' 2016-04-11 10:58:14 +02:00
Jeremy Bi
ec9c18b832 Improve idris support
Squashing the 3 commits of #5688:

Commit 1
--------

Add prefix doc in idris layer

Also remove `idris-ensure-process-and-repl-buffer` as this is not an
interactive command

Add `SPC m l` keybinding for extracting lemma

Bind `SPC m c` to `idris-case-dwim`

Commit 2
--------

Fix registering idris repl

Commit 3
--------

Add basic auto-completion for idris mode
2016-04-11 10:50:34 +02:00
Eivind Fonn
787fc435f7 Revert "hotfix: use stable version of yasnippet"
This reverts commit 3717864408.
2016-04-10 17:55:36 +02:00
syl20bnr
3717864408 hotfix: use stable version of yasnippet 2016-04-09 10:14:47 -04:00
bmag
526a0334d7 Synchronize Neotree window when changing context
Fix Neotree losing track of its window when changing workspaces or
layouts.
2016-04-08 23:12:26 -04:00
Fabien Dubosson
ac5cfcf2a1 Improve SPC s c to support evil-search-module
Fix #1326
Fix #5101
2016-04-08 23:11:12 -04:00
Fabien Dubosson
44470aa64f Fix shells asking for "Run program"
After 63dc8f7ea0 `SPC '` started to ask
for "Run program" instead of opening the shell with the defined shell.

This commit remove the `call-interactively` that are causing this
problem. `SPC u SPC '` is still working as far as I tested.
2016-04-08 23:04:42 -04:00
syl20bnr
5752c87ac0 imenu-list: exclude IList buffer from golden-ratio 2016-04-08 18:20:50 -04:00
syl20bnr
3f0a261206 imenu-list: update README.org 2016-04-08 18:14:39 -04:00
bmag
6f2e2df275 Add imenu-list layer
imenu-list provides a side bar that shows all imenu entries of the
current buffer
2016-04-08 18:09:52 -04:00
tyuuni
b364697125 spacemacs-helm: Fix typo (,r . ,r)
Fix a little bug.
2016-04-08 18:04:51 -04:00
Eivind Fonn
e6948533df Fix erc/README.org 2016-04-08 18:06:43 +02:00
Eivind Fonn
9e1909f5e0 Move erc/funcs.el to new folder, add header 2016-04-08 18:05:24 +02:00
Jack Henahan
5bde687d07 Add default server list to ERC layer 2016-04-08 17:48:54 +02:00
Magnus Therning
5c575a7eb8 git: Add binding to magit-reset-popup
Signed-off-by: Magnus Therning <magnus@therning.org>
2016-04-08 17:43:35 +02:00
Eivind Fonn
9b60b133ad Add documentation to transparency TS 2016-04-08 17:43:18 +02:00
sooheon
b77b541e3a Allow = to be used to increase transparency
-,= is easy to go back and forth, without needing to press shift for +.
2016-04-08 17:39:33 +02:00
Muneeb Shaikh
cbb376de9e ansible: update auto-mode-alist for host/group vars 2016-04-08 17:37:01 +02:00
Fabien Dubosson
0f7a6c7f87 [bepo] Remove SPC j … corrections
These corrections were useful only before `SPC j` has been reassigned
for jumping functions.
2016-04-08 13:42:38 +02:00
sdlovecraft
ec0d233499 Added documentation for managing files 2016-04-07 23:19:39 -04:00
syl20bnr
fdf74897a3 javascript: remove variable javascript-disable-tern-missing-warning
Just log the warning in the message buffer.
2016-04-07 23:13:25 -04:00
Joe Hillenbrand
d3922095e2 python: register python language for org-babel 2016-04-07 23:02:55 -04:00
zilongshanren
61115f3e6b remove duplicated configs of eldoc 2016-04-07 23:01:33 -04:00
NJBS
fa27581af8 Diminish racer since it clutters the mode-line 2016-04-07 23:00:31 -04:00
Muneeb Shaikh
dc799401f7 javascript: enhance tern binary detection
Fix #4292

If tern binary isn't found, warn the user of missing binary and do not
enable tern package(else it makes emacs unresponsive).
Allow user to disable missing binary warning via configuration layer
variable `javascript-disable-tern-missing-warning`
2016-04-07 23:00:20 -04:00
Mingshen Sun
002e8598b9 jabber: evilify the key bindings 2016-04-07 22:59:31 -04:00
Dennis Hamester
b18ccaaa29 Fix next-error behavior when flycheck is active
spacemacs/{next,previous}-error will now call {next,previous}-error when
a compilation buffer is visible.
2016-04-07 22:58:36 -04:00
syl20bnr
ecffbb49e0 github: make git-link-commit works with git-timemachine 2016-04-07 22:51:47 -04:00
syl20bnr
4bc796c9e6 github: move some functions to funcs.el 2016-04-07 22:44:58 -04:00
syl20bnr
43bc88119b github: replace the advice around git-link--branch by letf 2016-04-07 22:43:07 -04:00
Daniel Luna
4a6f2ff014 [github layer] git-link working as expected in git-timemachine buffers
This commit allows an user to run git-link in a git-timemachine bufer
and get the current revision instead of the latest commit in that
branch.
2016-04-07 22:27:41 -04:00
Nate Wolfe
8526ee7145 (5719) Fix multi-term shell popup
This commit removes the unused argument from the wrapper lambda, which
appears to be no longer provided when the function is called.
2016-04-07 22:15:36 -04:00
syl20bnr
b1a41ce2ce
bootstrap: explicitly require evil 2016-04-07 22:11:22 -04:00
syl20bnr
ff7b839df0
org: various tweaks to spacemacs-org and org layers
- move evil-org to org layer
- move org-plus-contrib to spacemacs-org layer
- remove toc-org from the list of package for org layer
- give ownership of the org package to org layer
- invent a package named default-org in spacemacs-org layer in order
  to let the ownership of org package to org layer
- remove unnecessary :mode keyword in use-package from for org
2016-04-07 22:11:22 -04:00
d12frosted
8b0c69c8cd
move org essentials to spacemacs distro 2016-04-07 22:11:22 -04:00
Fabien Dubosson
2b4a039646 Align vinegar/packages.el and update ranger/packages.el code style 2016-04-08 00:33:43 +02:00
Fabien Dubosson
f651969d12 Use use-package to define autoload of dired-x
This also add autoload for `dired-omit-mode` which fixes #5705
2016-04-08 00:32:06 +02:00
Fabien Dubosson
0dc19d127b Correct vinegar's dired configuration
Fix #5709
2016-04-08 00:28:53 +02:00
syl20bnr
97f4473849 Remove erroneous :defer for spaceline package.
Thanks TheBB :-)
2016-04-07 14:57:48 -04:00
syl20bnr
63dc8f7ea0 shell: add support for SPC u SPC ' to open shell in current buffer
Works as well for all `SPC a s ...` key bindings.
2016-04-07 14:52:41 -04:00
Eivind Fonn
7a0328929c Fix Y-y$ remapping 2016-04-07 15:16:27 +02:00
Eivind Fonn
64392e3fa5
Fix eshell setup for xterm-color
This makes sure that all the setup happens at the same time. Previously
some setup happened at loading time of esh-mode while some happened in
eshell-mode-hook. Everything output between this (the first prompt)
looks different.
2016-04-06 18:14:57 -04:00
syl20bnr
09ff77fbd4 Make it possible to use spacemacs-bootstrap layer as a distribution 2016-04-06 13:12:13 -04:00
Eivind Fonn
bb46ced71c Fix bookmark binding conflict 2016-04-06 11:28:24 +02:00
syl20bnr
232824bf05
games: add progn form and improve doc for typit 2016-04-05 22:41:36 -04:00
syl20bnr
6866e02dae
games: add typit, a simple typing game. 2016-04-05 22:28:54 -04:00
Fabien Dubosson
0ec385c60c Fix misplaced keybinding definition for ranger 2016-04-05 13:39:17 +02:00
Fabien Dubosson
481c196cd5 Fix deer binding being overlapped by dired 2016-04-05 13:04:51 +02:00
Allen Li
7ca64553ed Fix dired-x dired-jump autoload 2016-04-05 12:59:33 +02:00
Fabien Dubosson
abd9ef6892 Justify paragraphs in the evil-cleverparens README 2016-04-05 12:57:57 +02:00
Matthew Egan Odendahl
6465ddd2ef Add an example hook 2016-04-05 12:56:36 +02:00
Fabien Dubosson
23ce5aee84 Justify a paragraph in the scala README 2016-04-05 12:55:31 +02:00
Channing Walton
12b2de9032 Correcting scala-enable-eldoc-mode to scala-enable-eldoc 2016-04-05 12:54:45 +02:00
Fabien Dubosson
1a45754cad Visualy align some keybindings 2016-04-05 12:53:44 +02:00
Fabien Dubosson
57e91fe035 Correct more <SPC> to SPC 2016-04-05 12:52:54 +02:00
Robert Johnson
16e1be2691 Fix inconsistent notation of SPC key in docs
Replace all occurrences of <SPC> in org files with SPC.

Fixes syl20bnr/spacemacs#1823
2016-04-05 12:46:10 +02:00
Fabien Dubosson
d6202d3f33 Reorder projectile-replace-regexp alphabetically 2016-04-05 12:38:43 +02:00
d12frosted
5212e5539e add key binding for projectile-replace-regexp
Following https://github.com/bbatsov/projectile/pull/977
2016-04-05 12:37:53 +02:00
Allen Li
e037dcdc51 Set SPC f b to bookmark-jump
helm will overwrite this with its own command, but people not using
helm (only ivy at the moment) will need this defined.
2016-04-05 12:33:19 +02:00
Pablo de Oliveira
cc3cfcddfd Fix +lang/markdown documentation on promotion and movement keybindings
Update documentation by removing obsolete keybindings that
were deleted from +lang/markdown layer in 7b6678e.

In particular the ~SPC m =~, ~SPC m -~ and ~SPC m l [h/j/k/l]~
have been superseded by the **Movement** bindings.
2016-04-05 12:29:33 +02:00
Fabien Dubosson
80195d15c7 Justify a paragraph in the go README 2016-04-05 12:28:11 +02:00
james sangho nah
1773cca021 Fix minor typo in Go README 2016-04-05 12:22:01 +02:00
Diogo Biazus
a3deae88d0 Setup flycheck-purescript for purescript layer 2016-04-04 22:45:04 -04:00
mahinshaw
1bd5756a99 Extend lazy-install for other clojure based modes. 2016-04-04 22:42:51 -04:00
Joel McCracken
bc3c77e63e Do not delete window when there is only one
If ansi-term is a full-screen window, running `(delete-window)` in this
case would cause an error to appear. This commit guards against this
scenario.
2016-04-04 22:41:53 -04:00
Lily
135fdfb612 github: Document how to configure your github OAuth token
This helps make the `github` layer work better
2016-04-04 22:39:50 -04:00
syl20bnr
74fb719b44 go: make go-tab-width a regular layer variable 2016-04-04 22:36:51 -04:00
james sangho nah
4129264302 go: new variable `go-tab-width' 2016-04-04 22:34:17 -04:00
Muneeb Shaikh
25abc07359 hybrid: evilify supporting buffer as default
Fix #5645
2016-04-04 22:24:37 -04:00
syl20bnr
99d9993171 Scala: fix ensime-typecheck-current-file to ensime-typecheck-current-buffer 2016-04-04 21:52:45 -04:00
Aaron Jensen
492974b969 tmux: remove global unset of C-h
This is unnecessary and prevents hybrid mode from having its normal help bindings.
2016-04-04 21:50:40 -04:00
Aaron Jensen
bb50218622 tmux: replace deprecated post-extensions with packages 2016-04-04 21:50:08 -04:00
Muneeb Shaikh
c9ef2f6f3c python: explicitly autoload py-yapf-buffer
Since it's a local package, there's no autoloads file. Adding it to
:commands to let use-package add autoload for it.
2016-04-04 21:46:23 -04:00
syl20bnr
ec35ede5b6 Fix move selected text up and down in visual state 2016-04-04 21:43:30 -04:00
hujianxin
fdf73e9234 Clojure: Fix a error caused by mess writing.
In this case, `mode` should be fixed to `m` .
2016-04-04 19:42:57 -04:00
Fabien Dubosson
8825a06705 [bepo] Correct definition of «» pair delimiters 2016-04-04 22:08:57 +02:00
Fabien Dubosson
fa66c0ea84 [bepo] Sort packages and add missing «helm» 2016-04-04 21:23:44 +02:00
syl20bnr
2bfcb8cd30 restclient: fix auto-mode-alist of ob-http configuration 2016-04-04 10:57:25 -04:00
syl20bnr
931652bf8d shell: register shell language for org-babel 2016-04-04 09:49:13 -04:00
syl20bnr
c4e6dd752b spaceline: remove :defer 0.1 for now 2016-04-03 22:25:39 -04:00
syl20bnr
d90c6f5fee bepo: make it more spacemacsy
Isolate the calls to bepo macro in pre-init or post-init functions, this
way they are called a the right time in the loading process.
Previously the calls were all in the config.el file which is loaded
before the package configuration phase.
2016-04-03 22:22:35 -04:00
syl20bnr
d60228219f core: ensure quelpa is available when installing packages 2016-04-03 02:51:01 -04:00
syl20bnr
cc5afabcae Experimental: defer by 0.1s spaceline
spaceline can sometime take 1s to load when Emacs starts, using
:defer 0.1 seems to smooth the startup a little bit.
2016-04-03 00:38:13 -04:00
syl20bnr
1243d0096c latex: remove commented code 2016-04-03 00:37:50 -04:00
syl20bnr
5edc364695 erc: lazy load a bunch of package by leveraging use-package hooks 2016-04-03 00:37:20 -04:00
syl20bnr
e2901c5a91 syntax-checking: defer loading of flycheck 2016-04-03 00:36:49 -04:00
syl20bnr
eb14645d0f Lazy require space-doc-mode 2016-04-03 00:36:27 -04:00
syl20bnr
e511a1211c python: lazy load py-yapf 2016-04-03 00:36:06 -04:00
syl20bnr
07b3bb051e scala: lazy load sbt-mode 2016-04-03 00:35:35 -04:00
syl20bnr
9e6c2e4775 restclient: lazy load ob-http 2016-04-03 00:35:15 -04:00
syl20bnr
8e897f6b7b core: new layer spacemacs-bootstrap and new package :step
New package :step 'bootstrap', this step happens before 'pre' packages.
A new layer names 'spacemacs-bootstrap' gather all the ':step bootstrap'
packages. This layer is special and is always the first element of
the variable 'configuration-layer--layers' which assure that all
bootstrap packages are configured first.

This new layer leverages the configuration layer system, removes the
clutter of package installations in the function 'spacemacs/init' and
isolate the bootstrap packages in one place.
2016-04-03 00:28:47 -04:00
syl20bnr
63e1db9923 clojure: move command prefix names and remove some duplicated code 2016-04-03 00:27:44 -04:00
syl20bnr
173e2a5421 Move all prefix names from config.el to init functions 2016-04-03 00:12:28 -04:00
syl20bnr
0ca8eb3705 spotify: enable lazy loading and move command prefix names 2016-04-03 00:06:56 -04:00
Richard Wei
8a6cfadffb Corrected key bindings for major mode
Key binding behavior are not consistent with the documentation. Since the bindings are under major mode, they should not have the prefix 'm'.
2016-04-01 00:26:20 -04:00
syl20bnr
f1ddbd1f3e move toggle stickyfunc to SPC T S and SPC T C-S 2016-04-01 00:26:20 -04:00
person808
4010c63276 Change theme search keybinding to SPC T s.
Unify the bindings of spacemacs-helm and spacemacs-ivy. The new mnemonic
for both ivy and helm is `Themes/select`.
2016-04-01 00:26:20 -04:00
Aaron Jensen
ed5bdf9db8 Enable OSX non-native fullscreen on regular builds
The mac port build supports this out of the box, but the version
installed with `brew install emacs --with-cocoa` requires this variable
to be cleared.
2016-04-01 00:26:20 -04:00
Diego Alvarez
9b460f60e4 Add function to insert types and add yank type at point
- `, i y` Add function to yank type at point but just yank type name without full
package

- `, r a` Add function to insert type for declaration,
see `https://github.com/ensime/ensime-emacs/pull/390/files`
2016-04-01 00:26:20 -04:00
syl20bnr
b891e82362 scala: reformat TOC of README.org 2016-04-01 00:26:20 -04:00
Channing Walton
7466fdc678 optionally enable ensime
a new variable, scala-auto-start-ensime, determines if ensime starts
when a scala file is loaded.

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space

make scala-auto-start-ensime default to t

The current behaviour is to autostart so this will preserve it.

Adding documentation for scala-auto-start-ensime

removed a space
2016-04-01 00:26:19 -04:00
syl20bnr
6770969b6f core: add variables for core-spacemacs-buffer
- spacemacs-buffer-version-info
- spacemacs-buffer-logo-title
2016-04-01 00:26:19 -04:00
syl20bnr
69a9d5bf6b twitter: documentation new key bindings 2016-04-01 00:26:19 -04:00
Muneeb Shaikh
fb402b4120 twitter: use new function to define leader keys 2016-04-01 00:26:19 -04:00
Muneeb Shaikh
f56ac8b2d5 twitter: keybinding to toggle images 2016-04-01 00:26:19 -04:00
d12frosted
98b329e741 move system-is-* function to core 2016-03-31 00:23:59 -04:00
syl20bnr
3b0c1fd93d Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00
JAremko
8c3d05ee47 Add org-mode link-type "https" to open local copies
The https link-type opens the local copies of the Spacemacs documentation files with
the spacemacs/view-org-file function. It supports GitHub style heading links

For example, the link:

https://github.com/syl20bnr/spacemacs/blob/develop/layers/org/README.org#links

Will be handled similary to as if it was:

file:~/.emacs.d/layers/org/README.org::*links

Also the `space-doc' mode will be applied.

Refactored GH style anchor search.
2016-03-30 22:38:18 -04:00
syl20bnr
30f971d89c reformat some code to respect 80chars per line 2016-03-30 22:35:07 -04:00
JAremko
014bbfd921 Add Spacemacs docs minor mode to hide meta tags.
`space-doc-mode` - Buffer local minor mode for Spacemacs documentation files. The mode hides org meta tags.
Enabled when viewing documentation via `SPC` `h` `SPC`
2016-03-30 22:31:38 -04:00
Caleb Jones
d983bf7ec7 Improve Leiningen installation instructions in Clojure layer
The previous installation instructions suggested that you install lein
via your OS package manager, but since the minimum required version to
run the plugins is 2.5.2 and some OS package managers are still
packaging versions in 1.x, linking to the official install instructions
is better.

Fixes #5612
2016-03-30 18:52:31 -04:00
Paul Schorfheide
0f76d52166 Add hoogle to list of packages for haskell layer 2016-03-30 18:49:18 -04:00
Paul Schorfheide
ac71e1064c Update documentation for shell layer to support left or right position 2016-03-30 18:46:57 -04:00
syl20bnr
8085a87627 Update Layers.org 2016-03-30 17:51:16 -04:00
syl20bnr
6018ce6370 faust: fix image link in README.org 2016-03-30 17:51:16 -04:00
syl20bnr
c4d9ca8fba spacemacs layouts and workspaces tweaks
- add `l` to workspace transient state to go back to layout transient
  state
- remove erroneous `l` and `h` keys on layouts transient state
- unique documentation toggle for layouts and workspaces
- reformat and sort transient states documentation
2016-03-30 14:29:55 -04:00
syl20bnr
bf9f281269 ruby: use :toggle and fix location or ruby-mode 2016-03-27 15:52:43 -04:00
syl20bnr
6e0a76f8ca go: set location property of go-oracle to site
instead of local
it had no bad side effect but `site` is the correct value for a package
that comes from somewhere else on the system.
2016-03-27 12:22:14 -04:00
syl20bnr
a9c9e9a7ae Add lazy install support for windows-scripts 2016-03-26 03:38:46 -04:00
syl20bnr
5495c8dff2 python: correctly mark python package as built-in 2016-03-26 03:24:35 -04:00
syl20bnr
dd14afaf26 workspaces: new workspace clones the current one
Fixes #5566
2016-03-25 10:37:03 -04:00
syl20bnr
48fa6107e8 Add lazy installation support for csv files 2016-03-25 01:29:57 -04:00
syl20bnr
63df395975 Fix eyebrowse error when syncing layers
Fixes #5573
2016-03-25 01:12:30 -04:00
syl20bnr
a33b0d02c7 Revert unwanted change in previous commit 2016-03-25 01:11:32 -04:00
syl20bnr
fa8271d689 Add entries in auto-layer.el 2016-03-25 01:03:47 -04:00
syl20bnr
16afe67907 core: enhance lazy installation of layer
Now Spacemacs will ask for layer installation when opening a file with
a known file type.
The auto-mode-alist entries are added by the file auto-layer.el in
the layers directory.

Easy insert of forms for lazy initialization can be done with the
interactive function configuration-layer//insert-lazy-install-form.

Change default value of dotspacemacs-enable-lazy-installation to t.
2016-03-25 01:03:37 -04:00
Nathaniel Waisbrot
0a61440101 Add a layer for nginx config files 2016-03-24 22:02:40 -04:00
syl20bnr
130cd48d03 graphviz: update key bindings and smartparens support
Change the key bindings:
- Remove SPC m p
- Better support for double leader keys for preview (,, and M-m M-m)
- Graph indentation on SPC m =

Add support for smartparens when it is used for {} pair.

Update the doc.
2016-03-24 21:54:54 -04:00
luxbock
87db0174a2 Adds Graphviz layer
- Uses a forked version of graphviz-dot-mode.el with a local install.
  Upstream PR: ppareit/graphviz-dot-mode#18
2016-03-24 19:46:47 -04:00
syl20bnr
9368cba427 Update windows transient state docstring 2016-03-24 00:49:46 -04:00
syl20bnr
92cc50bbaa twitter: improve layer
- Refactor configuration
- Change logo
- Better default key bindings
- Add a transient state
2016-03-24 00:49:37 -04:00
syl20bnr
9d0558992c layers directory: create new categories
+chat
+checkers
+emacs
+intl
+os
+pair-programming
+tags
+theme
+web-services
2016-03-23 21:39:43 -04:00
Diego Berrocal
04dc6a79c8 Add Twitter layer 2016-03-23 21:05:26 -04:00
syl20bnr
0248e384a2 restclient: install both ob-http and restclient
The variable `restclient-use-org` now just set the auto mode alist it
does not select which package to install.
2016-03-23 17:11:55 -04:00
syl20bnr
8266b5f98d plantuml: update config for org babel and delete packages-config.el 2016-03-23 10:29:24 -04:00
syl20bnr
13fe9f3cc9 resclient: add ob-http / org: add support for org-babel languages
Add layer variables `restclient-use-org` to use `ob-http` instead of
`resctlient`

Add support for easy addition of org-babel languages by appending to
`org-babel-load-languages` alist in org post-config use-package hook.
2016-03-23 10:28:27 -04:00
syl20bnr
82efa16dab Fix long-lines toggle and rename it
Fix global version of the toggle
Rename it to highlight-long-lines
2016-03-22 09:38:37 -04:00
syl20bnr
828ae8113d Replace enforce-column layer by a toggle on SPC t 8 2016-03-21 21:18:36 -04:00
Daniel Luna
70193ec471 Adding column-enforce-mode layer 2016-03-21 20:42:46 -04:00
syl20bnr
8e6fd86577 faust: refactor layer
Add a funcs.el.
Fix `use-package` usage.
Modify key bindings to meet conventions.
Prefix function with `spacemacs/`
2016-03-21 20:33:35 -04:00
syl20bnr
f48b251968 Delete SPC j b and move SPC j u to SPC j b
By convention, jump back should be on `b`, not `u`
Since `SPC j u` is free, move as well `SPC j U` to `SPC j u`.

`SPC j b` for bookmark jump is already available under `SPC f b`
2016-03-21 20:02:56 -04:00
Bart Brouns
3a9e8c1723 add faust-layer, remove faust from extra-langs
My first spacemacs layer, total elisp newb.
Does what it says in the README, with one bug:

I have auto-completion-enable-snippets-in-popup t in my .spacemacs
In faust files, only yas-keys that have a similar word in an open buffer
show up in the company menu.

Example: with no open buffers ne doesn't show a company menu,
if a file has the word nent in it, I get a menu with ne -> nentry (the snippet) and nent.

having ne$AnyTwoCharacters in the file also works, but just ne or nen doesn't.
2016-03-21 19:39:49 -04:00
syl20bnr
944960daf8 Move eyebrowse to spacemacs-layouts layer and add documentation
Add toggle capability with ? for workspaces transient state
Remove the variable eyebrowse-display-help
2016-03-20 21:48:06 -04:00
syl20bnr
b697571021 Revert default value of hybrid-mode-default-state to normal 2016-03-17 17:43:10 -04:00
Eivind Fonn
6d5f55f09e Fix evil-inner-buffer text object 2016-03-17 09:15:06 +01:00
syl20bnr
50ff429f81 Set hybrid-mode-default-state default value to hybrid 2016-03-16 23:41:45 -04:00
syl20bnr
ca5b8be90b New hybrid mode variable hybrid-mode-enable-evilified-state
When non nil then evilified buffer use evilified state, otherwise
they use the emacs state (may put the hybrid state if users get
confused).
2016-03-16 23:34:20 -04:00
syl20bnr
2d61e5304e core: add support for :variables keyword in dotspacemacs-editing-style
Add variable `hybrid-mode-enable-hjkl-bindings` to enable hjkl
navigation in hybrid mode.

example:

dotspacemacs-editing-style '(hybrid :variables
                                     hybrid-mode-enable-hjkl-bindings t
                                     hybrid-mode-default-state 'normal)
2016-03-16 22:43:50 -04:00
syl20bnr
c2296f71f8 Put back holy and hybrid in spacemacs base layer
They are not optional
Also fixes some bugs like toggling hybrid mode from holy mode and
toggling off the hybrid mode.
2016-03-16 21:59:44 -04:00
syl20bnr
cfdfcfab40 Revert hybrid mode to use an evil hybrid state
To follow with the refactor of the holy-mode which uses the
emacs state of evil mode, the hybrid mode now uses the evil hybrid
state.

We have now a clean symmetry between all the editing styles where each
of them has an associated state:
- vim = insert state
- emacs = emacs state
- hybrid = hybrid state

This gives consistent properties to all editing styles and most
importantly allows to have true isolation of key binding maps. It has
the huge benefit to be easier to explain since now everything can
leverage the evil API regarding key bindings.

Note: Regular Emacs key binding functions can still be used for emacs
and hybrid states so there is no regression with the previous
implementation, we just gain better isolation at the cost of a few
duplicated lines of code which will be easy to update as needed if
evil upstream code changes (this code has been commented with a link
to the upstream code).
2016-03-16 21:30:03 -04:00
syl20bnr
82fdd9a511 Use evil in holy-mode
Motivation

While disabling Evil in holy-mode makes its implementation shorter and
sounds elegant on the paper, in practice it puts a big burden on the
configuration parts which need to know if Evil is enable or not. This is
a bad separation of concerns and the bunch of fixes that we were forced
to do in the past weeks shows this issue. Those fixes were about
removing the knowledge of the activation of Evil by implementing new
dispatching functions to be used by layers, this is cumbersome and makes
Spacemacs layer configuration more subtle which is not good. There was
additional bad consequences of the removal of Evil state like the
impossibility to use Evil lisp state or iedit states, or we would have
been forced to implement a temporary activation of Evil which is
awkward.

Instead I reintroduce Evil as the central piece of Spacemacs design thus
Evil is now re-enabled in holy-mode. It provides the abstraction we need
to isolate editing styles and be able to grow the Spacemacs
configuration coverage sanely. Layers don't need to check whether the
holy mode is active or not and they don't need to know if Evil is
available (it is always available). We also don't need to write
additional dispatching functions, this is the job of Evil, and I think
it provides everything for this. Ideally configuration layer should be
implemented with only Evil in mind and the holy-mode (and hybrid-mode)
should magically make it work for Emacs style users, for instance we can
freely use `evil-insert-state` anywhere in the code without any guard.

Evil is now even more part of Spacemacs, we can really say that
Spacemacs is Emacs+Evil which is now an indivisible pair. Spacemacs
needed this stable API to continue on the right track.

While these changes should be rather transparent to the user, I'm sorry
for this experimental period, I failed to see all the implications of
such a change, I was just excited about the possibility to make Evil
optional. The reality is that Spacemacs has to embrace it and keep its
strong position on being Emacs+Evil at the core.

Implementation

- insert, motion and normal states are forced to emacs state using an
advice on `evil-insert-state`, `evil-motion-state` and
`evil-normal-state` respectively. These functions can be used freely in
the layer configuration.
- A new general hook `spacemacs-editing-style-hook` allow to hook any
code that need to be configured based on the editing style. Functions
hooked to this hook takes the current style as parameter, this
basically generalize the hook used to setup hjkl navigation bindings.
- ESC has been removed from the emacs state map.
- Revert unneeded changes
  - Revert "evil: enter insert-state only from normal-state"
    commit bdd702dfbe.
  - Revert "avoid being evil in deft with emacs editing style"
    commit f3a16f49ed.

Additional changes

All editing style packages have been moved to a layer called
`spacemacs-editing-styles`

Notes

I did not have time to attack hybrid mode, I should be able to do it
later.
2016-03-13 21:16:55 -04:00
syl20bnr
4d46a5e423 layouts: prefer symbol-value instead of eval
See first paragraph of
https://www.gnu.org/software/emacs/manual/html_node/elisp/Eval.html
2016-03-12 13:58:46 -05:00
syl20bnr
08a8f13b4d Update layers.org 2016-03-12 13:51:25 -05:00
syl20bnr
4e7a814676 org: set org-publish-timestamp-directory to .cache 2016-03-12 13:51:25 -05:00
Eivind Fonn
88f7467f6f Fix persp-mode config for erc and rcirc 2016-03-12 17:59:28 +01:00
Eivind Fonn
3412429360 Custom layout: eval name and binding 2016-03-12 17:59:28 +01:00
Eivind Fonn
1b503000c8 Move layouts functions to packages-funcs.el 2016-03-12 17:59:28 +01:00
Diego Berrocal
a86a0ee1ca Add IRC buffers to respective perspectives
This attempts to fix https://github.com/syl20bnr/spacemacs/issues/4781
2016-03-12 17:59:28 +01:00
Eivind Fonn
0585c4047b Fix indentation 2016-03-12 17:55:29 +01:00
M. Tong
d2d82e2312 Fix error when using `spacemacs/counsel-search' wihout initial input. 2016-03-12 17:54:43 +01:00
Muneeb Shaikh
f903460994 source-control: git-timemachine goto nth revision
Allows you to goto arbitrary revision by inputting rev number. e.g. To
goto 1st revision of the file, enter 1.
2016-03-12 17:51:50 +01:00
Eivind Fonn
b045d451fd Fix long lines in evil-snipe readme 2016-03-12 17:51:13 +01:00
denin
252cb1c28b update evil-snipe readme about symbol groups 2016-03-12 17:49:48 +01:00
Eivind Fonn
ee6e84de10 Enhance compilation keybindings
- Make sure to defer after load of compile
- Use `gr' instead of `g' for recompilation
2016-03-12 17:49:20 +01:00
denin
a4ce07dd12 restore evil-binding of 'g' key in a compilation buffer
By default, recompile is bound to 'g' in compilation buffer.
It was rebound to 'r' key.
2016-03-12 17:47:18 +01:00
Fabien Dubosson
68e88df3c8 Correct SPC q D prompt and simplify the function 2016-03-12 17:46:31 +01:00
Eivind Fonn
47789270d9 Don't nest `when' 2016-03-12 17:45:41 +01:00
Muneeb Shaikh
6c17e3bc3a fix #5448: guard nil buffer size 2016-03-11 17:00:13 +05:30
syl20bnr
d52eb414bb Remove dotspacemacs-use-ido
Users should now bind ido commands themselves.
2016-03-10 23:13:19 -05:00
Ista Zahn
2d353a329e Default to using helm for files and buffers. 2016-03-10 23:13:19 -05:00
ralesi
3f376a431b Prompt to open file literally when opening large files. 2016-03-10 23:13:19 -05:00
syl20bnr
9e47cf1f97 Fix C-c C-e key binding in helm-find-files 2016-03-10 23:13:19 -05:00
Aaron Jensen
da66ac312f spacemacs-helm: Add C-c C-e to switch to wdired
Fixes #3724
2016-03-10 23:13:19 -05:00
syl20bnr
6b5ed8245b c-c++: fix c-c++/post-init-semantic 2016-03-10 23:13:19 -05:00
Eivind Fonn
411be27ed1 Remove enable-semantic-mode function
- No reason to require semantic manually
- Don't set submodes in a hook function (hard to change for user)
2016-03-10 23:13:19 -05:00
Eivind Fonn
0ca02549dc Move srefactor toggle to owning layer 2016-03-10 23:13:19 -05:00
sooheon
ec3bbd4176 Use evil-define-minor-mode-key over define-key
This keeps the keybinding specific to the visual-line minor mode, and
fixes #5418. Reverting the bindings on the :off toggle is no longer
necessary as well, turning off visual-line-mode will handle it.
2016-03-10 23:12:35 -05:00
Tu Do
ceafd688f3 srefactor requires Emas 24.4 or above, not older 2016-03-10 14:22:06 +01:00
Fabien Dubosson
b9cd9c1cd8 Remove rainbow-delimiters-mode from mode-specific hooks
`spacemacs` now handles `rainbow-delimiters-mode` by adding it to the
`prog-mode-hook`, if wanted by the user. Some layers are adding it on
their own mode-hook, having for effect that `rainbow-delimiters-mode` is
called twice, which disable it.

This commit remove these layer-specific definitions of
`rainbow-delimiters` as it is now handled by the `spacemacs`
distribution. It also takes care of running `prog-mode-hook` in modes
that are not derived from it.

Fixes #3902
2016-03-09 20:23:29 -05:00
Jeremy Bi
343b7ac1d0 projectile: autoload projectile-project-p
Fix #5127
2016-03-09 20:14:21 -05:00
sooheon
fa52c93078 Keep escape binding in evil-visual-state default
While seemingly equivalent, this binding change can cause brittle
behavior in at least one case (used in conjunction with
multiple-cursors). Such a highly niche customization would probably be
better in a personal config, unless a case can be made that all
spacemacs users would benefit.
2016-03-09 20:12:48 -05:00
Muneeb Shaikh
dfceb3deb9 spacemacs-ivy: escape special chars in counsel input 2016-03-09 20:12:01 -05:00
syl20bnr
b1a6d8977a react: prefer named function over lambda for hooks 2016-03-09 20:10:58 -05:00
huaoguo
70d4c2c784 Fix bug: helm-imenu doesn't work in react-mode
In react-mode, when invoke helm-imenu, the list is empty. Because this
feature is only enabled in js2-mode, not js2-minor-mode.

So we should enable it by ourself.

link: https://github.com/mooz/js2-mode/blob/master/js2-mode.el#L11557
2016-03-09 20:09:07 -05:00
Muneeb Shaikh
6fee0a3666 change insert map only for vim editing style
For now, prevent cluttering hybrid insert state map until there's
cleaner solution.
2016-03-09 20:01:37 -05:00
syl20bnr
4d6053695f Reapply lost commit 55ef063
Add smartparens to comint-mode
2016-03-09 19:59:17 -05:00
syl20bnr
6efd7c1362 Reapply lost commit 4b00495
Allow <count>G in doc-view to go to page
2016-03-09 19:57:12 -05:00
bmag
3a3d8f34ca Use window-numbering-assign-func for neotree number
Using window-numbering-assign is simpler and more reliable than using
window-numbering-before-hook and neo-after-create-hook.

Duplicates older commit 2ff22934e7 which
somehow didn't survive the splitting of spacemacs layer into smaller
spacemacs-* layers.
2016-03-08 16:41:56 +02:00
NJBS
9026652dcf Fix scrolling transient state keybindings typo 2016-03-06 19:50:49 -05:00
Muneeb Shaikh
c955014102 spacemacs-ivy: hide lighter counsel 2016-03-06 19:50:17 -05:00
Eivind Fonn
2e99aa5bb6 Fix auto-completion toggle without default 2016-03-06 17:49:59 -05:00
syl20bnr
01f9879d7f octave: explicitly list it as a built-in package 2016-03-06 17:48:51 -05:00
syl20bnr
1bc773cc5f elixir: fix lazy installation configuration 2016-03-05 23:25:00 -05:00
Eivind Fonn
a8bd6dcb23 Disable global-hl-line-mode in shell-like buffers 2016-03-05 21:02:15 +01:00
justbur
5da4ce9d6c counsel: Use counsel-mode
Minor mode that remaps all built-in Emacs commands that have a counsel
replacement.
2016-03-05 21:01:46 +01:00
Adam Sokolnicki
c83a553e5f Fix chruby in the ruby layer
This commit replaces the code used for finding out the ruby version to
use with `chruby-use-corresponding`.
2016-03-05 20:54:57 +01:00
Eivind Fonn
86286574a3 Move rake popwin config to post-init-popwin 2016-03-05 20:54:17 +01:00
Muneeb Shaikh
713e85bc42 ruby: add popwin config to *rake-compilation* 2016-03-05 20:52:18 +01:00
Allen Li
36bb3328bf Bind helm-ag--update-save-results
This updates the helm-ag results buffer, very useful.
2016-03-05 20:51:54 +01:00
syl20bnr
e2dbe1938c layouts and workspace: use new transient state keywords
Also cleanup the code and unify key bindings to make them consistent
between the two transient states.
2016-03-04 19:05:28 -05:00
Eivind Fonn
5360fb31f8 Fix broken ensime refactor bindings 2016-03-04 16:06:22 -05:00
Malchevskiy Misha
d91d907d5d Fix cider-pop-back function name
Alias `cider-jump-back` was deprecated and then removed from CIDER here: 705133f2bd
2016-03-04 16:06:08 -05:00
Robert O'Connor
7625bcdae3 Fix minor markup hiccup in pdf-tools README 2016-03-04 12:18:56 -05:00
syl20bnr
39a3c1983c pdf-tools: README tweak and replacement of transient state key
- Replace `M-SPC` and `S-M-SPC` by the more conventional `SPC m .`
- Reorganize the code in packages.el
- Add image in README and list bindings with explicit `SPC m` prefix
2016-03-04 00:51:34 -05:00
Andre0991
919865a3b7 Add pdf-tools layer 2016-03-03 23:22:15 -05:00
syl20bnr
534cb7a7cd eyebrowse: respect 80 chars per line 2016-03-03 22:29:13 -05:00
syl20bnr
bc9123e265 eyebrowse: prefix workspace number in transient state 2016-03-03 22:28:50 -05:00
syl20bnr
09edfe3e37 Add C-0...C-9 bindings to layouts and workspaces
These key bindings does not exit the transient state
2016-03-03 22:21:05 -05:00
Muneeb Shaikh
28a1b50cdb eyebrowse: highlight current workspace in transient state 2016-03-03 20:55:40 +01:00
Muneeb Shaikh
cc544b1654 layouts: highlight current layout in transient state 2016-03-03 20:55:37 +01:00
Alejandro Catalina Feliú
d3833db77b clojure: add clojure-snippets to clojure layer
This will add some nice snippets right out of the box.
2016-03-03 20:54:06 +01:00
justbur
d28537ec86 evilified: Remove stray bind-map declaration
It looks like it was not removed when the other one in the file was
added.
2016-03-03 20:53:42 +01:00
Allen Li
de0d7a7881 Simplify completing-read selection 2016-03-03 20:53:41 +01:00
Allen Li
974c92e758 Make pylookup use std completing-read function 2016-03-03 20:51:18 +01:00
Fredrik Bergroth
a1167b8821 shell-scripts: Enable flycheck in sh-mode 2016-03-03 20:43:32 +01:00
Eivind Fonn
65702c9285 Fix smart doc and goto rewrite 2016-03-03 20:36:34 +01:00
justbur
ca72561bc7 evil: Rewrite smart-doc-lookup and smart-goto-binding
Prefer checking explicitly for the key binding rather that using
condition-case and assuming all errors are related to a missing binding.
2016-03-03 20:30:32 +01:00
justbur
39e06feba9 Use unless-debug version of condition-case
It's not possible to get full backtraces in these instances when an
error is signaled, and I think we should generate full backtraces when
debug-on-error is enabled as a general rule.

I had to make this change at one place to track down the root of problem
2 in #5200.
2016-03-03 20:30:30 +01:00
Eivind Fonn
41e8a28903 Fix smooth-scroll toggling at startup 2016-03-03 11:44:00 +01:00
syl20bnr
0ca738989e Update, simplify and add smooth scrolling toggle on SPC t v 2016-03-02 09:13:09 -05:00
Fabien Dubosson
b7f4d90ce2 [bepo] Remap org-agenda 2016-03-02 12:27:12 +01:00
syl20bnr
85fa27166c Revert "Fix startup error when dotspacemacs-smooth-scrolling is nil"
This reverts commit decd5235a9.

The smooth-scrolling package is not required when
dotspacemacs-smooth-scrolling is nil so it is not possible to use a
function of this package to disable it.
2016-03-01 15:06:04 -05:00
Tommi Komulainen
faed1b7dc0 react: make evil-matchit jump between html/jsx tags as well
Fixes: #5265
2016-03-01 18:59:18 +01:00
wliao
7aad1b45ce maps <escape> instead of ESC to quit help-mode
prevents masking M- keys in GUI.
2016-03-01 18:58:18 +01:00
MadAnd
decd5235a9 Fix startup error when dotspacemacs-smooth-scrolling is nil
error: ad-disable-advice: `previous-line' is not advised
2016-03-01 18:57:43 +01:00
km
5ee38deeff Fix use of deprecated function avy--with-avy-keys 2016-03-01 18:55:26 +01:00
Eivind Fonn
733434718d Fixup rake config 2016-03-01 18:54:56 +01:00
Adam Sokolnicki
c2ec8e57c9 Add rake package to the ruby layer 2016-03-01 18:52:33 +01:00
Johan K. Jensen
be2c471397 Fix inline code blocks
Add zero-width space because emphasis blocks can't start/end with
a comma, an apostrophe or a quote.
2016-03-01 18:51:13 +01:00
David King
6b7aee200b Update Scheme docs to curl over https
Felt more comfortable running this over https. Not sure what the risks
are of piping files into a root privilege tar process, but the server
supports it so may as well use it.
2016-03-01 18:50:32 +01:00
Christian E. Hopps
2b99909491 also exit layout selection on number key
Match workspace exit behavior with layouts
2016-03-01 18:49:21 +01:00
Tin Tvrtković
1eabbb453a Fix Java layer command documentation.
The "Open project management buffer" shortcut is actually SPC m p p, as per 
https://github.com/syl20bnr/spacemacs/blob/develop/layers/%2Blang/java/packages.el#L121
not SPC m p s which does nothing.
2016-03-01 18:48:32 +01:00
d12frosted
bdd5d51dc6 fix osx-use-options-as-meta on emacs 25 2016-03-01 18:48:14 +01:00
d12frosted
f3a16f49ed avoid being evil in deft with emacs editing style
follow #5111
2016-03-01 18:47:37 +01:00
Eugene Apollonsky
e5e069bbf0 Rename: ensime-refactor-inline-local -> ensime-refactor-diff-inline-local 2016-03-01 18:46:54 +01:00
Kechao CAI
f5924d1acb Bind TeX-command-run-all to ~SPC m a~ 2016-02-27 15:00:10 +01:00
Kechao CAI
c3fae7dd05 Latex layer: Add shortcuts for fill and comment 2016-02-27 15:00:08 +01:00
NJBS
35d9e387de Fix ranger layer typos
Fix some trailing whitespace and key binding typos
2016-02-27 14:58:49 +01:00
NJBS
a1aca549cb Fix org-agenda RET behavior
16cb4f2 changed the default binding for RET to org-agenda-goto, this
changes it back to the default behavior of org-agenda-switch-to
making it consistent with the transient state and org documentation.
2016-02-27 14:58:27 +01:00
Diego Berrocal
71d48e0952 Exit layout transient state on select custom layout
This was asked for in the gitter chat. I thought at first it would be
great for when people wanted to open many perspectives at the same time,
but now I don't think the same. It'd be very hard to modify the macro
for adding custom layouts to make this argument optional, so I leave it
at @syl20bnr discretion.
2016-02-27 14:58:15 +01:00
Eivind Fonn
5b345a6f07 Add dynamic list of workspaces in transient state 2016-02-27 14:57:55 +01:00
Beau Dacious
a54c637480 create align-repeat-backslash command 2016-02-27 14:57:06 +01:00
Eivind Fonn
4ed7ebe49d Update previous comment 2016-02-27 14:56:42 +01:00
Andrew Cates
b6a27e931b fix typo for js2-imenu extras mode 2016-02-27 14:56:21 +01:00
Eivind Fonn
e061b13eb5 Add binding to spacemacs/goto-buffer-workspace 2016-02-25 20:41:37 +01:00
bmag
ecaeb8db3b Eyebrowse: goto buffer in workspace
spacemacs/find-workspace, spacemacs/display-in-workspace and
spacemacs/goto-buffer-workspace allow us to find and display a buffer's
workspace.
2016-02-25 20:36:08 +01:00
justbur
5402261456 Improve toggle-maximize-centered-buffer
1. The register name should be a character not a symbol.

2. Combine toggle-maximize-centered-buffer and bzg-big-fringe-mode to
   make new minor mode that combines the two effects.

3. Fix problem where the mode could only be enabled if there was more
   than one window, which makes no sense.

4. Use window-configuration-to-register function
2016-02-25 20:34:40 +01:00
Boris
a18998ccfd update lua readme
Add a note about luacheck
2016-02-25 20:32:12 +01:00