Commit graph

603 commits

Author SHA1 Message Date
justbur
042f1635a5 evilified-state: Add C-z to emacs-state 2015-09-23 23:31:05 -04:00
syl20bnr
5402dae81b core: add new :location value -> built-in
Can be used to configure built-in packages
2015-09-23 22:01:47 -04:00
syl20bnr
f294ba3887 core: remove 'private value for :location
While doing the tests I encountered an edge case where a package owned
by the dotfile could be passed either a 'private or 'local location
which is ambiguous (moreover where do we put packages with 'local
location ?).

We remove the ambiguity by removing the 'private value and push the
path ~/.emacs.d/private/local/pkg/ when the owner of a local
package PKG is the dotfile.

When the owner of a local package is a layer then the load path is
in the "local" subdirectory of the layer directory. It adds no value
to use the old 'private location in this case.
2015-09-20 00:49:18 -04:00
Eivind Fonn
92c792c18e Allow local packages without owner 2015-09-19 18:44:19 -04:00
syl20bnr
ff2ff60830 core: fix configuration-layer/create-layer
Missing name parameter for configuration-layer//copy-template
2015-09-19 01:37:45 -04:00
syl20bnr
c111ff24af core: make private location work with dotfile owner 2015-09-19 01:36:48 -04:00
Eivind Fonn
c169b78eed Add private package location 2015-09-19 01:11:11 -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
syl20bnr
fe4d6a7d79 core: fix dotspacemacs/install and tweak choice descriptions 2015-09-19 01:05:17 -04:00
Robert O'Connor
2a274767d3 Switch the default distribution to spacemacs
This will cause a lot of confusion for newcomers.
2015-09-19 01:02:51 -04:00
syl20bnr
220b15a734 Revert "core-keys: Rewrite emacs-leader handling"
This reverts commit dad786bc8d.
2015-09-17 23:41:48 -04:00
syl20bnr
3f18a09560 core: install and uninstall package from package-alist
Consult the archive only when the user actually update the packages.
Fixes #2956
2015-09-17 23:06:43 -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
fa32b9be5c More flexible additional packages
When the package already exists, use configuration-layer/make-package
to copy information into the existing package object.

This allows overwriting location, step and excluded, but NOT owner,
pre-layers or post-layers.
2015-09-17 22:32:54 -04:00
person808
7b43896910 Fix showing snippets in company popup.
Fixes #2387 #2051
2015-09-16 22:37:08 -04:00
Robert O'Connor
b4e6e52d0e Remove Tromey.
Fixes #3049
2015-09-16 21:41:37 -04:00
justbur
02fbfbe74f core-conf-layer: Use NOSAVE for pack. update (v25)
Should fix #2849. The new package-delete tries to save changes to the
selected package variable during the update process and this can cause
conflicts with how spacemacs wants to update packages (and even lead to
the .spacemacs file being deleted. This is also unnecessary, because we
are only deleting the packages temporarily to be installed at the next
boot, so there should be no need to update this variable.

This change only affects Emacs 25 users.
2015-09-16 21:41:08 -04:00
Bar Magal
b4c10a4749 Fix update error when a distant package is unavailable
Instead of error, show a warning that the unavailable package(s) were
skipped. This should handle situations were a package is temporarily
unavailable from MELPA (or other sources).
2015-09-16 21:38:40 -04:00
syl20bnr
a4fd6407b2 core: tweak prompt for dotfile recovery 2015-09-16 21:37:42 -04:00
Christopher McCloud
44f1ee55d7 add recovery from malformed .dotfile to core
If spacemacs encounters errors on the initial load of the user
.spacemacs file, now defaults to loading the default template.
Additionally, temporarily suspends pruning of orphan packages to make it
easier for users to recover after they fix their dotfile.

Previously, errors would cause the spacemacs boot process to halt,
leaving users with an almost stock emacs configuration. Now, users will
have a default spacemacs available to them to fix the error.

adds layer preservation.

add prompt for preferred editing style on recovery

Remove advice after first run.

add dotspacemacs/safe-load as function.

moves style prompt into dotspacemacs/init advice

add hybrid as valid editing style.

move conditional into dotspacemacs/load-file.
2015-09-16 21:28:12 -04:00
Markus Bertheau
1054e6e7ce Add which-key prefixes for major-mode leaders
Without this, prefixes configured for `SPC m` bindings don't show up for
the major mode leaders.
2015-09-16 21:24:28 -04: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
Eivind Fonn
018c5c0908 Fix bug with define-prefix-command (2) 2015-09-16 16:40:39 +02:00
Eivind Fonn
ac9c96fb1a Fix bug with define-prefix-command 2015-09-16 16:39:01 +02:00
Eivind Fonn
a764eb4eb9 Fix version injection in home buffer
Don't inject version if banner is nil
2015-09-13 22:54:16 -04:00
syl20bnr
8aa4eadc74 core: move prefix funcs to new file core-keybindings.el 2015-09-13 22:53:15 -04:00
Eivind Fonn
de64218dcd Add distribution to describe-system 2015-09-13 22:24:02 -04:00
justbur
098e43c8ff Temporary fix for #2995
This sets the default distribution back to spacemacs. This is for people
who for whatever reason don't set `dotspacemacs-distribution` in their
dotfile.
2015-09-12 13:52:52 +02:00
syl20bnr
cd50d9c069 core: defer distro insertion in home buffer 2015-09-11 23:14:16 -04:00
syl20bnr
3b7d66d118 sync-configuration-layers: add option to skip tests 2015-09-11 23:04:55 -04:00
syl20bnr
77161bd591 core: restore default mode line in home buffer 2015-09-11 23:04:01 -04:00
syl20bnr
6e0ca23db8 core: set default distribution in template to spacemacs-core
Also remove version-control layer from template and add emacs-lisp
to initial value for dotspacemacs-configuration-layers
2015-09-11 23:00:33 -04:00
justbur
f59cb5b215 core: Add choice of distro on install
Ref #2926
2015-09-11 21:27:36 -04:00
justbur
6eab954afe Use + instead of ! for layer categories
Helm seems to treat "!" specially in pattern matching, so having a ! in
the pattern string when traversing directories is problematic. This
change fixes #2737, because as far as I can tell "+" has no special
meaning in a helm pattern.

Of course, we can choose a different character, but I'm fond of "+" as
representing "more layers here".
2015-09-11 00:13:51 -04:00
syl20bnr
91bb21788f core: simplify and fix visual state in evilified buffers
Fix cherry-pick of selected commit in visual state
2015-09-09 23:45:05 -04:00
syl20bnr
c17db0dcb0 core: minor update of warning message when a layer does not exist 2015-09-09 23:45:04 -04:00
justbur
cc9287863b core: Fix #2952 by not loading missing layer
This issues a warning if the layer was declared in the dotfile but not
found through the layer discovery mechanism.
2015-09-09 23:45:04 -04:00
syl20bnr
b53b5db967 spacemacs-core: remove SPC f e s and SPC f e c
Now the user should use `SPC f e h` helm-spacemacs.
This is due to the fact that spacemacs layer is now a regular layer
stored in the "layers" directory.
2015-09-08 01:01:46 -04:00
syl20bnr
6b33031dc5 core: dotspacemacs-distribution, spacemacs-core layer and rename contrib
- Rename contrib directory to layers
- Add new variable dotspacemacs-distribution
- Move spacemacs layer to layers/!distribution
- New layer spacemacs-core in layers/!distribution
- User can now set dotspacemacs-distribution to spacemacs or
  spacemacs-core (default spacemacs)

spacemacs-core is very lightweight layer sufficient to build upon
spacemacs.
2015-09-07 23:44:43 -04:00
syl20bnr
37609161c8 tests: Add configuration layer functional tests 2015-09-07 19:42:22 -04:00
d12frosted
c43a8e958e respect setting startup banner to nil #2911 2015-09-07 14:26:33 -04:00
syl20bnr
d44b9429dc core: add default value to docstrings in dotfile template 2015-09-07 01:06:29 -04:00
ralesi
2ccb4ab7df Allow specification of helm location. 2015-09-07 01:06:29 -04:00
syl20bnr
d11fb1c4a0 core: add variable dotspacemacs-helm-no-header
Hide the helm header whenever there is only one source.
Also correctly set back the default height for headers.
2015-09-07 01:06:29 -04:00
d12frosted
8440a380f2 fix setting custom banner path 2015-09-07 01:06:27 -04:00
syl20bnr
555927c7ec core: use package-alist to resolve orphans
instead of the downloaded package archive. It fixes a case where
a package maintainer removes a dependency D of a package P and spacemacs
detects it which has the effect of deleting the obsolete package D, but
package-alist is not yet updated, because package-alist is updated only
when P is reinstalled (or upgraded).
2015-09-07 01:06:27 -04:00
justbur
bd8369918b Clean-up which-key dotfile options 2015-09-07 01:06:27 -04:00
Tim Jäger
91057d5986 Switched dotfile options to which-key
Renamed option
Added buffer position option
Updated template
Updated documentation
2015-09-07 01:06:27 -04:00
d12frosted
82c905559a fix return binding in terminal for spacemacs-mode 2015-09-04 09:38:15 +02:00
syl20bnr
8adc82d1ae core: actually read :disabled-for layer property
Also it is not need to pass a list, example:

```
(setq dotspacemacs-configuration-layers
   '((auto-completion :disabled-for org git)))
```

Will disable auto-completion for org and git layers.
2015-09-03 13:17:02 -04:00