Commit graph

8799 commits

Author SHA1 Message Date
syl20bnr
9820484716 javascript: fix multiple backends
* Use hack-local-variables-hook and remove usage of hooks in backends setup
  functions.
* also move imenu configuration to post-init-imenu
* Remove the necessity of typescript server for javascript layer
* Remove the necessity of javascript and javascript-flow servers for typescript
  layers
2018-05-13 01:31:00 -04:00
syl20bnr
0a32d339f5 debug: fix doc for eval variable and sort key bindings 2018-05-13 00:09:34 -04:00
syl20bnr
5cdc1ed056 Sort packages alphabetically and add spacemacs function prefix 2018-05-12 23:59:50 -04:00
CeleritasCelery
6e684739cb create debug layer 2018-05-12 23:46:18 -04:00
syl20bnr
1a5664e436 typescript: add safe values for typescript-backend variable 2018-05-12 02:51:42 -04:00
syl20bnr
f4223543e1 typescript: fix usage of hooks in multiple backends setup
This is necessary as we use hack-local-variables-hook to setup the backends,
at this time it is too late to setup hooks, we need to call the function right
away.
2018-05-12 02:46:51 -04:00
syl20bnr
0877f2f92a typescript, java: use new :append-hooks and :call-hooks
This is necessary as we use hack-local-variables-hook to setup the backends,
at this time it is too late to setup hooks, we need to call the function right
away.
2018-05-12 02:33:52 -04:00
syl20bnr
883f57ee74 typescript: fix hooks to take into account directory variables
Also use spacemacs/add-hooks when applicable.
2018-05-12 02:33:10 -04:00
syl20bnr
40f41769bd auto-completion: add :call-hooks and rename :hooks to :append-hooks
Add these keywords to macro spacemacs|add-company-backends

:append-hooks controls wether we add the hooks to major mode hook variable
:call-hooks conrols wether we execute the created hooks function right away

Basically for multiple backends setup we want to pass :append-hooks to nil and
:call-hooks to t.
2018-05-12 02:26:37 -04:00
syl20bnr
40f28c7d12 auto-completion: fix duplicate addtion of backends
Reverting a buffer could put multiple entries of the same backend in the buffer
local `company-backends` variable.
This is due to the fact that we mutate `company-backends-xxxx-mode` variable
with:
         (setq ,backends-var-name
               (mapcar 'spacemacs//show-snippets-in-company
                      ,backends-var-name)))

Solution is to add a new variable that won't be mutated when we add the support
for snippets.
2018-05-12 02:03:33 -04:00
syl20bnr
439dafb4dd auto-completion: fix variables not set with multiple modes
When multiple modes where provided to macro spacemacs|add-company-backends along
with variables, only the first mode was taken into account as the `variables`
variable was nil after the first interation on `modes`.
2018-05-12 01:53:54 -04:00
syl20bnr
14a5b8c21a typescript: use spacemacs/add-to-hooks function 2018-05-12 00:23:10 -04:00
Andrea Moretti
3a516438cd add smartparens mode 2018-05-12 00:23:10 -04:00
syl20bnr
d8479b8f72 core: add optional append local paremeters to spacemacs/add-to-hooks 2018-05-12 00:18:51 -04:00
Andrea Moretti
8081d51560 typescript: avoid 0 char autocomplete 2018-05-12 00:10:36 -04:00
Ting Zhou
5a92c43951 Fix: use recipe for lsp-javascript-typescript 2018-05-11 23:28:15 -04:00
syl20bnr
f9968bf326 javascript: add default value for tern-command and remove toggle
Since now we support multiple backends, the toggle based on tern executable
seems not necessary anymore.
2018-05-11 13:28:16 -04:00
Alex Palaistras
70c1737c44 xclipboard: Fix keybindings for copy and page
This commit switches the keybindings for `xclipboard-copy` and `xclipboard-paste` to `SPC x y` and
`SPC x p` respectively, as it appears these were incorrectly assigned the other way around.
2018-05-11 10:25:52 -04:00
Ting Zhou
5c14486b62 Fix: remove buggy hooks in javascript and typescript 2018-05-11 01:48:03 -04:00
syl20bnr
79824060c1 Fix l keybinding in neotree to open in MRU window
Fixes #9794
2018-05-11 01:28:58 -04:00
Nick Anderson
4cc57dea74 Fix automatic syntax checking for cfengine
The wrong mode for cfengine was specified for enabling flycheck. This properly
loads flycheck support when cfengine3 mode is active.
2018-05-11 00:42:52 -04:00
syl20bnr
bb84c4a3a3 Fix xclipboard local package name 2018-05-11 00:29:05 -04:00
syl20bnr
1befcad00d Move xclipboard to a local package 2018-05-11 00:20:14 -04:00
Charles Weill
e4cb2b37dc Add X clipboard support layer to terminal emacs.
The X clipboard allows a user to copy and paste content between different X
windows, e.g. copying text from Chrome into a Terminal. Copy/pasting with the X
clipboard it well supported in GUI Emacs, but not so well in terminal Emacs
(i.e `emacs -nw` or `emacsclient -t`) without resorting to using the mouse,
since terminal Emacs has no awareness of X. There are several incomplete Elisp
solutions out that work for the most part, but may not have cross-platform
support, or may fail over SSH with X forwarding or within a `tmux` session.

This layer adds support for OSX, Linux, Windows, and Cygwin using the relevant
binary on each system. For example on Linux, it uses `xsel` or `xclip` to
interface with the clipboard, depending which one is available. It also adds
support for ssh'ing into a different OS with X forwarding via `ssh -Y hostname`,
and copy/pasting to and from a remote terminal Emacs. It also supports an edge
case of continuing to work in an Emacs instance running inside a `tmux` session
which may have been started by a different ssh session, which relies on
explicitly reseting the `$DISPLAY` environment variable before calling the
relevant binary.

Yank code inspired by https://github.com/tmux-plugins/tmux-yank.

Fix #4662.

Tried to add xclip support but removed it since it freezes.
2018-05-11 00:00:01 -04:00
syl20bnr
901fd09e67 Add SPC w 1..3 key bindings to documentation 2018-05-10 23:43:05 -04:00
syl20bnr
df90ec6c02 Add eziam and kaolin themes to themes-megapack layer 2018-05-10 23:38:26 -04:00
duianto
a64417b3c1 Add golden-ratio support to evil-unimpaired
Switching window with `[ w` and `] w` didn't activate golden-ratio.
2018-05-10 23:56:05 +03:00
CeleritasCelery
19b7d40aa1 add support for helm find files edit to helm-navigation transient state 2018-05-10 23:34:39 +03:00
Aaron Jensen
40530100d6 Reenable magithub
Ghub and therefore magithub now support creating tokens automatically:

https://github.com/vermiculus/magithub/blob/master/magithub.org#authentication
https://magit.vc/manual/ghub/Interactively-Creating-and-Storing-a-Token.html#Interactively-Creating-and-Storing-a-Token
2018-05-10 23:05:14 +03:00
Alex
5ea833f10b Add function and keybinding for single column window layer.
We have key bindings to create two and three column
window layers.

This commit makes available a key binding to return to
the default spacemacs window layer, the single column one.
2018-05-10 22:38:47 +03:00
bmag
260c3d98e3 pcre2el: move ownership to bootstrap
pcre2el is used by several layers, such as ivy and helm, so it needs to be
available outside of spacemacs-editing layer.
See also https://github.com/syl20bnr/spacemacs/pull/5990#issuecomment-217400470
2018-05-10 20:26:55 +03:00
CeleritasCelery
aa5bc0373f fixed helm action in helm transient state 2018-05-10 00:00:19 +03:00
Benno Fünfstück
d0833bc8a2 core-themes-support.el: add eziam theme names 2018-05-09 23:40:17 +03:00
William Roe
4acf1cd6d6 Add kaolin themes to spacemacs-theme-name-to-package
This helps with using kaolin themes, so that spacemacs doesn't try to install
the specific theme name from ELPA.
2018-05-09 23:02:05 +03:00
smile13241324
bf61b1500a Add keybinding to docker layer to build image without cache 2018-05-09 22:36:10 +03:00
Codruț Constantin Gușoi
775fb50f9f Fixes TOC formatting for python layer 2018-05-09 01:19:21 +03:00
Codruț Constantin Gușoi
0d9b349091 Fixes CI failure
Since the introduction of `spacemacs-bootstrap`, the position of layers
inside `configuration-layer--used-layers` was shifted by 1 to the right.

The test changes account for that now, and the names were changed to
indicate they are related to testing the `spacemacs-base` distribution,
since the complete `spacemacs` distribution has other layers in between
bootstrap and defaults.
2018-05-09 01:04:31 +03:00
syl20bnr
7596a156a4 Rename set-lsp-key-bindings and make it accept a list of modes 2018-05-08 00:17:56 -04:00
syl20bnr
ed80e41014 javascript: minor update of README.org 2018-05-08 00:10:48 -04:00
syl20bnr
522eafbd2b typescript: update README.org for multiple backends 2018-05-08 00:10:13 -04:00
Ting Zhou
59e0c5683a Add: lsp-typescript support 2018-05-07 23:47:24 -04:00
Philippe Bourdages
4ac8e4ec17 Fix Typescript key binding typo 2018-05-07 23:46:59 -04:00
syl20bnr
4eaf160b90 lsp: fix typo 2018-05-07 23:34:31 -04:00
Ting Zhou
aaa8c93d00 Docs: fix javascript doc 2018-05-07 23:32:47 -04:00
Ting Zhou
8df99c440b Clean: move spacemacs//set-lsp-key-bindings to lsp layer 2018-05-07 23:32:47 -04:00
Ting Zhou
a7982de966 Clean: rename lsp prefix fix function names 2018-05-07 23:32:47 -04:00
Ting Zhou
64cd095d86 Fix: remove unnecessary comments 2018-05-07 23:32:47 -04:00
Ting Zhou
f3ee2edf1b Add: add lsp-javascript backend for javascript layer 2018-05-07 23:32:47 -04:00
syl20bnr
2be6e4e338 core: update Quelpa to last version
Fixes #10653
2018-05-07 01:05:41 -04:00
syl20bnr
fcd9d31bcb groovy: add import for symbol key binding 2018-05-07 01:03:47 -04:00