Commit graph

25 commits

Author SHA1 Message Date
syl20bnr 326965d4ce Happy New Year 2018! 2018-01-04 02:00:25 -05:00
Steven Allen 604c24bf0e Replace define-advice with advice-add in the shell layer
`define-advice` requires Emacs 25.

 Addresses: https://github.com/syl20bnr/spacemacs/pull/8635#issuecomment-297887734
2017-05-04 00:30:22 -04:00
syl20bnr 24db3c6513 Add comments for eshell preoutput-filter fix 2017-04-09 22:56:39 -04:00
Steven Allen 538a778a39 Work around bug in eshell's preoutput-filter code.
Eshell doesn't call preoutput-filter functions in the context of the eshell
buffer. This breaks the xterm color filtering when the eshell buffer is updated
when it's not currently focused.

I intend on submitting this fix upstream when I get a chance but an advice fixes
it for now. The other fix is to move the xterm color filter to a
output-filter function (instead of preoutput-filter) but those operate on
strings that have already been inserted into the buffer.
2017-04-09 22:55:11 -04:00
syl20bnr fb27ede558 Bump year in copyright headers
Happy New Year 2017!
2017-01-05 23:08:17 -05:00
syl20bnr 74fdbb6795 Refactor and simplify company backends declaration
Enabling a company backend for a specific mode was a tedious tasks with code
scattered at different locations, one for local variable definitions, one for
company hook function definitions and another where the backends were pushed to
the local variables (which was problematic, since we ended up pushing the same
backends over and over again with `SPC f e R`, pushes have been replaced by
add-to-list calls in the new macro).

All these steps are now put together at one place with the new macro
spacemacs|add-company-backends, check its docstring for more info on its
arguments.

This macro also allows to define arbitrary buffer local variables to tune
company for specific modes (similar to layer variables via a keyword :variables)

The code related to company backends management has been moved to the
auto-completion layer in the funcs.el file. A nice side effect of this move is
that it enforces correct encapsulation of company backends related code. We can
now easily detect if there is some configuration leakage when the
auto-completion layer is not used. But we loose macro expansion at file loading
time (not sue it is a big concern though).

The function spacemacs|enable-auto-complete was never used so it has been
deleted which led to the deletion of the now empty file core-auto-completion.el.

The example in LAYERS.org regarding auto-completion is now out of date and has
been deleted. An example to setup auto-completion is provided in the README.org
file of the auto-completion layer.
2017-01-02 00:39:04 -05:00
Jeremy Bi 5ca7d5e0d1 font-lock-unfontify-region-function should no longer be set/reset.
Due to upstream changes.
2016-10-14 11:19:38 +08:00
Eivind Fonn b2d108877c Move shell layer defuns to funcs.el 2016-08-17 21:00:16 +02:00
Steven Allen c1b5dd301c move eshell company post-config to post-init
See #6711
2016-08-17 20:55:00 +02:00
Eivind Fonn 66a628a599 shell: auto-jump to end also in hybrid 2016-07-05 00:23:16 -04:00
syl20bnr fb97b87cc6 Call spacemacs/set-leader-keys-for-major-mode only once 2016-05-30 21:04:04 -04:00
Eivind Fonn e63478049a shell: fix projectile-multi-term-in-root 2016-05-30 21:02:59 -04:00
syl20bnr a2de9a63af Use :toggle keyword instead of when forms 2016-05-29 22:39:21 -04:00
syl20bnr e4b7536510 Remove smooth scrolling from packages list 2016-05-22 10:00:57 -04:00
Allen Li a9c95142b9 Remove smooth scroll margin
User changing the scroll margin should handle these cases themselves.
2016-05-22 09:58:40 -04:00
syl20bnr 1f993bddf6 Rename spacemacs-helm and spacemacs-ivy layers to helm and ivy
For ivy users: be sure to update your dotfile by replacing spacemacs-ivy
by ivy
2016-05-15 22:24:27 -04:00
dubnde 80cccdce7c Add shell-default-full-span for shell window 2016-04-29 18:14:57 -04:00
syl20bnr e18b1cbe0e Move vi-tilde-fringe hook to shell layer
Also replace lambdas by named functions
2016-04-29 17:48:00 -04:00
Nate Wolfe 634f1a4fbe Revert "(5719) Fix multi-term shell popup"
This reverts commit 8526ee7145.
2016-04-11 20:32:45 +02:00
Nate Wolfe 8526ee7145 (5719) Fix multi-term shell popup
This commit removes the unused argument from the wrapper lambda, which
appears to be no longer provided when the function is called.
2016-04-07 22:15:36 -04:00
syl20bnr 63dc8f7ea0 shell: add support for SPC u SPC ' to open shell in current buffer
Works as well for all `SPC a s ...` key bindings.
2016-04-07 14:52:41 -04:00
Eivind Fonn 64392e3fa5
Fix eshell setup for xterm-color
This makes sure that all the setup happens at the same time. Previously
some setup happened at loading time of esh-mode while some happened in
eshell-mode-hook. Everything output between this (the first prompt)
looks different.
2016-04-06 18:14:57 -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
syl20bnr 931652bf8d shell: register shell language for org-babel 2016-04-04 09:49:13 -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
Renamed from layers/shell/packages.el (Browse further)