Commit graph

1274 commits

Author SHA1 Message Date
Eivind Fonn db4adde089 Fix: Check owner of dependent packages 2017-07-02 09:41:38 -04:00
Eivind Fonn 69b5f83d5a Fix: Check dependencies for owned packages too
Fixes #9134
2017-07-02 09:41:38 -04:00
syl20bnr 3419247ee8 core: remove unused functions
configuration-layer/load-or-install-protected-package
configuration-layer/load-or-install-package
2017-07-01 18:06:47 -04:00
syl20bnr dfad77dc47 core: update some doc strings
Rename arguments PKG to PKG-SPECS for consistency with make-layer function.
2017-07-01 17:48:31 -04:00
syl20bnr cc0d8cafb2 core: rename configuration-layer/sync to configuration-layer/load
Replace the optional argument `no-install` by a global variable named
`spacemacs-sync-packages`.
Rename the hooks to reflect the renaming of the function.
Rename the flag `--no-sync` to the more explicit `--no-package-sync`
2017-07-01 10:54:37 -04:00
ZarsBranchkin 1e340f62f3 add --skip-sync startup flag
This adds a new startup flag `--skip-sync`. It will force spacemacs to skip
package synchonization. This can be useful in cases when you're working under
poor or restrictive network.

Thanks, @zaript, for this idea!
2017-07-01 09:54:21 -04:00
JAremko 907306a117 optimize space-doc-mode 2017-06-25 00:14:29 +03:00
JAremko 48ef00e094 set pretty-docs nil by default 2017-06-23 22:29:55 +03:00
JAremko c024c746b7 fix export 2017-06-23 22:29:41 +03:00
JAremko ff333c3c3e Add pretty docs option to .spacemacs 2017-06-23 22:29:31 +03:00
Eivind Fonn fcf186faff Fix cfgl-layer docstring (concat not evaluated) 2017-06-23 09:27:05 +02:00
JAremko cd3aa05fab Improve issue reporting 2017-06-22 12:02:28 +02:00
Eivind Fonn 08561d8631 core: implement :depends for package declarations
This replaces the older pattern
:toggle (configuration-layer/package-usedp ..)

This implementation ensures that :disabled-for honors dependent packages, i.e.
if package a depends on package b, which is owned by layer c, and layer c is
disabled for layer d, then neither package a nor b will be configured for layer
d. Previously, this was only true for package a, but not b.

This commit also fixes:

- configuration-layer/describe-package now shows which post-init and pre-init
  functions are disabled, if any
- Does not recreate all layer objects unconditionally when calling
  configuration-layer/discover-layers. Previously, this led to all layers being
  recreated after e.g. `SPC h SPC`, without any of the dotfile information.
  Since this information is now necessary for
  configuration-layer/describe-package, it’s important that we don’t clear the
  indexed layers when invoking this function.
2017-06-22 11:53:05 +02:00
Aaron Jensen 26aa1c13c8 Remove spurious quote
Fixes parinfer's parsing of .spacemacs
2017-06-21 00:45:16 -07:00
ZarsBranchkin 4353535a98 Fix disabled scrollbar remains 2017-06-21 09:37:05 +02:00
Eivind Fonn ef12c6073a theming: robustness
Disable all applied themes in all cases, when a theme is applied
2017-06-18 12:38:01 +02:00
Eivind Fonn c3d344cb8c Allow “default” theme to load properly 2017-06-16 09:30:32 +02:00
nashamri 8d88a2ba1f Little update to spacemacs-theme 2017-06-15 13:24:31 +02:00
duianto 6a84fb3c0e Replace obsolete which-key functions
Problem:
Two which-key functions doc-strings, state that they are obsolete:

(which-key-declare-prefixes KEY-SEQUENCE REPLACEMENT &rest MORE)
This function is obsolete since 2016-10-05;
use ‘which-key-add-key-based-replacements’ instead.

(which-key-declare-prefixes-for-mode MODE KEY-SEQUENCE REPLACEMENT &rest MORE)
This function is obsolete since 2016-10-05;
use ‘which-key-add-major-mode-key-based-replacements’ instead.

Solution:
Replace the obsolete functions.

Searching with `SPC /` through the .emacs.d folder, didn't find any other
occurrences of these functions.
2017-06-15 13:22:13 +02:00
Dela Anthonio 484a99dad0 core: Add support for more doom themes
This commit address #9084.
2017-06-14 10:49:45 +02:00
Codruț Constantin Gușoi 8754575550 Fixes insert point for lazy loaded layers
A recent change in the `.spacemacs.template` made it so that the
`dotspacemacs-configuration-layers` variable name can be found inside a
comment right before the expression that sets it's value. This makes the
lazy insertion fail to detect the proper place to add lazy loaded
layers.

This fix solves the immediate problem but maybe a better solution can
be found.
2017-06-08 21:03:45 +02:00
Eivind Fonn e61e915555 Revise .spacemacs docstrings
This is an attempt to tighten up the language of the docstrings for
initialization and configuration functions. I realize that's pretty
subjective, so please only use what makes sense. Below is a break-
down to avoid seeming _too_ arbitrary.

Rationale
---------
Headings: We know they're functions, so we don't need to say
'X function'. 'Layer configuration' is called that in the other
functions.

Instructions: Say what I should do.

Other: `dotspacemacs/init' -- 'very beginning' is the more common
English idiom.

If I sound strident, it's just 'cause I'm trying to be terse.
This is all opinion so YMMV. I hope it helps.
2017-06-07 12:58:06 +02:00
Benno Fünfstück abcad3bab0 themes: use package-activate to support dependencies 2017-05-30 10:05:22 +02:00
Eivind Fonn 9c9bdf749a Don’t look in .spacemacs.d/layers if it doesn’t exist 2017-05-29 11:52:31 +02:00
JAremko e425d50292 don't reroot non-org files
We don't have all Spacemacs files at spacemacs.org so we
shouldn't change links to such files to relative ones.
2017-05-28 04:09:29 +03:00
JAremko 26eb3ff1df Rework spacemacs//reroot-link (now it makes links relative) 2017-05-28 02:35:13 +03:00
bmag 6fd0d2573b New dotvariable: auto-generate layout names
If dotspacemacs-auto-generate-layout-names is non-nil, and the user
tries to open a layout in a position that doesn't yet have a layout,
then create a new layout with an automatically generated name.
2017-05-25 13:40:28 +02:00
Eivind Fonn 0d5fb6da28 Inhibit recentf when inserting startupify lists 2017-05-25 13:35:36 +02:00
Eivind Fonn 03a8f6733f Check toggle condition in status function 2017-05-24 13:05:17 +02:00
Eivind Fonn 7a6a2d0abb More robust dotspacemacs/add-layer
- Don’t greedily search until last paren, just the first one
- Better call on newlines
2017-05-24 12:47:21 +02:00
Ben Gamari 1320f8e8fa Resolve symlinks when warning about duplicate layers
This allows the user to, for instance, include the spacemacs tree as a
git submodule of their configuration repository without seeing
superfluous warnings.
2017-05-24 12:26:25 +02:00
MadAnd 5eeaed75d9 transient-state: Improve handling of additional bindings
Add two new functions: `spacemacs/transient-state-register-add-bindings`
and `spacemacs/transient-state-register-remove-bindings` to prevent layer
authors and end users from dealing with the underlying variables' subtleties.
2017-05-23 16:03:03 +02:00
JAremko 4e83167f88 fix TOC with same headings 2017-05-22 18:32:47 +03:00
JAremko d16bf3adad update toc-org in spacefmt 2017-05-22 18:32:47 +03:00
Fuqiao Xue 00db1e3d4b Mention the change of dotspacemacs-check-for-update in the documentation
Its default value was changed to nil in 9d72b12245.
2017-05-18 18:22:24 +02:00
syl20bnr 107f70ddf4 replace uninstall with delete also in dotfile template 2017-05-14 22:10:43 -04:00
Leo Joseph Buchignani III cb8de28b8f replaced "uninstall" with "delete"
to avoid conflation of loading/ignoring with downloading/deleting.
2017-05-14 22:09:02 -04:00
MadAnd 9f3e656c8f Add support for building multi-file local packages with Quelpa
At the moment a Quelpa recipe like `(recipe :fetcher local)` is being translated
to something like
`(recipe :fetcher file :path "my-layer/local/my-pkg/my-pkg.el")`. So we can
build simple single-file local packages.

This commit changes it to translate to the package directory instead of exact lisp
file, so we can build multi-file local packages. Thus, the above example will be
translated to `(recipe :fetcher file :path "my-layer/local/my-pkg")`.

Also, add the relevant info to LAYERS.org.
2017-05-14 13:39:02 -04:00
JAremko 86f4278d4c core: inline permalinks in documentation 2017-05-14 12:49:23 -04:00
JAremko 94205a3e81 Fix css links and various org links 2017-04-29 10:45:52 -04:00
nashamri f1701ed490 Add permalinks to the doc headings 2017-04-29 10:44:27 -04:00
syl20bnr 8db21403d7 Fix support for fancy frame title 2017-04-28 23:39:41 -04:00
JAremko 9b922957ef spacefmt better logging 2017-04-28 23:29:43 -04:00
JAremko edc24ef750 MV CONTRIBUTING & COMMUNITY to the root after pub 2017-04-28 23:29:43 -04:00
JAremko 84715966ad Fixes syl20bnr/develop.spacemacs.org#10 2017-04-28 23:25:02 -04:00
Kepi 7e266f4f3c Improve support for fancy frame title 2017-04-28 23:16:22 -04:00
Uri Sharf cb30ec1df8 Add support for fancy frame title
Acked-by: Uri Sharf <uri.sharf@gmail.com>
2017-04-28 23:13:25 -04:00
JAremko ca1d3c141a Add spacefmt test to CI 2017-04-20 22:42:21 -04:00
JAremko fed4a44189 do not annotate HLines with :PROPERTIES: 2017-04-19 23:00:00 -04:00
JAremko 8f982e945c Fix CI 2017-04-19 23:00:00 -04:00