Commit Graph

106 Commits

Author SHA1 Message Date
syl20bnr 252547aa81 core: add support for :location keyword in dotspacemacs-themes
New functions:
- configuration-layer/get-location-directory which return the location on disk
given a location
- spacemacs//get-theme-directory which returns the location on disk of the
theme

Add note in documentation to warn about the directory name when :location local
is used, the directory name is the package name not the theme name.
2017-02-05 23:47:17 -05:00
syl20bnr 5b9d368a5f core: fix loading of some themes
Fix loading of some themes like sanityinc-tomorrow-night
2017-02-02 18:28:51 -05:00
syl20bnr 747bd7c6fb core: fix broken theme application in terminal
Fixes #8252
2017-02-01 23:26:22 -05:00
syl20bnr 415b29b140 core: dotspacemacs-themes entries now accept package properties
It is now possible to use package properties like :location in
dotspacemacs-themes.

Added hooks ran at the beginning and end of configuration-layer/sync:
- configuration-layer-pre-sync-hook
- configuration-layer-post-sync-hook

configuration-layer-pre-sync-hook is used to hook the new function
spacemacs//add-theme-packages-to-additional-packages. This new function updates
dotspacemacs--additional-theme-packages variables.

Update documentation to mention the new feature.
2017-02-01 22:59:03 -05:00
syl20bnr b3c8ebc816 core: improve theme application
Add all theme packages defined in dotspacemacs-themes to the variable
dotspacemacs-additional-packages and delay the application of user theme at the
end of startup (only when user theme cannot be applied at the very beginning
of Emacs startup).

This has nice properties:
- we leverage the layer system to handle the theme packages installation and
  cleanup.
- theme packages are automatically owned by the dotfile preventing them from
being garbage collected.
- the protected package mechanism is now obsolete since themes were the last
packages using it. This mechanism may be removed in a near future.

Thanks to TheBB for the initial idea.
2017-01-25 23:37:57 -05:00
syl20bnr 9ac779a2e4 core: import spacemacs-theme into libs
Distribute spacemacs-theme with Spacemacs so we don't need to download the
package of the theme at startup. It was delaying the display of the home buffer.

Now Spacemacs fallback to spacemacs-dark theme if the user theme cannot be
applied. Spacemacs then tries to install and reapply the user theme. If
successful, at the subsequent startups the user theme is applied right away
instead of spacemacs-dark. If the installation failed then we display a warning
informing the user and suggesting some actions.

There is now no package left to be installed manually at the start of Spacemacs.
2017-01-25 00:30:31 -05:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
d12frosted e87a251138
align list of supported themes 2017-01-04 22:12:14 +02:00
Jeffrey Enns 0a418c6286
Add missing base16 themes 2017-01-04 22:10:56 +02:00
Bez Hermoso 5323dd60b8 Added new base16 themes 2016-12-24 21:00:30 +02:00
syl20bnr c7370cc592 core: use memq instead of multiple calls to eq 2016-11-20 13:38:02 -05:00
Chris Kaukis 1038c84597 Add Doom themes to required dependencies for dash 2016-11-20 13:33:38 -05:00
Rostislav Svoboda 0fa634c11c Display 'done' after a theme is loaded 2016-11-05 12:32:51 +02:00
Eivind Fonn df49e2a8d2 Add support for doom themes 2016-10-12 16:22:15 +02:00
Kaleb Elwert d202ead5fa Add new base16 color schemes 2016-08-30 16:05:59 +02:00
Kaleb Elwert 131e0faef9 Update base16 themes to match new list 2016-08-24 11:34:30 +02:00
Eivind Fonn b47d0661c2 Update base16-tomorrow-dark name (fix #6903) 2016-08-24 09:59:22 +02:00
Eivind Fonn 8e87132ba7 Fix possibly calling bad code after theme change 2016-07-25 14:00:02 +09:00
Cifer-Y 2e9e44e0e9 add support for omtose-phellack-theme
(omtose-darker and omtose-softer)
https://github.com/syl20bnr/spacemacs/issues/6657
2016-07-25 12:15:58 +09:00
syl20bnr 653da2a6aa highlight-persist/smartparens overlay: better adaptive face
Choose to inherit from face lazy-highlight instead of region.
Ideally a theme should not set lazy-highlight to the same face as
region.

Also move some function to funcs.el and remove some empty lines.
2016-07-13 10:22:03 -04:00
syl20bnr d60228219f core: ensure quelpa is available when installing packages 2016-04-03 02:51:01 -04: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
syl20bnr 6bb306a999 Improve theme installation robustness
Also use stock Emacs functions for warning reporting before the
home buffer is actually created.
2016-02-19 23:30:35 -05:00
Kosta Harlan d6c29bdb8c Add majapahit-theme
This is a nice theme with light & dark versions.
2016-02-14 23:09:26 -05:00
Curtis Mackie 5511bdbd6f Added support for remaining base16 themes that were not listed 2016-01-26 01:21:02 -05:00
Eivind Fonn 2d29953200 Enhance theme handling
- Restrict default theme code to spaceacs/load-theme
- Don't download package for default
- Explicitly call post-theme-init for default
- Explicitly disable existing themes when loading
2016-01-23 14:40:24 +01:00
syl20bnr 046d86800c Clean copyrights and update for year 2016 2016-01-11 21:42:17 -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 fcb596986f core: add comment 2015-12-01 01:21:03 -05:00
justbur 63ff1926e5 themes: Silence free variable warning
Without this a popup is raised every time emacs25 starts up for
assignment to a free variable
2015-12-01 01:20:18 -05:00
codefalling 91c00fe76a Add farmhouse-theme 2015-11-09 19:01:35 +01:00
Eivind Fonn 4f2b08154c core: Don't delete bootstrap packages as orphans 2015-11-04 20:21:42 +01:00
Eivind Fonn 15f4db4d10 Re-enter theme cycle in right place after SPC T h 2015-10-29 19:38:52 +01:00
Muneeb Shaikh 8379c2f7af Fixes #1217, SPC T n after SPC T h broken
If we select a theme after spacemacs' startup, then
`spacemacs--cycle-themes` doesn't have the first theme from
`dotspacemacs-themes` so we start over.
2015-10-29 19:32:05 +01:00
Eivind Fonn e9c5e168d6 core: remove special handling of spacemacs-theme and solarized theme
Also remove the local solarized-theme package
2015-10-07 15:51:39 -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 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
Robert O'Connor ba63987030 Fix the path for loading solarized.
Once all extensions were moved from "extensions" to "local",
spacemacs was no longer able to find the solarized themes.

Thanks to @TheBB for helping narrow this down!

Closes #2628
2015-08-12 03:12:52 -04:00
syl20bnr 9213c6b7f2 core: change default value for dotspacemacs-themes
Make spacemacs themes official default themes for spacemacs
2015-07-04 23:51:32 -04:00
nashamri 4c6bc0d81e Make spacemacs-theme the default theme (dark variant)
Remove the spacemacs-theme extension from spacemacs layer
Add spacemacs support to the core
2015-07-04 23:31:52 -04:00
Elais Player 0b36ce4d1f Added tao theme 2015-06-30 23:00:41 -04:00
Christoph Paulik 5239efe1f4 add material-light support 2015-06-14 22:32:12 -04:00
Tu Do 2231677654 Update title for Helm Spacemacs Documentation
- Don't need to add "Helm".

- Add some info to quickhelp.

- Increase the line-width of org-kbd to 2 to make it more visible as a
  button.
2015-06-11 21:31:42 -04:00
Tu Do cfaa6edc19 Enhance viewing Spacemacs documents in Org
- Use `~` marker to represent key bindings. The `~` and `=` markers are
equivalent in Emacs: `=` uses `org-verbatim verbatim` faces, while `~`
uses `org-code verbatim)`, but both `org-verbatim` and `org-code` is
inherited from `shadow` face. So we can use `~` marker for this purpose.
`~` marker is also displayed properly on Github, since it's part of
standard Emacs, so no web functionality is broken.

- Add org-kbd face for displaying key bindings.

- Update CHANGELOG.org: use the proper `~` marker for key bindings.

- Update VIMUSERS.org: use the proper `~` marker for key bindings.
2015-06-09 20:36:19 -04:00
syl20bnr f87945bc52 Add spacemacs-theme 2015-06-03 00:38:45 -04:00
syl20bnr c4b7fe9af9 One / instead of two for functions used in spacemacs/post-theme-init 2015-05-13 21:59:59 -04:00
Tu Do 9f7020ecc5 Fix evil-highlight-persist face (again!)
- Change the theme on :init.
- Re-apply when change theme with `SPC T h`.
2015-05-13 21:53:08 -04:00
syl20bnr 858bb7a733 Add powerline face tweak to spacemacs/post-theme-init 2015-05-08 00:33:30 -04:00
Michishige Kaito 23bef9e93c Update theme-to-package rules for base16 2015-05-02 22:31:07 -04:00
Luke Gaudreau b1871d6229 Add support for apropospriate-theme
[apropospriate-theme](https://github.com/waymondo/apropospriate-theme)
2015-04-26 00:20:52 -04:00
syl20bnr 57f802619b Don't consider used themes as orphans if they don't belong to a layer
Now it is not required to use the themes-megapack layer or define
a private layer to use a theme that is not in the spacemacs layer.
2015-04-14 15:50:29 -04:00
syl20bnr 48bc6b55f6 Add variable `spacemacs-evil-cursor-colors` 2015-02-24 00:27:43 -05:00
syl20bnr f0bbb8a343 Add support for moe-theme
resolves #487
2015-02-12 23:58:47 -05:00
syl20bnr 6d2f09fc92 Add support for zonokai themes
resolves #485
2015-02-12 22:35:14 -05:00
syl20bnr fa4c659832 Automatically adapt micro-state faces to the current theme 2015-02-12 00:14:38 -05:00
syl20bnr 16df76c0c8 Prefix all core files with `core-` 2015-01-26 22:51:47 -05:00
Renamed from core/themes-support.el (Browse further)