Commit graph

9305 commits

Author SHA1 Message Date
Miciah Masters 31f4c2a005 Advise rename-buffer when persp-mode activated
Before this commit, spacemacs-layouts/init-eyebrowse advised rename-buffer
with spacemacs//fixup-window-config.  However, this advice causes problems
if persp-mode is not activated when a function tries to rename a buffer.

In particular, Spacemacs's CI uses Emacs's batch mode to run
spacemacs/publish-doc, which uses rename-buffer.  In batch mode, persp-mode
is not activated, and consequently spacemacs/publish-doc was failing:

    Publishing file /home/travis/.emacs.d/news/news01.org using ‘org-html-publish-to-html’
    Skipping check for new version (reason: dotfile)
    Wrong type argument: hash-table-p, nil
    Warning (emacs): recentf mode: Wrong type argument: hash-table-p, nil
    spacemacs/publish-doc failed

In order to avoid problems, this commit moves the advising of rename-buffer
from spacemacs-layouts/init-eyebrowse to spacemacs//activate-persp-mode.

* layers/+spacemacs/spacemacs-layouts/packages.el
(spacemacs-layouts/init-eyebrowse): Move advice from here...
* layers/+spacemacs/spacemacs-layouts/funcs.el
(spacemacs//activate-persp-mode): ...to here.
2018-08-23 10:29:37 +01:00
JAremko 25ba26ab3a [CI] Make formatting more convenient 2018-08-22 19:10:21 +03:00
JAremko 27b738e319 [CI] Check if PR needs rebase 2018-08-22 16:08:59 +03:00
Seong Yong-ju 2c21d5098a Add prettier layer
Add prettier layer. Add prettier support for .css/.scss/.less/.js/.json file.
Add layer variables for html, javascript, json.
2018-08-22 00:15:28 +03:00
John Lee 9d2a1085ee Fix key bindings for wgrep
The problem was not with the existing bindings, but rather:

1. C-x C-e (spacemacs//counsel-edit -- from an ivy completion session) would
land you in an ivy-occur buffer with wgrep enabled but in motion state.  This
meant the spacemacs key bindings for wgrep were not available.  In particular,
the usual routine is:

* (enter ivy completion session, e.g. with SPC s a P)
* C-c C-e
* edit the buffer as needed
* , , (wgrep-finish-edit)
* , s wgrep-save-all-buffers

2. That last binding (, s) was not there.

One issue is that , s is available before wgrep-finish-edit is called, which is
confusing because I don't think it has any useful function at that point in
time.
2018-08-21 23:52:22 +03:00
Miciah 4972855231 Fix updating buffer names in window configurations
Eyebrowse stores window configurations for workspaces in frame properties.
These window configurations reference buffers by name, which means that
these references must be updated when a buffer is renamed.  To this end,
eyebrowse advises rename-buffer.

Spacemacs integrates eyebrowse with persp-mode by saving the eyebrowse
workspaces for a perspective as a parameter for that perspective so that
Spacemacs can restore a perspective's workspaces when switching to that
perspective.  However, eyebrowse's advice for rename-buffer fails to update
inactive workspaces, for which the window configurations are stored in
perspective parameters and not frame properties.

This commit disables eyebrowse's advice and adds perspective-aware advice
to update buffer references in workspace window configurations.

* layers/+spacemacs/spacemacs-layouts/funcs.el
(spacemacs//fixup-window-configs): New.
* layers/+spacemacs/spacemacs-layouts/packages.el
(spacemacs-layouts/init-eyebrowse): Remove eyebrowse-fixup-window-configs
advice for rename-buffer and advise with spacemacs//fixup-window-configs
instead.
2018-08-21 23:27:31 +03:00
Arne Brasseur 77cf6a2a36 Clojure layer: make sayid optional 2018-08-21 22:42:17 +03:00
kyoncho 862d873fa8 LSP Java backend for the Java layer
Fixes #10654

Added new backend for the Java.
2018-08-21 20:36:06 +01:00
Lupco Kotev 25be8ecb62 Update documentation to include golangci-lint 2018-08-20 23:03:45 +01:00
Lupco Kotev 1d49cd7ed8 Add golangci-lint support 2018-08-20 23:03:45 +01:00
Masayuki Takemura c2e377c902 spacemacs-defaults: add a keybind to open a file and replace buffer with it
Define an alias and use it internally so that (1) the name of the command will
be better to understand what it does than the original name and (2) Helm or Ivy
interface is invoked instead of Ido.

These are suggested in PR #11115.
2018-08-21 00:55:37 +03:00
Langston Barrett ab5b171524 apply patch from @sdwolfz re: formatting 2018-08-20 22:42:23 +01:00
Langston Barrett 8fcf41cd54 coq: add keybindings for company-coq's documentation functions 2018-08-20 22:42:23 +01:00
Andrew Stevanus 1045185c9f Fix Elfeed not saving on quit
This binding is redundant since Elfeed already binds q to
elfeed-search-quit-window.
2018-08-20 22:40:53 +01:00
Xiang Ji 5c702863bf Add chinese-conv package to chinese layer.
[chinese-conv](https://github.com/gucong/emacs-chinese-conv/) performs
conversion between simplified and traditional Chinese texts
2018-08-21 00:27:37 +03:00
smile13241324 a9a9b701ac doc: fix various errors in gtags layer README 2018-08-20 22:13:48 +01:00
Miciah Masters 4408788799 github: Disable status, issues, and PRs by default
Try again to fix issue #11176.

* layers/+source-control/github/packages.el (github/init-magithub): Disable
the GitHub project status, pull requests, and issues sections by default.
* layers/+source-control/github/README.org: Document that these sections
are all disabled by default, and how to enable them.
2018-08-18 15:06:26 -04:00
Miciah Masters 6659088dc5 github: Make Magithub offline by default
Fix issue #11176.

* layers/+source-control/github/packages.el (github/init-magithub):
Configure Magithub to be offline by default.
* layers/+source-control/github/README.org: Add documentation about
Magithub's offline mode.
2018-08-18 13:22:37 +01:00
MarcoIeni 21c3a87044 Spacemacs documentation improvements
`SPC f e f` key binding is no more present, so moved that table entry to
`SPC h f` in DOCUMENTATION.org.

corrected description of paste transient-state behavior.
2018-08-18 12:22:23 +01:00
gdkrmr 71bea49e48 add key bindings julia layer evil-surround 2018-08-16 23:55:27 +01:00
Ljupcho Kotev 107833af16 Remove unnecessary company-go function 2018-08-16 12:01:38 +01:00
Ismael f1066ec66e Fixes React imports when using web beautify. 2018-08-16 00:55:32 +03:00
Ljupcho Kotev 81865e1ea2 Change backend name from default to go-mode 2018-08-16 00:39:17 +03:00
Lupco Kotev bb3e3b2103 Add lsp support for go 2018-08-16 00:39:17 +03:00
smile13241324 6b0e696208 doc: add remark for necessary GitHub login to report issues 2018-08-15 22:25:03 +01:00
jpathy 13d0212c18 Associate nix-mode with .nix files 2018-08-16 00:19:11 +03:00
smile13241324 252c94a1ce doc: revise docs for auto-complete and syntax-checking layers
Syntax-checking and auto-complete layers should more
directly communicate that their function depends on
the installation of individual language layers to avoid
misunderstandings with new users who only install
syntax-checking or auto-complete and install the packages
manually.
2018-08-15 22:15:45 +01:00
smile13241324 c0afbd0ee5 search-engine: add ecosia and make each engine use https 2018-08-15 20:22:42 +02:00
Codruț Constantin Gușoi 6a724e416d Fixes formatting on ruby readme 2018-08-11 13:13:22 +03:00
Brandon Conway 6302748f99 Add seeing is believing 2018-08-11 12:53:50 +03:00
Wieland Hoffmann b18672d9d1 core: Add support for lazy installation of the systemd layer
The list of supported file extensions is taken from
401d71c2dd/systemd.el (L391-L392).
2018-08-11 11:56:29 +03:00
Adam Beckmeyer 42f9ad4290 Add dedicated julia layer 2018-08-11 09:16:15 +01:00
Adam Beckmeyer feee0844c5 Remove julia from major-modes layer 2018-08-11 09:16:15 +01:00
Adam Beckmeyer 36161b4d47 Remove julia from ess layer 2018-08-11 09:16:15 +01:00
gdkrmr 4af499588a fix java layer 2018-08-09 23:02:16 +01:00
gdkrmr 875d4a6afc remove explicit prog-mode-hooks for ess 2018-08-09 23:02:16 +01:00
gdkrmr 8b858abc6a fix for ess issue emacs-ess/ESS#589 2018-08-09 23:02:16 +01:00
gdkrmr bf23cb17dd keybindings for the repl 2018-08-09 23:02:16 +01:00
gdkrmr 3186da89bb add xref integration for ess 2018-08-09 23:02:16 +01:00
syl20bnr 3f47bf8e11 Move major specific error key bindings to SPC m E prefix
Also add a convention for it.
2018-08-09 23:02:16 +01:00
André Peric Tavares 775d584665 Merge file variables in a single line 2018-08-09 22:53:11 +01:00
André Peric Tavares e329582f54 Use lexical binding in dotfile template
Lexical binding is easier to reason about and it's generally recommended for new code. It's faster too.

Dynamic scoping can lead to tricky situations. Example: https://emacs.stackexchange.com/questions/10394/scope-in-lambda

This probably won't break existing code. Most people don't even know the default is dynamic binding.
2018-08-09 22:53:11 +01:00
Kalle Lindqvist 0a81d5f4ad html: remove emmet TAB key binding for Emacs style
Allow to use TAB for indenting as usual.
2018-08-09 22:50:03 +01:00
Langston Barrett 178b0caeb8 lang/coq: more insertion keybindings 2018-08-09 22:49:01 +01:00
Miciah Masters 6058921a02 layouts: Add free buffers to current layout
This fixes issue #5776.

* layers/+spacemacs/spacemacs-layouts/packages.el
(spacemacs-layouts/init-persp-mode):
Set persp-add-buffer-on-after-change-major-mode to 'free.
2018-08-09 22:43:11 +01:00
EMayej 17d9cbb86a docs(templates): template dir is set to private dir by default
templates directory under spacemacs.d won't be used anymore.
See commit 93dabc0bbc

Also see commit 04685e77ca for previous changes
2018-08-09 22:39:26 +01:00
EMayej ad9064fbf7 docs(templates): variable to disable emacs default templates
See commit 04685e77ca
2018-08-09 22:39:26 +01:00
lawr 591fe78eec go-layer: supoort set-tab-width equal nil to work with editorconfig 2018-08-10 00:36:46 +03:00
br3athein 72d2e7d09d Revert "Disable ac-ispell untill it's restored in melpa"
This reverts commit c290645261.
2018-08-09 22:28:27 +01:00
smile13241324 c20fe9a1ae doc: fix small typo in semantic feature block 2018-08-09 21:57:58 +01:00