Commit graph

9304 commits

Author SHA1 Message Date
Miciah
def07cbfa3 Fix smart-closing-parenthesis extra parenthesis
Fix issue #9477: spacemacs/smart-closing-parenthesis sometimes adds an
extra closing parenthesis.

spacemacs/smart-closing-parenthesis may call sp-up-sexp twice: first to
find the position of an existing closing delimiter or the position at which
one would be inserted, and second to insert a delimiter if necessary or
else move point after the existing closing delimiter.

The problem is that each call to sp-up-sexp may insert a delimiter, but
spacemacs/smart-closing-parenthesis is supposed to insert at most one.

The solution is to undo any edit performed by the first call to sp-up-sexp.

* layers/+spacemacs/spacemacs-editing/funcs.el: Undo any edit performed by
the first call to sp-up-sexp.
2018-08-04 10:48:00 -04:00
EMayej
6f9097e6f0 fix(python): index out of bound 2018-08-04 10:32:31 -04:00
Codruț Constantin Gușoi
ca04186cfc Reverts js2-mode being forced on jsx files 2018-08-03 09:11:36 +01:00
Miciah
6d8be7b381 python: Initialize inferior-python-mode variables
Fix SPC m c c (spacemacs/python-execute-file) and SPC m c C
(spacemacs/python-execute-file-focus), which were causing
the following errors:

    save-current-buffer: Symbol’s value as variable is void: python-shell--interpreter
    error in process filter: python-shell-comint-end-of-output-p: Wrong type argument: arrayp, nil
    error in process filter: Wrong type argument: arrayp, nil

This commit also fixes issue #9070: spacemacs/python-execute-file-focus
does not change focus.

The problem is that spacemacs/python-execute-file-focus invokes
spacemacs/python-execute-file, spacemacs/python-execute-file invokes
inferior-python-mode, and inferior-python-mode uses the variables
python-shell--interpreter and python-shell--interpreter-args, which
the python package declares but does not initialize.

To resolve this problem, this commit initializes both variables to nil.

* layers/+lang/python/config.el: Initialize python-shell--interpreter and
python-shell--interpreter-args to nil.
2018-08-03 06:53:02 +03:00
Thomas de Beauchêne
ce51206ff8 rjsx layer: match .jsx files as well 2018-08-03 01:58:45 +03:00
Thomas de Beauchêne
927a7c4566 javascript layer: open javascript files in js2-mode 2018-08-03 01:58:45 +03:00
Ting Zhou
cffd90080b only use javascript-typescript-langserver for javascript, react, typescript
layer, and purge other langservers
2018-08-03 01:37:36 +03:00
David Chen
faa33e9524 Add indent toggle to sql-model 2018-08-03 01:03:14 +03:00
Codruț Constantin Gușoi
c290645261 Disable ac-ispell untill it's restored in melpa
It seems like the package is missing. We waited a while thinking it will be fixed but
people are starting to get annoyed by this. To be re-enabled once the upstream issue
is resolved.

Refs: https://github.com/melpa/melpa/issues/5657
2018-08-02 11:04:12 +01:00
Dan Girshovich
1ad673fcb7 add guard to check winum is loaded to fix #10446 2018-08-01 23:19:26 -04:00
Miciah Masters
2148562982 Fix loading of Magithub
Fix issue #10760: Magithub sections are not added to Magit.

The problem is that the Spacemacs init function's use-package form for
Magithub specifies both :after magit and :defer t. It should specify only
the former so that Magithub will be loaded when Magit is loaded.

* layers/+source-control/github/packages.el (github/init-magithub): Delete
:defer argument.
2018-08-01 23:03:19 -04:00
Miciah Masters
1ecffa9834 Bind SPC f i to spacemacs/insert-file 2018-08-01 22:46:40 -04:00
Miciah Masters
07964b1a2e Work around ido-mode remapping Spacemacs keys
Add aliases for commands that ido-mode remaps that we want to bind to
Spacemacs keys, and use these aliases in the Spacemacs key bindings so that
these bindings invoke the original commands rather than the ido commands.

See <https://github.com/syl20bnr/spacemacs/issues/10237#issuecomment-359861570>.
2018-08-01 22:46:40 -04:00
Robby O'Connor
c3e402332f go layer: fix cosmetic issue 2018-08-02 00:20:24 +01:00
André Peric Tavares
31b3d66e2b Add keybindings for scrolling in epub layer
Add `d` and `u` for scrolling down and up, just like the `pdf` layer.
Those are actually default `nov` keybings.

Invert `up` and `down` `nov` commands

Add keybindings in epub layer docs

Align table
2018-08-02 01:38:05 +03:00
Jon Erik D Suero
ff555d80b4 Add key binding to run gofmt manually 2018-08-01 17:54:27 -04:00
Jon Erik D Suero
166f6768ae go: add toggle for gofmt before save and turn it off by default 2018-08-01 17:52:03 -04:00
lukasz.czaplinski
87028e77a5 Mark alchemist jump handler as async
Right now `alchemist-goto-definition-at-point` is marked as sync, which
sometimes shows message "No jump handler was able to find this symbol." before jumping to correct definition.

[`alchemist-goto--open-definition`](https://github.com/tonini/alchemist.el/blob/master/alchemist-goto.el#L215) calls alchemist server before jumping to definition, which I think justifies marking this as async.

I have very little experience with either Emacs, or Spacemacs, so let me
know if there's anything I can clarify and/or test before this commit gets
merged :)
2018-08-01 17:44:41 -04:00
Guan Xipeng
0c878ae453 fix: spacemacs/pyenv-executable-find support multi pyenv versions 2018-08-01 17:42:44 -04:00
Miciah
0deadbebcf clojure: Delete bogus escaping in font-lock regexps
* layers/+lang/clojure/funcs.el (clojure/fancify-symbols): Delete bogus
backslashes.
2018-08-01 17:31:32 -04:00
Miciah
91267a2af7 clojure: Fix face name of fancified symbols
Fix issue #9271: Setting clojure-enable-fancify-symbols to t causes
the following to the be printed repeatedly in the message buffer:

    invalid face reference: t

The problem is that the clojure/fancify-symbols function adds font-lock
keywords with highlight forms containing face-name expressions that
evaluate to the return value of compose-region, which apparently is t;
this value is interpreted as a face name.

The solution to this problem is that the face-name expressions should
evaluate to nil, which will be interpreted as an empty list of properties
instead of a face name.

* layers/+lang/clojure/funcs.el (clojure/fancify-symbols): Define keywords
using face-name expressions that evaluate to nil.
2018-08-01 17:31:32 -04:00
Ting Zhou
e362b17868 polish lsp-python and anaconda-mode 2018-08-01 17:22:36 -04:00
Silver Chan
be55d82ef8 fix problem: c-c++-enable-clang-format-on-save not work
fix problem: when c-c++-enable-clang-format-on-save is set in c-c++ layer, but it didn't work.
2018-08-02 00:20:06 +03:00
John Eismeier
5e3c96562a Propose a couple of spelling corrections 2018-08-02 00:20:06 +03:00
syl20bnr
1ae5463051 Correctly lazy-load and disable zone 2018-07-29 15:42:32 -04:00
Kechao CAI
115c93050f +spacemacs: fix zone init
Commit 6f15744 causes the zone initialization error. This will fix #11101.
2018-07-29 15:32:31 -04:00
Anton-Latukha
026ba14691 layer: org: README.org: Org-journal support: rw body text 2018-07-28 18:53:24 -04:00
Anton-Latukha
a78c8fec01 layer: org: README.org: Reveal.js support: rw body text 2018-07-28 18:53:24 -04:00
Anton-Latukha
0064a88213 layer: org: README.org: Gnuplot support: rw body text 2018-07-28 18:53:24 -04:00
Anton-Latukha
b6d8d01622 layer: org: README.org: Twitter Bootstrap support: rw body text 2018-07-28 18:53:24 -04:00
Anton-Latukha
4cc92e9513 layer: org: README.org: Install: Layer: rw body text 2018-07-28 18:53:24 -04:00
syl20bnr
6f157449c1 Fix zone-out-when-idle and correctly disable it when nil 2018-07-28 18:32:23 -04:00
Codruț Constantin Gușoi
f2a4cc87c1 Fixes copy-as-format documentation 2018-07-27 01:20:09 +03:00
Ruslan Kamashev
c802d09ce9 Add copy-as-format layer 2018-07-27 01:09:30 +03:00
Seong Yong-ju
93dabc0bbc Fix templates layer
Fix the issue templates layer ignores "templates-private-directory".
2018-07-27 01:03:47 +03:00
Miciah Masters
ef6e45f30e markdown: Update key bindings for Markdown Mode 2.3
Update key bindings to reflect some changes in Markdown Mode 2.3:

* markdown-exdent-region was renamed to markdown-outdent-region.
* markdown-insert-reference-image (SPC m i I) was folded
  into markdown-insert-image (SPC m i i).
* markdown-insert-inline-link-dwim (SPC m i l) and
  markdown-insert-reference-link-dwim (SPC m i L)
  were replaced by markdown-insert-link (SPC m i l).
* markdown-toggle-markup-hiding (SPC m t m) was added.
* markdown-jump (SPC m RET) was replaced by markdown-do (same).

Note that the documentation listed an incorrect key binding for
markdown-jump; this has been corrected.

* layers/+lang/markdown/packages.el (markdown/init-markdown-mode):
* layers/+lang/markdown/README.org: Update key bindings.
2018-07-27 00:50:17 +03:00
Francesc Elies Henar
8bb1cee649 [flycheck] binds flycheck-copy-errors-as-kill to SPC e y 2018-07-27 00:46:47 +03:00
Codruț Constantin Gușoi
84460c5ef4 Adds mandatory features heading for phoenix layer 2018-07-27 00:27:36 +03:00
Codruț Constantin Gușoi
45ee95c289 Fixes framework name in layer header 2018-07-24 01:18:35 +03:00
Lyuben Petrov
e82efb4c45 Update phoenix prefix to SPC m f
As per the convention
https://github.com/syl20bnr/spacemacs/commit/90452329
2018-07-24 00:34:38 +03:00
Lyuben Petrov
86683ad558 Add phoenix layer
- First remove elixir's layer project prefix, since it was used only for
  one binding which would be better suited in tests prefix
- Move `alchemist-project-find-test` to test prefix
- Add `phoenix` prefix and declare bindings
2018-07-24 00:34:38 +03:00
sorawee
616ca1443d Fix a typo (overwite -> overwrite) 2018-07-24 00:27:15 +03:00
Miciah
814ac87692 c-c++: Update SPC m g Y command
Upstream renamed rtags-cycle-overlays-on-screen to
rtags-cycle-through-diagnostics.  As a result, SPC m g Y
causes the following error:

    Wrong type argument: commandp, rtags-cycle-overlays-on-screen

This commit updates the corresponding key binding
to the new command name in order to prevent the error.

3011f4e787

* layers/+lang/c-c++/packages.el (c-c++/init-rtags): Change
rtags-cycle-overlays-on-screen to rtags-cycle-through-diagnostics.
2018-07-24 00:24:40 +03:00
André Peric Tavares
52b2b4b83d Update obsolete cider-refresh alias to cider-ns-refresh
`cider-refresh` is an obsolete alias:

8b8309d970/cider-ns.el (L204)
2018-07-24 00:21:29 +03:00
Compro-Prasad
9662279838 Fix overflow of line in page-break-lines-mode when using line number
This is picked up from

fd3b7e38ad/page-break-lines.el
2018-07-24 00:11:39 +03:00
Miciah Masters
bff8403446 shell: Adjust popup shell width only for left/right
Fix issue #11037: Do not adjust the width of a popup shell's window unless its
position is left or right.

* layers/+tools/shell/funcs.el: Check that shell-pop-window-position is 'left
or 'right before adjusting the window's width.
2018-07-24 00:05:53 +03:00
Adam Sokolnicki
2e9dcb54b1 Add the missing keybindings in ruby-on-rails layer 2018-07-24 00:02:13 +03:00
Jesse Byler
1671f53f93 Add function spacemacs/new-empty-buffer-new-frame with binding
Add new function spacemacs/new-empty-buffer-new-frame, implemented
with a new selector in spacemacs/new-empty-buffer.  Bind it to
<SPC> b N f
2018-07-23 23:52:31 +03:00
Alexander Miller
a51d8cecd1 finance: use evil-ledger. 2018-07-23 09:22:13 +02:00
JAremko
d9eecb760c Do not validate docs (needs fixing) 2018-07-20 02:57:18 +03:00