Commit graph

6588 commits

Author SHA1 Message Date
syl20bnr 31bab70397 💣 Drop support for Emacs 24.3
Spacemacs now needs at least 24.4 to launch.
2016-06-20 21:55:36 -04:00
syl20bnr 41af5fd9d7 Change default dotspacemacs-startup-lists value to nil
I think it is a better default since it makes the startup buffer less
bloated which is a good thing for newcomers.
2016-06-20 21:32:07 -04:00
syl20bnr 57350a3b48 core: reimplement :packages keyword and update documentation
Old implementation excluded package that were not selected, this
implementation does not excluded them, it simply ignore it in the
layer where they are not selected. This reimplementation comes from
a refactor of the way packages.el files are loaded, instead of loading
these files at the moment of resolving the list of used packages, they
are now loaded when making the layer objects. A neat consequence is that
side effects is better confined and the configuration-layer/get-packages
is now pure (at least a lot more pure than before).
In the `cfgl-layer` class the slot `:user-packages` has been renamed
to `:selected-packages` which defaults to `'all` meaning that all
the packages in `:packages` are selected. `:selected-packages` value
is given by the new function `configuration-layer//select-packages`.
Effectively selected packages are given by a new method for `cfgl-layer`
class called `cfgl-layer-get-packages`.

Tests have been updated to reflect the changes.

Also documentation on configuration layer declaration in the dotfile
section of DOCUMENTATION.org has been greatly improved (I hope) and
reflect the last feature added to the
`dotspacemacs-configuration-layers` list.
2016-06-20 20:48:25 -04:00
ralesi 704732fc84 Reimplement #5339 by justbur to add :packages keyword. 2016-06-19 22:07:44 -04:00
Eivind Fonn c24553dee2 Update documentation 2016-06-18 19:21:27 -04:00
Eivind Fonn 2a6ffc72d9 ivy: Support GNE
Implement a keymap for Spacemacs’ counsel search that supports saving
the results to a buffer (bound on F3 as in helm). Ensure that the new
buffer supports the GNE API.
2016-06-18 19:21:26 -04:00
Eivind Fonn 194af58f3c helm: Support GNE
Advice the save-buffer functions to use the GNE API in that buffer.
2016-06-18 19:21:26 -04:00
Eivind Fonn bdb40cf4d0 Implement error transient state
This works with systems defined by the error delegate function (and it
shows which system is used, and which buffer supplies the “errors”).
When the Emacs next-error system is used and the next-error buffer is a
Spacemacs GNE buffer, it also shows current number / total number.
2016-06-18 19:21:26 -04:00
Eivind Fonn c9048dc0e3 Implement generalized next-error API
The function spacemacs//gne-next can be used as next-error-function in
any buffer where lines represent “entries” that can be visited.
2016-06-18 19:21:26 -04:00
Eivind Fonn 6236f9fd58 Minor refactoring of next/previous error
Implement a delegate function that decides which system to use. Also
check for the visibility of any next-error valid buffer, not just
compilation buffers.
2016-06-18 19:21:26 -04:00
syl20bnr 50d5cdd054 Fix error with which-key--buffer on startup
Use the hook instead.
Fixes #6358
2016-06-18 00:19:59 -04:00
syl20bnr 2738724ed4 erc, html and pdf-tools: use :evil-leader-for-mode in transient states 2016-06-17 23:40:06 -04:00
syl20bnr d66b5c0a93 iptyhon-notebook: evilify notebooklist buffer
Move eval-after-load to :init block.
2016-06-17 23:22:12 -04:00
syl20bnr 3768374488 ipython-notebook: resize images in readme 2016-06-17 23:21:45 -04:00
syl20bnr 4ff26b3f27 ipthon-notebook: move transient state binding to SPC m .
Or `,.` with the shortcut, this is a more standard approach.
Use the :evil-leader-for-mode keyword to bind the transient state

Add space in the :doc of the transient state because auto-indent of
elisp code is broken otherwise.
2016-06-17 22:55:19 -04:00
d12frosted 2570a1340b
fix spacemacs/rename-file function
It has some wrong variable names which leads to errors.
2016-06-17 21:51:48 +03:00
Eivind Fonn 074ac8f756 ipython-notebook: fix loading of keymap 2016-06-17 18:40:13 +02:00
d12frosted 52202cc927
fix double equals sign in FAQ 2016-06-17 09:28:09 +03:00
d12frosted b7362c18ae
improve note about insecure connection in readme
After 8a7a4ce
2016-06-17 09:25:37 +03:00
Roy Xue 8a7a4ce1c3
Improve Installation Guide in README 2016-06-17 09:22:33 +03:00
Eivind Fonn dfad604faa core: fix possibly negative string length 2016-06-13 10:59:29 +02:00
syl20bnr 8368be3c89 core: display a numerical progression in mode-line
Represents the number of packages to configure.
2016-06-13 00:56:25 -04:00
syl20bnr e1826c9382 Disable vi tilde fringe in which-key buffer 2016-06-13 00:39:08 -04:00
sooheon d0452a861a Disable vim-empty-lines in unnecessary buffers
*Messages* and which-key--buffer do not need empty line indicators.

Also break up an unnecessarily long line.
2016-06-13 00:34:07 -04:00
neutralevil 8b6356d270 Fix init error for emacs in terminal mode
The code block passed to `spacemacs|do-after-display-system-init`
is never invoked if emacs is running in terminal mode.
2016-06-13 00:25:39 -04:00
syl20bnr ad72dab624 Move pcre2el key bindings to SPC x r prefix
Also document it.
Move everything to spacemacs-base since the new prefix is not as invasive
2016-06-13 00:01:25 -04:00
ralesi 9047b7b5ce Move pcre2el to spacemacs-base.
Fixes #5953
2016-06-12 23:06:22 -04:00
Robert O'Connor f4fcd93b2f 2000th fork 🔱 by @Gameguykiler
😹 🍰 👏 🔥 ❤️  🎉 🚀 :octocat:
2016-06-12 23:02:15 -04:00
NJBS b6432e1efe Add prefixes to the LaTex layer 2016-06-12 21:57:14 -04:00
Ben Gamari 7b1430e9d5 haskell: Don't enable haskell-tags-on-save
This is a very opinionated option and works very poorly on even
moderately large projects as it invokes `hasktags` synchronously,
freezing the editor for several seconds on every save. Users who want
this behavior should enable it manually.

Fixes #6292.
2016-06-12 21:51:28 -04:00
Eivind Fonn 0b2a438aa7 clojure: enable smartparens in cider
cider-repl-mode doesn’t derive from comint
2016-06-12 21:50:34 -04:00
Dionysis Athinaios 5ec5882974 Provide more details for ycmd installation and configuration 2016-06-12 21:49:07 -04:00
Brett Cannon 9b4586837f Fix a minor grammatical mistake 2016-06-12 21:45:48 -04:00
kr5x 07864f50d9 common-lisp: Remove <tab> key binding
'indent-command-for-tab' that already bound to <tab> globally is more useful.
2016-06-12 21:44:52 -04:00
Wieland Hoffmann 78bfe65e62 Python: Don't remove ':' from electric-indent-chars in emacs >= 24.5
According to the conversation in [0] ':' is removed from
electric-indent-chars in python-mode because typing ':' in

> for i in range(10):
>    print(i)
> for i in range(10)_

with the point at _ indents the third line. This is not happening in
Emacs 24.5 anymore.

[0] aed0fc8ef8
2016-06-12 21:42:40 -04:00
syl20bnr dc94784e70 Remove leuven theme from spacemas-ui-visual and simplify default value
for dotspacemacs-themes, set only the spacemacs themes.
2016-06-12 21:15:10 -04:00
Albin Ludvig Otterhäll 9e3f75a36f Remove references to Solarized themes
Solarized themes has been removed from the default distribution of
Spacemacs.
2016-06-12 21:12:34 -04:00
d12frosted 9df123c40c haskell: remove structured-haskell-mode 2016-06-12 21:11:32 -04:00
syl20bnr 768ec3fc50 core: fix configuration-layer//warning function
Correctly apply arguments to the spacemacs-buffer/warning funcion.
2016-06-12 21:09:22 -04:00
Carl Lange a00045d410 Fix duplicated layer string format error
I had a duplicated layer, but the message that's printed broke spacemacs starting up because it was a format string but wasn't in a `format` form. Simple fix. Spacemacs works again! Yay!

This issue was introduced in c0851ddcb3, according to a quick `git bisect`. :)
2016-06-12 12:58:38 +01:00
syl20bnr 1b77fd84b0 core: fix infinite loop :-) 2016-06-11 01:15:35 -04:00
syl20bnr e018e41b37 Fix tests
Mock the correct function configuration-layer//warning
2016-06-11 00:00:46 -04:00
syl20bnr 4f5d7670f1 core: fix typo with configuration-layer--inhibit-warnings 2016-06-10 23:41:33 -04:00
syl20bnr cc91842bd8 helm: improve SPC h SPC
As it was the case during the good old days when spacemacs was still a
baby, SPC h SPC now list correctly all the pre/init/post functions and
the associsted layer. It also now list properly the current owner of
a package so it is easy to find the owner of a package by narrowing
with `packagename owner`.

This new old functionality is possible by leveraging the last
improvements to the layer system (see previous commits).

TODO: update the sources for Ivy
2016-06-10 22:48:41 -04:00
syl20bnr c0851ddcb3 core: new variable configuration-layer--inhibit-warnings
If non nil then the configuration system does not emit warning.
2016-06-10 22:47:45 -04:00
syl20bnr 3a9cffd2d9 core: add method cfgl-package-get-safe-owner
Safe method to get the owner of a package.
2016-06-10 22:38:38 -04:00
syl20bnr b2d4adb14d core: change cfgl-package :owner slot to :owners
The car of :owners is the real owner.
Now we can easily gather the list of all owners of a package.

Also fix unit tests about missing spacemacs-insecure variable.
2016-06-10 21:43:25 -04:00
syl20bnr cb6754f231 Remove packages without any init functions 2016-06-10 20:53:24 -04:00
syl20bnr 7e3a827f63 core: warn about packages without any init functions
Display a message when a not excluded package has no pre-init, init or
post-init function in a layer.
2016-06-10 20:53:24 -04:00
syl20bnr 775c1f78db ivy: create missing layers.el file
Was triggering an error if ivy and smex layer were both used at the
same time and smex layer stole ownership of smex package.
Fixes #6281
2016-06-10 20:53:23 -04:00