Commit graph

1383 commits

Author SHA1 Message Date
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