Commit Graph

858 Commits

Author SHA1 Message Date
Maximilian Wolff 30e838f851
Add changelog entry 2020-03-24 21:37:36 +01:00
Richard Kim 782ad723a9
Fix emacs major mode leader key binding for GUI emacs 2020-03-21 21:12:50 +01:00
Matt Kramer f1e2d974ed
Make spacemacs/open-junk-file create junk directory and fix counsel issues
This is a squash commit including below commits

Add dotspacemacs--pretty-ignore-subdirs

Within the specified subdirs of `dotspacemacs-start-dir`,
spacemacs/prettify-org-buffer (and hence space-doc-mode) will not be called.
Without this variable, using spacemacs/open-junk-file to create an Org file will
result in prettification, which is not necessarily the desired behavior.

Call make-directory in spacemacs/open-junk-file

This imitates the behavior of open-junk-file.

Prevent spacemacs/open-junk-file from getting confused by Dired

If we're in a dired buffer, counsel-find-file will ignore
current-directory (i.e. junk-dir) and use (dired-current-directory) instead. We
fool Counsel by shadowing major-mode to nil.

Update CHANGELOG.develop re spacemacs/open-junk-file
2020-03-21 20:52:21 +01:00
Muneeb Shaikh bb8ec23ec1 [themes][keybindings] Use apt completion framework for loading theme
Theme transient state key-binding `t` is broken if `ivy` completion framework is
used. The binding unconditionally invokes `helm-themes`.

This change adds a new function which takes care of invoking correct
theme-loader function based on completion framework currently in use.

The old binding used `helm-themes` but the new function uses already defined
`spacemacs/helm-themes` which removes the number of candidates limit.
2020-03-19 10:48:59 +01:00
Maximilian Wolff 0438c1ca5d
[kubernetes] Add tramp support 2020-03-17 20:41:11 +01:00
Daniel Nicolai 2049817b12
[ivy] Replace custom hydra-menu by original hydra-menu 2020-03-17 09:51:12 +01:00
Muneeb Shaikh 3f526479e3
[themes] add highly accessible themes - modus-{operandi, vivendi}
Modus themes are highly accessible themes for GNU Emacs, conforming with the
highest accessibility standard for colour contrast between background and
foreground values (WCAG AAA standard).

Screenshots: https://gitlab.com/protesilaos/modus-themes/-/wikis/Screenshots
2020-03-12 21:25:44 +01:00
lin.sun fbe8fba836
[spacemacs-language] Improve google-translate user experience 2020-03-12 21:23:09 +01:00
jr0cket af2d7e320e
[clojure] keybindings for browsing clojure specs
Browse a specific clojure spec or browse all specs in a project.
2020-03-12 20:54:09 +01:00
Thanh Vuong 97724081bc
Tide layer
Allows use of standalone typescript server for js/ts development
Co-Authored-By: Maximilian Wolff <smile13241324@gmail.com>
2020-03-08 12:29:04 +01:00
dickmao 72ea04946a
[ipython-notebook] further reduce maintenance
update CHANGELOG.develop
+lang/ipython-notebook further reduce maintenance
Remove unmaintained ob-ipython in favor of maintained ob-ein.
reinstate gj gk
reinstate ipython-notebook transient with autogen doc
2020-03-08 12:17:41 +01:00
syl20bnr 82871d4c06 Move rectangles key binding to SPC C-v
To reflect with VIM key bindings on C-v
2020-03-05 21:47:30 -05:00
syl20bnr 1fc809bdf0 Use spacebind for Differences key bindings 2020-03-05 21:04:51 -05:00
syl20bnr ab3511cfb5 [which-key] Improve readibility
* add column padding
* group prefixes together
* display a minimum of 6 lines
2020-03-05 21:04:51 -05:00
Riccardo Binetti 37c85cdb53
Add TidalCycles layer
This layer adds tidal-mode, to use TidalCycles (https://tidalcycles.org)
from Spacemacs. It also remaps some keybindings in places that are more
idiomatic to Spacemacs.
2020-03-04 23:58:40 +01:00
duianto 728ee6c2b8 [gnus] Make the gnus variables user configurable
The gnus variables were set in the `gnus/init-gnus`
functions `:config` section, that made them override
any user configurations.

Moving the variable declarations to the `:init`
section made them user configurable.
2020-03-04 23:28:07 +01:00
dickmao e0aee15544
Bring ipython-notebook up to date. 2020-03-01 20:36:39 +01:00
Daniel Molina 09a9273e22
[julia] Remove warning about LanguageServer.jl not working in 1.0
Remove warning indicating that LanguageServer.jl is not working in
Julia version 1.0, because it was updated and that problem was fixed.
2020-03-01 00:22:14 +01:00
Lucius Hu 82e5387cd9
rust: Updated README for external dependencies
Instructoins on the following external dependencies required by certain
functions are added/updated to the README file:
- `cargo-edit`
- `cargo-audit`
- `rustfmt`
- `clippy`

Signed-off-by: Lucius Hu <lebensterben@users.noreply.github.com>
2020-03-01 00:16:35 +01:00
jr0cket 2a17228ef8
[clojure] Add goto end of line eval sexp
Clojure (CIDER) is missing the incredibly useful function that jumps to the end
of the line and evaluates the last s-expression.

This function is in Emacs Lisp major mode under `SPC m e $` and `SPC m e l`

The function `spacemacs/cider-eval-sexp-end-of-line` is a copy of
`lisp-state-eval-end-of-line` with the last line replaced to call the equivalent
cider function, `cider-eval-last-sexp`.

The same keybindings are added to the Clojure layer as used for elisp.

The keybindings follow the Spacemacs convention for evaluation, as defined in
https://github.com/syl20bnr/spacemacs/blob/master/doc/CONVENTIONS.org#evaluation

Resolves #4124
2020-03-01 00:14:32 +01:00
Koray Al 0c51514b56
[#1598] [mu4e] Fix purpose labels for mu4e buffers
When purpose mode is enabled, Spacemacs fails to assign correct mu4e buffers to
correct windows when we're in headers view and select an e-mail from the list.

Since `*mu4e-headers*` and `*mu4e-view*` buffers have the same purpose
name (`mail`), and `*mu4e-loading*` buffer is either `fundamental` (or with a
recent version of upstream mu4e `mu4e-loading-mode`) which has the purpose
`general`.

So what happens is, when we select an e-mail from the list, e-mail opens up at
the headers' window, and loading opens up in the lower window which should have
displayed the actual email content.

With this commit, there will be two purpose names which will prevent this issue
from happening.
2020-03-01 00:11:34 +01:00
leo3 2390c4ed69 Add layer music/pianobar 2020-02-27 21:53:37 -05:00
Lucius Hu 70efaaae59
[rust] Added key bindings for cargo-edit, cargo-audit and Clippy
This is a squashed commit it contains:
- Added new sections on `cargo-edit`, `cargo-audit`, and `Clippy`,
which are used for several key-bindings in this layer.
- Re-ordered the `Key bindings` section, added entries for new bidings,
and improved description.
- ~SPC m c a~ for =cargo add=
- ~SPC m c r~ for =cargo rm=
- ~SPC m c U~ for =cargo upgrade=
- ~SPC m c A~ for =cargo audit=
- ~SPC m c X~ is for =cargo run --bin= now, instead of =cargo run --example=,
which is bound to ~SPC m c E~
2020-02-26 16:40:12 +00:00
Zach Pearson 733a3a8199
Add option to hide version string in Spacemacs buffer. 2020-02-24 12:37:37 +01:00
syl20bnr 978be09f6b [base] Refactor keyboard macro key bindings 2020-02-23 09:42:20 -05:00
duianto dd8e611158
Replace obsolete lsp-prefer-flymake with lsp-diagnostic-package 2020-02-21 23:19:20 +01:00
duianto b2f2952848
[pdf] Fix pdf-view-jump-to-register
pdf-view-mode being evilified caused:
' (single quote) to be bound to: image-scroll-up
2020-02-20 23:03:38 +01:00
Maximilian Wolff 21a6a32891
Revise additions to treemacs documentation
Move changelog entry to general documentation change block
Reformat the documentation to increase clarity
2020-02-20 22:06:15 +01:00
Anton Chevychalov 0728c5d02a
Add docs about ace mode in treemacs
There is a popular question about openning file in exact window.
There is an ace mode for that, but it is not so clear how to use
it for new users.

That commmit add information how to use ace mode and how tweak it
based on information from https://github.com/Alexander-Miller/treemacs/issues/266
2020-02-20 21:51:56 +01:00
Cate B c001159718
[sql] Add sqlfmt-region command, bindings; enhance customize options
Enhances `sqlfmt` support in SQL layer.

`sqlfmt` was only being applied against the whole buffer, and did not allow
invocation against a specific region in the buffer. `sqlfmt` customize options
were not included under the `sql` group. It was not possible to control if
`sqlfmt` reused an existing error buffer or generated new ones.

- Added `sqlfmt-region` interactive command and binding under `sql-mode` keymap
  - `sqlfmt-buffer` calls into `sqlfmt-region` with `(point-min)` and
    `(point-max`)

- Added `sqlfmt` customize group as child to `sql` customize group

- Added `sqlfmt-reuse-error-buffer` option

- Updated `sql` layer documentation to reflect changes
2020-02-20 21:10:34 +01:00
Koray Al fbe6b907e2
[#13243] Fix keybinding issues with dropped notebook-multilang-mode
Also removed `ein:company-backend` during initialization since it does not exist
anymore.
2020-02-18 21:02:39 +01:00
Ignat Insarov d44522ee1d
Add a new binding for the Coq layer.
This binding toggles the electric terminator setting of Proof General.

Also describe the new binding in the README and add a note to the change
log.
2020-02-16 08:48:11 +00:00
duianto 30250403a2 Update changelog.develop
Added some missing thanks.
Added some line breaks to keep the lines under 80 chars.
2020-02-15 17:34:48 +01:00
Matthew Boston a844c06192 update link to plantuml reference guide 2020-02-15 17:19:03 +01:00
Steven Allen 36230346ea [eshell] Skip prompt text on insert
When entering insert mode, don't start editing in the middle of the prompt text.

That is, given:

~/foo/bar> some command
  ^            ^       ^
  A            B       C

Cursor A will jump to position C but cursor B won't.

Edit by duianto
This also stops the cursor from jumping to the end of the last line,
when entering insert state, from all but the last line in a multi line.

Example:
~/foo/bar>(+
1{cursor in normal state on the 1}
2)

Entering insert state: i

Before:
~/foo/bar>(+
1
2){cursor in insert state after the close parenthesis}

After:
~/foo/bar>(+
{cursor in insert state before the 1}1
2)
2020-02-14 13:09:29 +01:00
Ben Swift dd9b40b235
[Markdown] add keybinding for markdown-insert-kbd
There's no keybinding for markdown-insert-kbd alongside all the other
markdown-insert-* keybindings, this patch adds one using the same
convention (specifically xk).
2020-02-13 18:35:07 +00:00
Bruno Morais 3d597d8ccc
[deft] Added zetteldeft support 2020-02-13 18:26:38 +00:00
Jee L 36ad2b28d2
[Python][LSP] Change mspyls publish directory according to system type 2020-02-10 19:45:46 +00:00
Aaron Jensen 840b431cf6
configuration: fix redundant update checking
Fixes #13114
2020-02-09 19:23:19 +00:00
Muneeb Shaikh 0d7d8ce0ed
[themes][doom] Sync with updated list of doom themes
Added following themes:

* doom-acario-dark
* doom-acario-light
* doom-horizon
* doom-laserwave
* doom-manegarm
* doom-material
* doom-oceanic-next
2020-02-09 19:10:38 +00:00
duianto 96438694f4
[base] Add cl- prefix to letf and letf*
The cl package has been deprecated.

It had aliases for cl- prefixed commands without the cl- prefix.
Ex: letf or letf* instead of cl-letf or cl-letf*

On the `spacemacs-base` distribution, with the `ivy` layer.
When one tries to search with `SPC /`
(which calls `spacemacs/counsel-search`)

Then this error message is shown:
>spacemacs/counsel-search: Symbol’s function definition is void: letf*

It doesn't happen with the `helm` layer,
because it's search commands already has the `cl-` prefix.

There are also three instances of: `letf`
in the `spacemacs-editing-visual` layers functions:
- `spacemacs/toggle-centered-buffer` (`SPC w c c`)
- `spacemacs/toggle-distraction-free` (`SPC w c C`)
- `spacemacs/centered-buffer-transient-state` (`SPC w c .`)

Without the `cl-` prefix they show the error message:
>Symbol’s function definition is void: letf
2020-02-08 09:17:52 +00:00
Benjamin Hipple 6781dfe157
[nixos] Update recommended method for disabling nixos-company-options
Per discussion in #13164, we have a standard, consistent technique for doing
this across any layer. Provided that `global-company-mode` is not set, this
works as expected to disable company without requiring custom variables.
2020-02-08 09:05:44 +00:00
Seong Yong-ju ee5a5e8b73
Add LSP backend support for R
Change some leader keys for Julia, R, Inferior. Remove noweb bindings for Julia
and R since it no longer works. Add LSP backend support for R.
2020-02-08 08:02:46 +00:00
wangtianshu 38a9f7c395 [auto-completion] Don't install company-statistics unless necessary 2020-02-07 20:14:37 +01:00
Ag Ibragimov 7f92a4388d fix: ignore nil values in dotspacemacs-configuration-layers
otherwise it throws warnings when layers introduced imperatively, e.g.:

dotspacemacs-configuration-layers
`(
  ,(when (eq system-type 'darwin) 'osx)
  ,(when (eq system-type 'gnu/linux) 'exwm))
2020-02-05 20:54:13 +01:00
syl20bnr 51c7fb961b [default] Move ediff key bindings from SPC E to SPC D prefix
And add documentation
2020-02-01 16:27:44 -05:00
jr0cket 79842c89cf [Clojure] Sesman and missing eval / format keybindings
Added keybindings for the Sesman REPL session management commands to the Clojure
layer, following the Spacemacs keybinding conventions.
https://docs.cider.mx/cider/0.23/usage/managing_connections.html

Sesman has been a part of CIDER for many versions now and provides session
management for nREPL connections (in fact any connections).

Sesman keybinds are placed in the `SPC m c` menu, providing a cleaner separation
between sending code to the repl and session management.

See issue #12593 and PR #13140 which covers the background for the design of
these additional keybindings.

Formatting the region and defun keybinds have been added, along with formatting
for edn files.  Moved to `=` menu to match Spacemacs convention.

Evaluation up to point keybinding has also been added.

Documentation in the README has been updated to complete the description of the
existing Clojure layer, as well as including details specific to the new
keybindings.
2020-02-01 15:33:04 -05:00
syl20bnr f553b3622d Revert "[osx] use init instead of post-init for exec-path-from-shell."
This reverts commit 0141c804f0.

exec-path-from-shell is not used by Spacemacs anymore,
see https://develop.spacemacs.org/doc/DOCUMENTATION.html#default-behavior
2020-02-01 11:59:42 -05:00
syl20bnr 65b4cd9ed4 [changelog] Add mention about removed flow-type layer 2020-02-01 10:17:35 -05:00
duianto f467e5c6d0
Add SPC x d l delete-blank-lines
Bind `SPC x d l` to `delete-blank-lines` (default: `C-x C-o`)

If the cursor is on a blank line:
- with blank lines above or below, then they are reduced to only one.
- without blank lines above or below, then the blank line is removed.
2020-02-01 08:59:55 +00:00
duianto ad521fff5c
Spacemacs buffer in other window with prefix arg 2020-02-01 08:53:46 +00:00
duianto 4b451a5fe3
Fix void destructuring-bind after cl pkg deprecation
destructuring-bind is a macro in the deprecated package: cl

SPC-TAB calls: spacemacs/alternate-buffer
In the spacemacs-base distribution, it shows the message:
spacemacs/alternate-buffer: Symbol’s function definition is void: destructuring-bind

Also renamed three instances of destructuring-bind in the rirc layer.
2020-02-01 08:47:55 +00:00
duianto a771cca7ae
[haskell] Fix REPL stuck snippets
The snippets seem to have been accidentally changed in this commit:
a2de9a63af (diff-75e0388987cdf040d82762426e40e5a5R434)

where other instances of checking for a layer, were changed to check for a
package.

It doesn't work to check if the haskell package is used in the user config
section, because the haskell package hasn't loaded yet.

Reverting it to check if the haskell layer is used works.
2020-02-01 08:09:19 +00:00
Maximilian Wolff 7c6f1bebd4
Add missing changelog.develop entry and clean up installation instructions 2020-01-30 22:40:23 +00:00
wangtianshu 665c02e7f6
Replace org-toggle-latex-fragment with org-latex-preview 2020-01-30 21:54:26 +00:00
duianto c2e8a98641 Update changelog.develop 2020-01-30 17:56:58 +01:00
Maximilian Wolff f4051a2bbf
[elasticsearch] Revise documentation and add missing changelog entry 2020-01-27 23:03:02 +01:00
Hideaki Kawai 08442790cc [purescript] Add to spacemacs-indent-sensitive-modes 2020-01-26 17:59:20 +01:00
Keith Pinson 4ae7be5404 fix(org-present): exiting presentation always removes inline images
Spacemacs configures `org-present` to inline images while presenting. That much
makes sense. But it has a hook to turn them off unconditionally when exiting
presentation mode. This causes a problem if you just want images to show in and
out of presentation mode.

STEPS TO REPRODUCE
1. Create an Org file
2. Add a link to a file
3. Set `#+STARTUP: inlineimages`
4. `M-x org-present`
5. Exit presentation mode

EXPECTED
Because of `#+STARTUP: inlineimages` images are still inlined.

ACTUAL
The inline images have been removed upon exiting the presentation mode.

FIX
Check `org-startup-with-inline-images` on exiting presentation mode and only
remove the inline images if it is false.

TESTING
To ensure that this did not introduce a regression of the converse behavior, I
also tested with `#+STARTUP: noinlineimages`, and it still turned off the images
when exiting the presentation.
2020-01-26 17:21:07 +01:00
duianto 27178f23e9 Fix helm-spacemacs-help-faq, SPC h f
The function: helm-org-get-candidates was removed upstream.

Improvements:
Recenter the target candidate.

Reversed the helm headings list, to match the order of the
questions in FAQ.org, so that the Common questions are
listed first.

Removed the : (colon) after the heading: How do I
in FAQ.org, to match the other parent headings.
2020-01-25 17:37:47 +01:00
syl20bnr 52d1b0f323 Revert "[clojure] Add sesman keybindings"
This breaks Spacemacs convention:
https://github.com/syl20bnr/spacemacs/blob/develop/doc/CONVENTIONS.org#repls

Need to add session management under an unused prefix, I suggest SPC m S

This reverts commit e47494229b.
2020-01-25 10:17:08 -05:00
duianto 0b023bd764 [clojure] Fix typos 2020-01-23 12:10:37 +01:00
jr0cket e47494229b [clojure] Add sesman keybindings
Add Spacemacs keybindings to the Clojure layer for all the sesman functions.

Sesman has been a part of CIDER for many versions now and provides session
management for nREPL connections (in fact any connections).

Several keybindings relating to the use of a specific repl been migrated the
`e` evaluation menu and `es` sent-to-repl-buffer sub-menu, providing a cleaner
separation between repl connection and session management and interacting with a
specific repl.

Updated layer documentation and keybindings in README.org file.
Added changes to CHANGELOG.develop

Resolves #12593
2020-01-23 11:43:38 +01:00
duianto a574ccc2a7 Update changelog.develop 2020-01-23 11:42:10 +01:00
Muneeb Shaikh 0ab1e45fe4 [evilified-state] Map C-w to evil-window-map
Fix https://github.com/syl20bnr/spacemacs/issues/13197

Motivation: https://github.com/syl20bnr/spacemacs/issues/13197#issuecomment-577051372
2020-01-22 09:36:19 +01:00
syl20bnr 101c920dbc
Add key bindings to randomize word and lines in region 2020-01-20 11:26:14 -05:00
Richard Kim 278be41010 [helm] Created spacemacs/helm-dir-do-grep to fix issue #13167
This is used if someone does not have ag, pt, rgrep, etc.
2020-01-20 15:53:20 +01:00
wangtianshu 235ed43010 Fix ~SPC m ;~ binding 2020-01-20 15:41:20 +01:00
Seong Yong-ju 58279f89ea [treemacs] Add persp-mode integration 2020-01-20 14:35:45 +01:00
Joscha 099ead9b6a [haskell] Add history key bindings to haskell ghci repl
This commit adds the C-j, C-k and C-l bindings to haskell's ghci repl, according
to spacemacs conventions.
2020-01-20 13:23:44 +01:00
madand e1ad035513 Improve rainbow-identifiers experience for Elisp and CL
Make rainbow-identifiers not colorize special operators and macros, so they
always visually stand out. Rationale behind this change is that special
operators and macros in Lisp may be considered "syntax" elements, so it makes
sense to have them visually distinguished at all times.
2020-01-20 11:37:20 +01:00
Zach Latta 1d2a1fa6e4 Fix capitalization of GitHub
Change instances of "Github" to "GitHub".
2020-01-20 09:14:12 +01:00
Magnus Therning 3496f0c1f2 [persp][helm][ivy] project perspective and open dired
Add key bindings to the `SPC p l` persp switch project prompt:
- helm `C-d`
- ivy `d` in the `M-o` actions list

They create a new perspective with the project name
and open a dired buffer at the project root.

The suggestion to also add it to ivy was provided by nixmaniack.
2020-01-19 12:13:46 +01:00
ghost-420 3d39b98e92 [doc] Update Windows section
Suggest official Emacs.
2020-01-14 09:20:56 +01:00
CharlesHD bcc3f1292d [keyboard-layout] Quick Fix of 11954
Commented out broken evil-window :common bindings.

https://github.com/syl20bnr/spacemacs/issues/11954
2020-01-13 13:32:39 +01:00
lipengcheng 591ab10be2 [xclipboard] Add var for custom xclipboard command 2020-01-13 12:47:17 +01:00
Benjamin Hipple d4a27babf6 [nixos] add toggle for company-nixos-options
On some Nix setups, company completion via the Nix repl process can be extremely
slow and hang emacs. This commit adds an option toggle to disable it in the
`nixos` layer. The default behavior is unchanged.

Also updates the comment and license headers to be consistent with other layers.
2020-01-12 11:18:00 +01:00
Mpho Jele 593d4446bf [html] contract statement while staying on beginning of line
Moved cursor to beginning of line after calling:
spacemacs/css-contract-statement (SPC m z c)
2020-01-11 16:20:52 +01:00
Loys Ollivier 96ef7b23a2 [notmuch] rename require to 'ol-notmuch
org has changed its file naming for the notmuch add-on from
org-notmuch to ol-notmuch.
org-mode commit 499c0a50cc4b11e37b91374af23cb27ab8fc20d2.

Fix the require to reflect this change.

Signed-off-by: Loys Ollivier <loys.ollivier@gmail.com>
2020-01-09 14:03:33 +01:00
duianto 692cc886b2 Update changelog.develop 2020-01-08 18:26:19 +01:00
duianto d2d5a649ab [java] Add SPC m a prefix name: actionable 2020-01-04 15:50:22 +01:00
duianto 4c7e1954c5 [java] Fix key binding: SPC m m t C-a
SPC m m t C-a was bound to SPC m m t C - a
2020-01-04 15:47:24 +01:00
Ivan Yonchovski 3771759ddb [java][lsp] Minor cleanup in lsp-java
- Fixed setting dap-java shortcuts - ATM the shortcuts were not enabled due to
the fact that dap-mode configuration was overriding them since it was running
after this piece of code
- removed configuration code about lsp-java since it was either about
missing properties or about setting defaults already set by lsp-mode/lsp-java
(e. g. lsp-eldoc-render-all is now nil by default)
2020-01-04 12:27:11 +01:00
William Blasko a337d55102 Add LSP docs for JavasScript to README.org 2020-01-04 09:23:04 +01:00
Ullas Holla 8e66bf36df Add missing apostrophe in DOCUMENTATION.org 2020-01-04 09:01:57 +01:00
Maximilian Wolff 6373bdae6b
Add missing changelog.develop entry 2020-01-02 23:32:31 +01:00
Mpho Jele 488d6916e9
Fix erc-log transient state - change it to be in erc-view-log-mode
With the fix I also added a utility function to open a erc log file/buffer from
a erc chat/channel buffer.
2020-01-02 23:05:12 +01:00
duianto 71d4e15e67 Update changelog.develop 2019-12-28 20:34:38 +01:00
Grant Shangreaux 2e30b9bb09 [rust] remove compilation buffer string match on rust-quick-run 2019-12-28 15:44:42 +01:00
madand 081d8f29d4 [version-control] Use :toggle to avoid installation of unused packages
Usage of the `:if` keyword with `use-package` does not prevent Spacemacs form
installing the package, it only prevents the loading in run-time. This commit
employs the `:toggle` feature of the configuration layer system to prevent the
unneeded packages from being installed in the first place.

This further improves upon 31324f68bb
2019-12-27 17:39:51 +01:00
jr0cket b0d15851d9 add details of restricted functions
Detail how to use the layer variables to make use of restricted functions and
limit their scope to within a layout.
2019-12-26 18:22:53 +01:00
madand 37fdd1ef87 Toggleable hint for the Scrolling Transient State (~SPC N~)
By default the full hint is shown, which is consistent with the behavior before
this commit.
2019-12-25 08:20:50 +01:00
duianto d0d460460c Update changelog.develop
Removed a duplicate line
Added some emphasis around key bindings/commands
Sorted some "Thanks to" names alphabetically
2019-12-24 10:58:25 +01:00
Ilia Kurenkov 629d8bd126 Fix docstring typo 2019-12-24 10:36:24 +01:00
Grant Shangreaux 59976dc688
Fix: broken rust-quick-run command
removing the `lexical-let` caused the intended closure to be invalid. the
filename being compiled was nil when the compilation-finish-function was
run.

this adds a special var to hold the temp file being compiled instead, and
tries to narrow down the compilation-finish-function to only run when the
compilation buffer includes the "rustc -o /tmp" regexp
2019-12-23 14:22:32 +01:00
Mpho Jele 08d19389cc Frame title setting doesn't need to depend on environment (gui/cli)
Enables frame titles in gui emacsclient frames.
2019-12-22 16:52:41 +01:00
Seong Yong-ju 82d4df4b0f
Fix key bindings in Ruby layer 2019-12-21 23:36:36 +01:00
Maximilian Wolff ffccb17426
Revise dart layer
I have:
- Revised the documentation to be more clear about the possible backends
- Simplified the lsp setup code
- Removed redundant loading of company-lsp (is done by lsp-mode already)
- Made lsp the default backend for dart and mentioned that the analyser is
deprecated
2019-12-20 23:56:10 +01:00
duianto 76ce0ac03e
[org] Un-evilify org-present-mode
Because [escape] was bound to evil-evilified-state
after exiting org-present-mode.
2019-12-20 19:06:34 +01:00
duianto c5c1e31675
Fix searching in the helm-find-file actions 2019-12-20 18:53:25 +01:00
duianto 68a2f37670
Fix helm-find-files-edit action `C-c C-e` 2019-12-20 18:39:11 +01:00
Damien Picard 473d019b47 Fix keys not remapped by keyboard-layout
keyboard-layout was broken by commit da80634, which replaced cl by
cl-lib. Some function calls weren’t replaced. There may be old calls
remaining in other layers.
2019-12-18 15:02:42 +01:00
Nikita Leshenko aaa11a6823 Convert `case' to `cl-case' to fix cl-lib related errors
Broken since PR #13059
2019-12-18 12:08:05 +01:00
Maximilian Wolff 153990bbc8
Add doc for `org-table-field-info` 2019-12-16 12:32:42 +01:00
Maximilian Wolff fabbb5bf73
Update changelog and format new code to be more elisp like 2019-12-15 22:27:24 +00:00
Kalle Lindqvist 1095d3b7d3
shell: enable prompt autojump when using smart-eshell 2019-12-15 22:01:41 +00:00
Maximilian Wolff 42d2433fc6
Revise osx layer
Add missing changelog entry
Reformat package file and update some styles according to the current standard
2019-12-15 21:53:18 +00:00
Dominik Schrempf b29f72b43a
Mu4e add 'gu' key binding to go to urls. 2019-12-15 21:46:48 +00:00
Maximilian Wolff 2c986df67f
Revise yaml layer
Simplify lsp setup
Implicitly load lsp layer if the lsp backend has been activated in the layer
Add missing changelog entry
2019-12-15 21:36:43 +00:00
Seong Yong-ju d3fda25e41
Add LSP backend support for YAML 2019-12-15 20:58:26 +00:00
Maximilian Wolff 29ecf6c97b
Update changelog.develop 2019-12-15 20:49:01 +00:00
Maximilian Wolff 6b47985e28
Update changelog.develop 2019-12-15 15:32:51 +01:00
madand 194de4d73a
[ivy] Fix visual selection expansion across the buffer on `SPC s S`
and `SPC s B`

When one invokes `spacemacs/swiper-region-or-symbol` (`SPC s S`) or
`spacemacs/swiper-all-region-or-symbol` (`SPC s B`) with active visual selection
(transient-mark-mode), the selection expands over the buffer while one jumps
around with swiper. Thus I believe it is appropriate to deactivate visual
selection within the above command.

Since the mentioned commands both use identical code for getting the text to
operate on, I moved that code into a separate function.
2019-12-15 15:17:21 +01:00
madand 57e6849c68
[ivy] `SPC h m`: fallback to `woman` on Windows
`man` command displays output from the external program with the same name,
so it will generally fail to work on Windows.

`woman` is a pure elisp parser for manpages, so it will work on Windows. But
`woman` lacks colorizing of manpages, so we only use it as a fallback.
2019-12-15 15:06:26 +01:00
madand 344e6e4a1d
Added support for native fill column indicator in Emacs 27+
`display-fill-column-indicator-mode` is a new native fill column indicator
mode implemented on C-level, thus has almost no performance penalty in contrast
with the legacy `fci-mode` implemented in elisp.

This commit implements conditional activation of the mentioned mode on
Emacs 27+. `fci-mode` is still available for previous Emacs versions.

Resolves #12884
2019-12-15 15:03:27 +01:00
lin.sun 7f6b4205cb
Automatically choose the `lsp' as python-formatter backend when lsp-layer is enabled. 2019-12-15 14:29:33 +01:00
Max Willsey e9ac45af30 [latex] Fix README to say auto-fill on by default. 2019-12-15 11:01:17 +01:00
duianto 5111de7d1a Update changelog.develop 2019-12-15 08:58:31 +01:00
Maximilian Wolff a1decacaa2
Update changelog.develop 2019-12-14 20:46:27 +00:00
Maximilian Wolff d70282c46a
Update changelog.develop 2019-12-14 20:19:28 +00:00
Maximilian Wolff efe39163df
Revise quickurl layer
Added undocumented keybindings to README.org
Moved bindings from top level to application specific
Fix some smaller documentation issues
Added "quickurls" file to .gitignore
2019-12-14 20:13:01 +00:00
Spenser Truex 4645430084
Add quickurl layer on SPC Q. 2019-12-14 19:59:25 +00:00
Nick Anderson a51b08133d Added keybinding to export org to mail from buffer to subtree
~org-mime-htmlize-subtree~ as has the ability to set the email =To=, =From=,
=Subject=, =CC=, and =BCC= fields based on properties. If you commonly capture
and email the subtree being able to bake these settings into your template is
very convenient.

https://github.com/org-mime/org-mime#m-x-org-mime-org-subtree-htmlize

~org-mime-org-subtree-htmlize~ is similar to ~org-mime-org-buffer-htmlize~ but
works on subtree. It can also read subtree properties =MAIL_SUBJECT=, =MAIL_TO=,
=MAIL_CC=, and =MAIL_BCC=. Here is the sample of subtree:

  ,,* mail one
   :PROPERTIES:
   :MAIL_SUBJECT: mail title
   :MAIL_TO: person1@gmail.com
   :MAIL_CC: person2@gmail.com
   :MAIL_BCC: person3@gmail.com
   :END:
  content ...
2019-12-14 05:43:53 +01:00
madand 239f60a65f [ivy][docs] Add `SPC h m`: search available man pages
This keybinding is documented in DOCUMENTATION.org, yet was missing in ivy layer.
2019-12-10 22:54:40 +01:00
Miloš Mošić e9c80d7d80 Update Vue layer README to fix the link formatting 2019-12-10 13:09:12 +01:00
duianto 085ae8af33
[html][vue] Improve Transient States
Add a full/minified transient state toggle.

Grouped backend transient state key bindings by column.

Moved the html/init-web-mode :init section before the :config section.
2019-12-08 11:13:37 +01:00
duianto a52fc88b16
Fix SPC-TAB in spacemacs-base distribution
Problem:
The variable spacemacs-layouts-restrict-spc-tab is defined in:
~/.emacs.d/layers/+spacemacs/spacemacs-layouts/config.el
But the spacemacs-layouts layer isn't loaded by default in spacemacs-base.

Solution:
Check if the variable is bound.
2019-12-08 11:12:35 +01:00
duianto e0a055ca60 Update changelog.develop
- Reordered the New layers under their correct parent directory:
  layers/+<directory>
- Removed a duplicate entry for: multiple-cursors
- Removed the now empty Others heading
2019-12-08 08:05:53 +01:00
Thanh Vuong 088a036979 Vue layer
Thanks to sei40kr, duianto and others involved in
https://github.com/thanhvg/vue/issues for contribution
2019-12-07 19:24:31 +01:00
Maximilian Wolff 4e7a36b72e
Revise kubernetes layer
Add missing changelog entry
Replace license header with standard version
2019-12-07 00:37:13 +01:00
Johnson Denen 5485099263
Add helpful layer 2019-12-06 23:27:43 +01:00
Maximilian Wolff db005ca406
Update changelog 2019-12-06 20:24:27 +01:00
Brian Wignall 4df6c9035f
Fix typos 2019-12-05 22:23:04 +01:00
duianto 979f4db640
[helm] Fix searching in projects with C-s from SPC p p
Fixes #11878

The issue seems to have been caused by helm making sure that
the functions that are called with: helm-exit-and-execute-action
are actions.

Ensure action is available before running it
d6dfb8f1e3
2019-12-05 22:17:11 +01:00
milserk 9f5e76e091 Fix typo "verbose" -> "verbatim"
The description for `SPC m x v` reads "make region verbose." However, this keybinding actually invokes `spacemacs/org-verbatim`.
2019-12-05 06:35:53 +01:00
Arjan Singh 4e9d62b80d fix(+lang/typescript): correct readme typos 2019-12-05 06:30:24 +01:00
duianto e863b6251e
[julia] Limit evil-surround redefinitions to julia-mode
problem:  The julia layer redefines evil-surround `b` globally to:
          begin <x> end
solution: Limit the redefinition to julia-mode buffers.
2019-12-03 22:16:17 +00:00
duianto ea11a256fd
Replaced obsolete function doom-modeline-init
doom-modeline-init was marked as obsolete in version: 1.6.0.
Add new mode: doom-modeline-mode.
868f1bb00b

The doom-modeline package is currently at version: 2.6.2.
2019-12-03 21:58:45 +00:00
duianto 623ca354fe
Fix home buffer version and banner
- Removed the first line deletion.
This required the banners to have an empty first line.

- Removed the empty first line from the banners.

- Made sure that there is a single empty line between:
  - The Version and Banner.
  - Banner and Buttons ([?] [Homepage] ...).
  - Version and Buttons (when the banner is hidden).

- Reordered the backend version insertion function call
to match the frontend Spacemacs buffer order.
  - version
  - banner
  - buttons

Before it added:
- the banner
- then the buffers first line was removed
- then the version was added to the first line
- then the buttons were added at the bottom of the buffer
(there are more things added after the buttons,
but they haven't been changed by this commit).

- Removed the version insertion call in:
core/core-spacemacs-buffer.el

The changes above caused the version to appear twice
in the Spacemacs home buffer on startup.

I'm not sure if it has/had other uses.

This seems to be where it was first added to:
core-configuration-layer.el:
core: restore default mode line in home buffer
77161bd591

It was slightly modified in this commit:
core: defer distro insertion in home buffer
cd50d9c069

Here it was joined with the banner:
Fix version injection in home buffer
  Don't inject version if banner is nil
a764eb4eb9

core: condensed versions into one string in left-hand side
  spacemacs-version@emacs-version (distribution)
627e934453

- I had not seen that the version was joined with the
banner on purpose until now.

It seemed useful to still be able to see the versions
if one just wanted to hide the banner.

Therefore I opened this PR (it's been cherry-picked):
Uncouple version from banner in spacemacs buffer #11901
https://github.com/syl20bnr/spacemacs/pull/11901

If there's a good reason to combine them again,
then the changes can be reverted.
2019-12-03 20:44:22 +00:00
James Gough e6997638e7
Set VIRTUAL_ENV environment variable when switching to new pyenv
This environment variable is used by python LSP to determine
the pyenv virtual environment to use. When switching to a different
project using projectile 'switch-to-project', it should only be
necessary to restart the LSP server but a restart will only
work if this VIRTUAL_ENV changes value too.
2019-12-03 20:37:43 +00:00
duianto dd070e3b75
[semantic] Moved toggle keys to the layer
SPC T S and SPC T C-S showed void variable
semantic-stickyfunc messages when the semantic
layer wasn't installed.
2019-12-03 20:24:58 +00:00
Muneeb Shaikh f3f2db8315 Update the list of solarized themes
Upstream has added a blend of solaized themes with different color palettes.
2019-12-02 18:41:23 +01:00
Seong Yong-ju b26430df2a
Add LSP backend support for Dockerfile 2019-12-01 00:55:53 +01:00
lin.sun cf376520ad
[lua] Add LSP support 2019-11-30 22:55:35 +01:00
Rodolfo Hansen 2d154bec8e [scala] sbt-supershell kills sbt-mode 2019-11-28 18:41:08 +01:00
Ivan Yonchovski 31a3449fca Add /** */ smartparens pair for java 2019-11-28 18:14:37 +01:00
Ivan Yonchovski bc55d9b6fd Make sure eldoc info is not removed when you switch to insert mode
- This will prevent jumping of eldoc box when you switch to insert mode.
2019-11-27 21:30:29 +01:00
Spenser Truex cab1e69585 rectangles: R; kmacros: km; timeclock: tt; ediff: E; insert-buf: ib 2019-11-26 13:56:44 +01:00
duianto 8fcc9d8490 [multiple-cursors] Remove layer keys. Added upstream
Removed the following key bindings from the multiple-cursors layer:
grI  evil-mc-make-cursor-in-visual-selection-beg
grA  evil-mc-make-cursor-in-visual-selection-end
because they have been added upstream in the evil-mc package.

Changed the changelog.develop entry from saying that they were
added to the layer, to say that they were documented in the layer.
2019-11-25 17:45:01 +01:00
William Casarin 6e57bdc5c6
[notmuch] restore original movement keybindings
not sure why these we rebound...

Signed-off-by: William Casarin <jb55@jb55.com>
2019-11-24 21:25:34 +00:00
William Casarin 2c86f701c5
[notmuch] add next/prev matching message binding
These were lost in the evilfied map when in notmuch-tree mode

Signed-off-by: William Casarin <jb55@jb55.com>
2019-11-24 21:25:34 +00:00
William Casarin 117b6823db
[notmuch] open github patches fullscreen
It's a bit annoying when you have to maximize it each time

Signed-off-by: William Casarin <jb55@jb55.com>
2019-11-24 21:25:33 +00:00
duianto 9e184994ad Hide spacemacs// command prefixes in which-key
spacemacs/ was already hidden, but commands starting with
spacemacs// showed a leading slash: /<command name>
2019-11-24 22:14:02 +01:00
madand fd184bb94f Fix spacemacs/counsel-search with ag and rg
The commit 9c613b8 introduced a regression for ivy users that use ag or rg as
the search tool. It made `C-c C-e` and `F3` keybindings unavailable, and thus
making it impossible to make multi-file edits.

Partially fixes #12838
2019-11-24 22:07:17 +01:00
Spenser Truex 5d1cf35e48 [gnus] Add bindings for slave/unplugged startup. FLAME ON.
Co-Authored-By: duianto <otnaiud@gmail.com>
2019-11-24 17:08:22 +01:00
Maximilian Wolff dd7a5d98be
Revise helm recompile package action and bind recompile-elpa
The newly introduced function to compile an elpa package
was very much redundant with the existing recompile-elpa function.

I have adapted recompile-elpa so that it can be used for the helm action too.

In addition I have bound recompile-elpa to `SPC c C-c` to allow users to
easily recompile their entire elpa directory if the need arises.

I have also removed the error handling in the helm action in favor of
standard error reporting via the *Compile-Log* buffer.
2019-11-24 02:07:15 +01:00
duianto 331031b60e
[mercury] Rename layer: mercury-layer to mercury
Thanks Miciah for the suggestion.
2019-11-23 22:49:45 +01:00
duianto 3a51e00a40
Add dired evil search next/previous key bindings
The search next/previous commands are different
because of the `evil-search-module' values:
vim    = evil-search
hybrid = isearch

- With the =vim= editing style in =normal= state:
  - ~n~ =evil-ex-search-next=
  - ~N~ =evil-ex-search-previous=
- With the =hybrid= editing style in =normal= state:
  - ~n~ =evil-search-next=
  - ~N~ =evil-search-previous=
2019-11-23 22:37:41 +01:00
Benjamin Hipple 2880d44356
gitignore: ignore org-journal.cache file
The org-journal package from the org layer is writing this cache file to more
quickly compute the next journal date. While it's configurable via
`org-journal-cache-file`, by default it goes into the `user-emacs-directory` and
results in a dirty git status on spacemacs.
2019-11-23 22:22:03 +01:00
Maximilian Wolff 98905f098a
Update changelog 2019-11-23 22:10:58 +01:00
chysi fe028e9887
Update hy layer to new hy/python modes
Replace old "hy-shall-start-or-switch-to-shell" with "run-hy"
Expand pipenv to hy-mode
2019-11-23 21:20:16 +01:00
Tommy Groshong 740e6a2a3c
Fixes function name bug in react layer fmt-on-save 2019-11-23 20:51:57 +01:00
Maximilian Wolff 42879fccc1
Update changelog 2019-11-23 20:43:47 +01:00
Alexander Miller 3407ecde6b
[treemacs] Deprecate treemacs-use-collapsed-directories.
Also contains below squashed commit
[treemacs] Make sure width (un)locking message won't appear on every start.
2019-11-23 01:40:14 +01:00
Maximilian Wolff 1b2ee31df4 Update changelog 2019-11-23 00:11:59 +01:00
Seong Yong-ju 889a40cdc3 Add eslint_d support for JavaScript, React, TypeScript modes 2019-11-22 18:03:42 +01:00
duianto 471feb2e00 Update changelog.develop 2019-11-22 17:25:14 +01:00
Brooklyn Zelenka df34916300 Add solidity layer 2019-11-22 17:16:54 +01:00
duianto 8bb98bcffa [multiple-cursors] Add evil-mc keys, cursors from selection
Added evil-mc make cursors from selection key bindings:
grI calls evil-mc-make-cursor-in-visual-selection-beg
grA calls evil-mc-make-cursor-in-visual-selection-end
2019-11-22 07:34:00 +01:00
duianto 034ada3981 Update changelog.develop 2019-11-22 05:45:27 +01:00
duianto ccdfca539d Update changelog.develop, java section
Added an improvements section.
Added missing thanks to <author> changelog entries.
Emphasized some names.
2019-11-20 18:26:52 +01:00
Ivan Yonchovski 38838cce9a Fix handling of java-backend
- Without this line the lsp-java package won't be enabled when java-backend is
nil and lsp layer is present
2019-11-20 18:12:48 +01:00
Jake Romer e96b899daf Set doom-modeline-display-default-persp-name 2019-11-20 12:14:39 +01:00
duianto a2fbb3d94a Update changelog.develop 2019-11-18 15:44:29 +01:00
Seong Yong-ju 777d685c46 Fix spacemacs/kill-other-buffers to kill only buffers in the persp 2019-11-17 18:20:12 +01:00
Seong Yong-ju 2e7a5c5929 Do not use go-eldoc for LSP backend 2019-11-17 16:45:39 +01:00
lovrolu bc22a259e8 Don't assume the previous binding was evil-insert-digraph 2019-11-15 20:05:23 +01:00
Seong Yong-ju 6556cfc80d [multiple-cursors] Improvements
Fixed evil-mc-mode won't start automatically
Moved evil-mc key bindings to evil-mc-key-map, not global keymap
2019-11-15 13:49:02 +01:00
Nam Nguyen 22d200fbab Update YAML layer docs to include the yaml-yamllint flycheck checker. 2019-11-14 13:13:58 +01:00
wgjak47 58ce74d80d [chinese] Add fcitx5 support 2019-11-12 15:44:17 +01:00
syl20bnr e62a1482f6 Udpate CHANGELOG.develop 2019-11-09 09:41:08 -05:00
syl20bnr d536b36d15 [c-c++] C/C++ layer refactor to support multiple backends 2019-11-09 09:40:56 -05:00
cormacc 0a39263e2d Added clangd support. Separated lsp server selection from backend.
<<Amendment 1>>
Fixed clangd executable when c-c++-lsp-executable not set

<<Amendment 2>>
Rebased. Updated DAP configuration for compatibility with upstream dap layer
changes (specifically per-mode keybindings).

<<Amendment 3>>
Fixed DAP configuration.
Correction: declare-layers -> declare-layer-dependencies

<<Amendment 4>>
...ahem...
Fixed DAP configuration (missing '/' in func name)
2019-11-09 09:40:33 -05:00
Nam Nguyen 729ad60b28 Support relative virtualenv path in .venv file for Python layer 2019-11-08 23:28:30 +01:00
duianto d125f2abd2 Fix void counsel-find-file-map
When the ivy package is installed without counsel,
and (require 'ivy) is called, then an error message
appears: void-variable counsel-find-file-map
2019-11-08 11:23:10 +01:00
Ag Ibragimov 08fdb02d7d [shell] Add vterm key bindings
- ~M-n~     =vterm-send-down= (next command)
- ~M-p~     =vterm-send-up=   (previous command)
- ~M-y~     =vterm-yank-pop=  (previous paste)
- ~M-/~     =vterm-send-tab=  (hippie expand)
Evil insert state:
- ~C-y~     =vterm-yank=      (paste)
Evil normal state:
- ~p~       =vterm-yank=      (paste)
- ~u~       =vterm-undo=

vterm: more keys
2019-11-06 12:01:31 +01:00
Hong Xu 9c613b8770 Optimize =spacemacs/counsel-search= for =ag= and =rg=
Use =counsel-ag= and =counsel-rg= when possible. They have more
optimizations, such as switching directory, the ability to turn
on and off casefold, etc. Counsel will also carry future
improvement with these two functions, and spacemacs will
automatically benefit from it.
2019-11-05 16:40:27 +01:00
duianto 7af300a225 Add visual line navigation keys, up and down
up   evil-previous-visual-line
down evil-next-visual-line
2019-11-03 22:44:27 +01:00
Miciah Masters a55df96caa [core] Environment variable caching fixes
Fix several problems with environment variable caching.

First, if a shell printed extra output besides the command output,
spacemacs//init-spacemacs-env included the extra output in .spacemacs.env.
For example, a login shell could print a motd, which would be erroneously
included in .spacemacs.env.  To avoid this, spacemacs//init-spacemacs-env
now redirects the command output to a temporary file and then reads the
file.

Second, spacemacs//init-spacemacs-env sorted lines using the entire
"name=value" string for each line whereas the correct behavior is to sort
only on the "name" part.  To fix this, spacemacs//init-spacemacs-env now
uses sort-regexp-fields with an appropriate regexp to match the "name" part
and ignore the "value" part.

Third, although load-env-vars-set-env added all PATH settings in
.spacemacs.env to exec-path, it set PATH to the first PATH setting in
.spacemacs.env.  Now load-env-vars-set-env sets PATH from exec-path so that
it will reflect that combined value.

Fourth, load-env-vars-set-env set exec-path and PATH without consideration
to the operating system's directory separator.  Now load-env-vars-set-env
converts backslashes to forward slashes when adding path entries to
exec-path and converts forward slashes to backslashes when setting PATH on
platforms that use backslashes.

Fifth, load-env-vars-set-env now normalizes exec-path by deleting trailing
slashes from path entries, converting drive letters in path entries to
lower-case, and deleting duplicate path entries.

Sixth, Spacemacs no longer uses exec-path-from-shell, but a changelog entry
said that it did.  This commit corrects the changelog entry, deletes
another outdated entry, and merges two entries that covered the same
functionality.

Finally, this commit corrects several typos and tries to improve wording in
several docstrings, messages, and comments.

* CHANGELOG.develop: Delete mention of exec-path-from-shell, which
Spacemacs no longer uses by default.  Delete mention of
dotspacemacs-import-env-vars-from-shell and
dotspacemacs-import-env-vars-shell-file-name, which no longer exist.
Merge entries about synchronizing environment variables.
* core/core-env.el (spacemacs-ignored-environment-variables): Fix typos and
mention that the strings are regexps that are matched against the names of
environment variables.
(spacemacs//init-spacemacs-env): Use a temporary file rather than standard
output in order to avoid getting motd and other noise.  Sort lines using
only environment variables' names, not their values.  Better describe the
behavior with respect to spacemacs-ignored-environment-variables, duplicate
settings, and PATH.  Try to make wording clearer.
(spacemacs/edit-env): Fix typos in the docstring.
* core/libs/load-env-vars.el (load-env-vars-set-env): Fix typos in the
docstring.  Delete trailing slashes from path entries in exec-path, convert
drive letters to lower-case, delete duplicate path entries, and convert
backslashes to forward slashes when setting exec-path.  Set PATH from
exec-path, converting forward slashes to backslashes on platforms that use
backslashes.
2019-11-03 22:25:05 +01:00
duianto 4c728f041a Update file renaming, handle same new and old name
problem:
renaming a file to it's current name, results in the message:
"File 'current-name' successfully renamed to 'current-name'"

solution:
when the new and old names are the same, show a rename failed message, and call
the rename function again
2019-11-03 21:03:10 +01:00
duianto 8fbdd61e1e Update renaming, move and/or rename messages
problem:
the rename command shows the same message:
"File 'old-file-name' successfully renamed to 'new-file-name'"
(without the directory path) for all three file operations:
move, rename and both move & rename

solution:
show messages that fit the rename operation,
and align the from and to path/file names,
to make it easier to see what changed.

And use the same message format when renaming a buffer.
2019-11-03 20:40:56 +01:00
Ivan Yonchovski 06cf8e3842 lsp layer must depend on yasnippet
- if this line is missing yasnippets might not be loaded because lsp-mode might
load the snippets before the auto-completion layer kick in.
2019-11-02 13:39:48 +01:00
jpathy 72e49c6f2b No need for hook. It gives error as 'ediprolog is not defined. 2019-10-31 10:41:58 +01:00
Hong Xu 383da46e38 Keep ~C-h~ binding in =counsel-find-file-map= only for hjkl navigation
It has already been bound to <kbd>C-backspace</kbd> and
<kbd>C-delete</kbd>. Such an
additional binding is redundant (if hjkl navigation is not used) and
makes the original <kbd>C-h</kbd> binding
(help) unavailable.
2019-10-30 18:18:54 +01:00
Matt Kramer e4c8cef412 Add toggle visual-line-navigation-globally 2019-10-29 18:19:05 +01:00
duianto 5bcc96e9a9 [helm] Add helm-ls-git-ls to SPC g f f
The HELM Lsgit buffer has three sections:
- Git status (files: modified, deleted, etc.)
- Buffers in git project
- Git files
2019-10-28 21:26:04 +01:00
duianto 57721d8e76 Update changelog.develop git section 2019-10-27 22:58:31 +01:00
duianto 0ca2d8558e Update changelog.develop 2019-10-27 13:00:42 +01:00
Hong Xu cff6b47e6f Set counsel-find-file-at-point to t by default.
This enables better auto completion of =counsel-find-file=.
2019-10-27 05:06:02 +01:00
Muneeb Shaikh 11b258c71c remove leftover git conflict marker 2019-10-25 23:41:37 +02:00
Guido Kraemer 4e57ebe42b [julia] Load lsp-julia from melpa, etc.
Loaded lsp-julia from melpa

And fixed #12852
spacemacs/go-setup-backend was incorrectly added to the hook:
julia-mode-local-vars-hook
The correct function is now added: spacemacs/julia-setup-lsp

correct a tick
2019-10-24 20:36:01 +02:00
Didier A 58dcd6320b [clojure] Added support for joker linter and having mutliple active linters
The variable clojure-enable-linters can now be set to a list of linters:

'(clj-kondo joker)
  or
'(joker squiggly)
  or any other combination of the available linters.

In which case, all linters in the list will be active if they are
available to be. In that flycheck is configured so that each linter
in the list has as next-checker the next linter in the list.

The variable can also now be set to:

'joker

If only the newly added joker linter should be used.

This will pull down flycheck-joker and add Joker as a checker for
Clojure modes.

--

Implementation Details

The way it works is that for each Clojure linting mode, clj, cljc,
cljs and edn, a primary linter is chosen based on the order the
user specifies in clojure-enable-linters which support that mode.
It is made the primary linter for flycheck to use by being promoted
to the front of the flycheck-checkers list. All other linters specified
by the user which the mode also supports get added to it as a
next-checker.

Tested with clj-kondo, joker and squiggly. The only issue I saw was that
the way flycheck-clojure works, and the way I currently have setup the
logic for multiple checkers mean that we can't add to a mode multiple
checkers for the same linter. flycheck-clojure has eastwood, kibit and
core.typed. If you have it configured to use eastwood linter, then it
will all work, as eastwood gets added as the next-checker. But if you
have it disabled in flycheck-clojure, there won't be any
flycheck-clojure linters to activate. I'm not sure as of now how to best
support that. Ideally, we would not clubber linters into a single packge
like that, and so the layer would have instead of squiggly: eastwood,
kibit, core.typed. But that's not how flycheck-clojure works. Future
commit might be able to do something smarter about this.
2019-10-20 00:23:58 +02:00
duianto 1de8157a5c Unfold org headings from helm-ag and magit
Unfold org headings to a target line when opening a .org file from:
helm-ag, magit diff or blame buffers
2019-10-19 23:47:45 +02:00
Matthew Leach ae5ed6afda [gitignore] ignore bbdb file
Ignore the BBDB file as by default it is stored in ~/.emacs.d.
2019-10-19 23:37:49 +02:00
duianto a7d45a5221 [ivy] Fix spacemacs/layouts-ts-close-other
Problem: It called: (spacemacs/helm-persp-close)
Solution: Call (spacemacs/ivy-spacemacs-layout-close-other) when ivy is used.
2019-10-19 23:20:55 +02:00
duianto 86c4ca2133 [ivy] Add counsel colors and faces key bindings
SPC C e calls counsel-colors-emacs
SPC C f calls counsel-faces
SPC C w calls counsel-colors-web
2019-10-19 23:13:35 +02:00
br3athein e528c6b038 shell: Set initial shell state better 2019-10-19 22:58:22 +02:00
br3athein 72844d2ae9 shell: Tell vterm to respect `shell-default-term-shell` setting
Effectively, this forces `vterm` to spawn a shell set in a
`shell-default-term-shell` variable i/o default "/bin/bash" - just like
other shells from `shell-pop` do.
2019-10-19 22:21:05 +02:00
smile13241324 9c2194434a Add missing entry to CHANGELOG.develop 2019-10-19 21:41:35 +02:00
duianto e96f0adfdd Fix C-k in company with tooltip
Got the idea for the fix from this comment:
https://github.com/expez/company-quickhelp/issues/17#issuecomment-526783169

I simplified it to only un/define C-k, since C-j worked without the fix.
2019-10-19 19:42:21 +02:00
Martin Račák 320504dfc1 Fix GNU Global install instructions for macOS
Original command throws error. Previously optional features are now enabled by
default.
2019-10-19 15:36:02 +02:00
kalium 1ee7a9a640 Update NixOS layer banner
The NixOS logo has changed since the NixOS layer was made. This commit
replaces the layers banner with the current official NixOS logo.

Source of the new logo: https://github.com/NixOS/nixos-artwork/tree/master/logo
2019-10-19 11:55:56 +02:00
Miloš Mošić b9f3ed61f4 [elixir] Enable evil-matchit in elixir mode 2019-10-19 10:47:28 +02:00
duianto a1db805e5a Update changelog.develop 2019-10-19 00:48:28 +02:00
Gia Thanh Vuong 18715b872b bind c-ret to cider-repl-newline-and-indent in repl
For evil insert mode
2019-10-19 00:32:51 +02:00
Hong Xu 301d867aff tags-table-mode should be in spacemacs-large-file-modes-list
It is light-weight and it is common that tags are large.
2019-10-19 00:20:21 +02:00
alex argunov 92b7b65d13 Add available formatters to typescript readme 2019-10-18 22:39:44 +02:00
Tianyi Wang 8d474b1e10 [spotify] Add notes for ivy search 2019-10-18 22:27:31 +02:00
Zach Pearson ef1cecce01 Add a way to start an EIN Jupyter server from Spacemacs's UI 2019-10-18 20:59:09 +02:00
Aaron Jensen 1bd3777006 Fix tide with tsx files
This was broken in
ac30247811
if you do not specify a backend explicitly
2019-10-18 20:36:05 +02:00
Tianyao Chou 06786b4e66 Add company-box and basic setup
add auto-completion-enable-help-tooltip support

add auto-completion-use-company-box option and update document

add company-box config source url, remove empty line and join single line parenthesis

hide company-box mode line

update CHANGELOG.develop

hide doc popup when selection changed

add all-the-icon in auto-completion-packages

move icons config to auto-completion/init-all-the-icons according to duianto's advice
2019-10-18 13:20:55 +02:00
Hong Xu d35e7b85bf Allow users to enable treemacs-tag-follow-mode as initial setup. 2019-10-17 09:34:12 +02:00
Hong Xu e37b70cfa3 Bound counsel-git to gff and move magit-find-file to gfF.
counsel-git find a file in the current git repository. "gff" is
currently bound to magit-find-file. While counsel-git seemingly performs the
same functionality as magit-find-file, they are substantially different:
magit-find-file is not intended to find a file, contrary to what the
name indicates. See https://github.com/magit/magit/issues/3967 for
explanation. This is why we need another key binding for counsel-git.
2019-10-16 22:03:42 +02:00
wenpin a45948c759 fix typo
There are two `dap-firefox-setup` while `dap-chrome-setup` never show up
2019-10-16 21:04:14 +02:00
Miciah Masters 8d6f736209 Delete old git-link and git-timemachine code
Delete integration code for git-link and git-timemachine, which is
superseded by upstream changes to git-link committed in August 2016:
433ba1dba7

* CHANGELOG.develop: Add an entry for this change.
* layers/+source-control/git/funcs.el (spacemacs/git-link-copy-url-only):
Replace call to spacemacs/git-link with a call to git-link.
(spacemacs/git-link-commit-copy-url-only): Replace call to
spacemacs/git-link-commit with a call to git-link-commit.
(spacemacs/git-link, spacemacs/git-link-commit): Delete functions.
* layers/+source-control/git/packages.el (git/init-git-link): Replace
binding to spacemacs/git-link with a binding to git-link.
2019-10-14 18:18:49 +02:00
duianto 98e7bf38ad [ivy] Rename counsel-more-chars to ivy-more-chars
counsel-more-chars was renamed to ivy-more-chars a year ago:
Move counsel-more-chars-alist and counsel-more-chars to ivy.el.
4461ef302a

with an alias to counsel-more-chars.

The alias was removed 2 days ago:
ivy.el: Clean up obsolete aliases
1a9002bf4b
2019-10-14 10:34:19 +02:00
Thijs Vermeir f753076772 fix documentation in markdown layer 2019-10-13 16:22:44 +02:00
Miciah Masters ec0a535b27 Show conflicts in smerge ts hint
Use a dynamic hint for the smerge transient state in order to show the
current and total numbers of conflicts, and make the full hint toggleable.

* CHANGELOG.develop: Add an entry for this change.
* layers/+source-control/version-control/config.el
(spacemacs--smerge-ts-full-hint-toggle): New variable.
* layers/+source-control/version-control/funcs.el
(spacemacs//smerge-ts-hint): New function.  Return a string indicating the
index of the current conflict and the total number of conflicts detected by
smerge-mode.  If spacemacs--smerge-ts-full-hint-toggle is true, append the
smerge transient state's full hint.
(spacemacs//smerge-ts-toggle-hint): Toggle showing the full hint for the
smerge transient state.
* layers/+source-control/version-control/packages.el
(version-control/init-smerge-mode): Define the transient state in :init so
we can use spacemacs|transient-state-format-hint.  Use
spacemacs//smerge-ts-hint to display a dynamic hint.  Bind the ? key to
spacemacs//smerge-ts-toggle-hint.
2019-10-13 10:09:42 +02:00
Miciah Masters e8cdaac8d3 Unique defvar for each ts full-hint toggle
Instead of using a single variable for all transient states' full-hint
toggle functions, define a unique variable for each toggle function so that
toggling the full hint for one transient state does not affect the others.

* CHANGELOG.develop: Add an entry for this change.
* layers/+spacemacs/spacemacs-defaults/keybindings.el
(spacemacs--window-manipulation-ts-full-hint-toggle): New variable.
(spacemacs//window-manipulation-ts-toggle-hint)
(spacemacs//window-manipulation-ts-hint): Replace
spacemacs--ts-full-hint-toggle with
spacemacs--window-manipulation-ts-full-hint-toggle.
* layers/+spacemacs/spacemacs-layouts/config.el
(spacemacs--ts-full-hint-toggle): Delete variable.
(spacemacs--layouts-ts-full-hint-toggle)
(spacemacs--workspaces-ts-full-hint-toggle): New variables.
* layers/+spacemacs/spacemacs-layouts/funcs.el
(spacemacs//layouts-ts-toggle-hint, spacemacs//layouts-ts-hint): Replace
spacemacs--ts-full-hint-toggle with spacemacs--layouts-ts-full-hint-toggle.
(spacemacs//workspaces-ts-toggle-hint, spacemacs//workspaces-ts-hint):
Replace spacemacs--ts-full-hint-toggle with
spacemacs--workspaces-ts-full-hint-toggle.
2019-10-13 10:09:42 +02:00
Martin Račák c95534ace5 Revert "Use anaconda-mode-find-definition for SPC-m-g-g"
This reverts commit 9bafd3f561.
2019-10-12 15:21:40 +02:00
Rakan Alhneiti 9bafd3f561 Use anaconda-mode-find-definition for SPC-m-g-g 2019-10-11 22:03:59 +02:00
Sergio Morales 4ab684bd58 Update README.md
fix documentation to install fonts
2019-10-11 21:31:58 +02:00
Som Poddar 283ede755d Updated read-me
- Added brew specific commands for symlinking app on Mac
- Removed trailing white space chars
2019-10-11 14:42:20 +02:00
duianto 276b6e44ae Update changelog.develop
Key bindings:
Fixed indentation
Moved a key from the end of the org section to the key bindings section.
2019-10-10 21:22:56 +02:00
Lorenzo Manacorda 4b810795ea org-mode: Document more insertion bindings
`C-RET` and `C-S-RET`, from https://orgmode.org/manual/Structure-editing.html.
2019-10-10 21:21:28 +02:00
Tommy Groshong 59c95e7da2 Make react layer respect js fmt on save
The react layer relies on the javascript layer and uses multiple values
from it including definition of a formatter. However, the react layer
does not respect the javascript layer setting for formatting a file on
save.

This patch configures the react layer to add a before save hook that
calls the javascript layer formatting function when the
'javascript-fmt-on-save variable is enabled.
2019-10-09 18:29:23 +02:00
duianto 6e1ba5d1ad Update changelog.develop 2019-10-09 15:36:42 +02:00
Thanh Vuong ba1fba2455 add lsp for html buffer 2019-10-09 15:29:29 +02:00
Daniel Caixinha 7dd4118820 Add instructions to PlantUML README to set exec-mode accordingly 2019-10-06 21:16:05 +02:00
Matthew Leach d3cb959e36 [gnus] add gnus perspective
Configure the gnus layer to add a gnus perspective, similar to the erc layout.
2019-10-06 17:09:15 +02:00
Roman Gonzalez 28f3b6289d Add spacemacs/git-permalink functionality
Context:

When using org files, one normally tends to add Github code links to an
algorithm/bug explanation so that readers are able to follow along with a PR
change.

The current `<SPC> g l L` command gets us the URL to the current branch; given
the code is in flux, the link becomes non-sensical rather quickly, loosing value
when trying to build a document with explanations about the code.

This PR allows us to get the Permalink (e.g. link associated to the commit, not
the branch); using this, the URL contents will never change with new commits
submitted to the repository.

Changes:

  * Add two new functions with associated keybindings:

    - `<SPC> g l p` maps to `spacemacs/git-permalink`

    - `<SPC> g l P` maps to `spacemacs/git-permalink-copy-url-only`

  * The above changes rely on mechanisms of `git-link`, so no new code needs to
    be introduced
2019-10-05 19:19:41 +02:00
ahanwadi 98473c2a2d Fixed a typo
share the buffer -> the buffers
2019-10-05 19:03:29 +02:00
Ivan Yonchovski 3908fc752b [dap] Add mouse support in dap-mode
- Disable it with `dap-enable-mouse-support`
2019-09-30 00:34:26 -04:00
Georgy Lukyanov bee9bea1b6 Fix #9429: Make agda layer retain indentation on paste.
Add `(add-to-list 'spacemacs-indent-sensitive-modes 'agda2-mode)`
into the definition of `agda/init-agda`.
2019-09-28 14:23:17 +02:00
duianto 8ca2af4215 [php] Enable evil-matchit-mode 2019-09-27 13:35:29 +02:00
duianto a069c6125a [dart] Add dart-server package
dart-mode has been split into two packages:
- dart-mode, Provides basic syntax highlighting and indentation.
- dart-server, Factors out the features from dart-mode.el that relied on
external executables, thus improving availability, reliability, testing and
development of dart-mode.el.
2019-09-23 19:18:33 +02:00
Javier Candeira f25ad36d79 [html] Add .svelte files to web-mode auto-mode-alist :mode handler 2019-09-23 13:45:15 +02:00
smile13241324 3e93dec663 Update changelog.develop 2019-09-22 21:55:05 +02:00
Mathieu 16f283898c Add flutter and lsp support to dart layer 2019-09-22 21:21:06 +02:00
Daniel Richtmann 724eb908a8 Enable experimental support for lsp within the shell-scripts layer
Note that this is only valid for bash scripts, since it uses the
`bash-language-server` defined in `lsp-clients.el`
2019-09-22 20:51:33 +02:00