Commit Graph

5613 Commits

Author SHA1 Message Date
Maximilian Wolff 98176b130c
[typescript] Cleanup bindings to avoid duplicate code 2021-02-22 22:32:11 +01:00
Cheng, Rong 1f1ed2a976
Add typescript-format keybinding in typescript-tsx-mode
typescript-format is bound to leader-key == in typescript-mode, but not
in typescript-tsx-mode.
2021-02-22 22:08:30 +01:00
Lin Sun 23af0c540a [markdown] remove duplicating code which already exists in "markdown-mode" 2021-02-22 22:01:51 +01:00
Maximilian Wolff cecc4ef887
[markdown] Make sure not to throw when git-commit-mode is not bound
Should fix #14397
2021-02-21 23:34:02 +01:00
Maximilian Wolff aa1051e1c8
Move lsp-ui back to be enabled by default
I don't think that setting this to a fixed value
will solve the issue. Right now we have a conflict
between feature rich and simple here.

This is similar to what we have with the search
integration (helm vs ivy) and in the tree
implementation (treemacs vs neotree).

For these we have a workflow during the initial
dotfile creation. Which we need to follow here
too.
2021-02-21 22:06:27 +01:00
winsphinx 9ecce8231a fix variable name in lsp doc 2021-02-21 17:53:53 +01:00
Ivan Yonchovski b6aed092cf [evil-cleverparens] `evil-cp-change' should move the point
I have a PR for that https://github.com/luxbock/evil-cleverparens/pull/71 but it
is not reviewed for a long time. Without this change when you do `ci"` the
cursor won't go in the "".
2021-02-21 17:43:45 +01:00
Ivan Yonchovski df09240229 [lsp] Do not include lsp-ui by default
- lsp-ui is very opinionated so better to have it enabled/installed on demand
2021-02-20 22:01:23 +01:00
Ivan Yonchovski 599a9bb278 [helm] avoid duplicates in `helm-M-x' history 2021-02-20 22:00:26 +01:00
Ivan Yonchovski 1d0cd56c17 Revert to default value of helm-swoop-speed-or-color
- having font-lock enabled for swoop buffers is really slow
2021-02-20 21:59:35 +01:00
Maximilian Wolff e5620ddfbf Reverted `ESS: Fixes syl20bnr#13282`
Having sourced a file for every R repl session
is not working reliably due to the different
value of DISPLAY on every environment.

Users are expected to use R specific ways
to set their env variables for now.
2021-02-20 07:40:13 +00:00
tris 699be3fe28 [editing] add binding for multi-line 2021-02-20 08:02:32 +01:00
duianto f4999e8242 Restore evil-visual-state-map on edebug exit
problem:
Exiting edebug-mode, leaves the evil-visual-state-map
with only the two key bindings that are defined in:
evilified-state--setup-visual-state-keymap
y       evil-yank
escape  evil-exit-visual-state

solution:
Restore the evil-visual-state-map when exiting edebug-mode.

Added an alias for the new exit function:
evilified-state--evilified-state-on-exit

called: evil-evilified-state-exit
the opposite of: evil-evilified-state
2021-02-20 07:49:43 +01:00
Lin Sun 0220101c7f [markdown] fix warning message for #14387 2021-02-20 07:48:06 +01:00
duianto 7e38f2e64e Disable evil collection unimpaired bindings
This restores the previous Spacemacs
Info-mode and help-mode buffer bindings.

for example:

before:
The square bracket keys are prefixes for one key:
"[u" 'evil-collection-unimpaired-url-encode
"]u" 'evil-collection-unimpaired-url-decode

after:
 ]                       ;; Info-forward-node
 [                       ;; Info-backward-node

 ]                       ;; help-go-forward
 [                       ;; help-go-back

Fixes: Evil keybindings for navigation no longer behave as expected in Info buffers #14375
2021-02-19 16:56:59 +01:00
Maximilian Wolff e4452f9a85
[ess] Set DISPLAY in R buffer only if not set already
See #13282
2021-02-16 23:04:02 +01:00
duianto b6aa0e651f [git] Remove unused evil-magit function
The only usage of the function: spacemacs//magit-evil-magit-bindings
was removed in the PR: [spacemacs-evil] add evil-collection #14200
2021-02-15 10:47:38 +01:00
duianto 3f7e69e0b1 [git][doc] Update magit bindings link
The evil-magit package has been deprecated and moved to:
https://github.com/emacs-evil/evil-collection/tree/master/modes/magit
2021-02-14 19:39:56 +01:00
Maximilian Wolff af0d0e7276 [purpose] Fix undefined magit-display-buffer-function during startup
With purpose and the new layer verification algorithm in place
it looks like the default load order changed causing
`purpose-x-magit-multi-on` to access `magit-display-buffer-function`
before is has been loaded.
2021-02-14 08:16:13 +00:00
emacspace 7eaa072234 documentation formatting: Sat Feb 13 22:58:15 UTC 2021 2021-02-14 00:00:32 +01:00
Daniel Nicolai 44add11c7a Add auto hide tabs feature to tabs layer
Ideally it would be great to implement tabs switch with C-tab (or C-}) that
shows the tabs as long as C is pressed. However Emacs does not support key
release events so this function uses a timer as a workaround.

To me Emacs looks better when tabs are hidden, and also packages like
pdf-continuous-scroll-mode break when tabs are shown.
2021-02-13 23:55:17 +01:00
Maximilian Wolff 8f934f138d
[lua] Fix unbound var error during layer load
I have introduced a small typo which I
am fixing here.
2021-02-13 23:20:37 +01:00
Maximilian Wolff fc2aa2601c [lua] Revise layer and fix LSP integration
The lsp integration was not standard at all in
this layer I have refactored it now to be working
like the rest of Spacemacs.
2021-02-13 21:53:57 +00:00
Lin Sun ca0fe33c8d [lua] more lsp backends for lua 2021-02-13 20:50:39 +00:00
duianto b93bdbd4ad Handle when evil-set-undo-system is missing
problem:
updating Spacemacs without updating the evil package,
breaks Spacemacs on startup:
Symbol's function definition is void: evil-set-undo-system

solution:
make sure that evil-set-undo-system is bound.
2021-02-13 12:01:31 +01:00
Daniel Nicolai a747c1eadd Improve better-dafault docs about possible bindings shadowed 2021-02-13 09:48:49 +01:00
Aaron L. Zeng 901082b914 [fsharp] Declare package eglot-fsharp
eglot-fsharp is now distributed as a separate MELPA package from
fsharp-mode, so it needs to be listed in `fsharp-packages`.

Also, refactor some conditions to read more clearly.
2021-02-13 09:48:08 +01:00
JAremko 91d5bfbadc Add eval to comment elisp-mode function 2021-02-13 09:45:00 +01:00
duianto 3bb13db857 Fix home buffer ace links
Pressing o `(spacemacs/ace-buffer-links)`
on the Spacemacs home buffer `SPC b h`.

Adds an ace link (one or more highlighted letters),
at the menu buttons, and the startup list entries.

problem:
The text: `[S P A C E M A C S]` gets an ace link,
but it isn't a button.

When the [?] button has been pressed, and the Quick Help
is open, then ace links appear on the open square brackets
for each key binding, but they aren't buttons.

In the lists: recent files, projects, etc.
The ace links appear before the first / (slash).
This means that in windows they appear after `c:`.

solution:
Add the ace links at the beginning of each widget-button.
2021-02-13 09:38:23 +01:00
duianto 3acf188bad [keyboard-layout] Fix colemak-hneio next/prev line in magit 2021-02-12 09:16:10 +01:00
duianto 9375d6f54d Add missing space before defun args parens 2021-02-10 08:51:55 +01:00
Jamal Rahhali fae767afd8 Change elm-analysis -> elm-analyse
There is no such NPM package elm-analysis, but there is an elm-analyse.
2021-02-09 22:15:51 +01:00
Daniel Nicolai ec8a278505 Fix EAF-layer to make it work with the epc (support Windows) 2021-02-09 22:11:23 +01:00
Thanh Vuong c11e8baa9d [ivy-rich] enable ivy-rich-project-root-cache-mode
which improves performance when many buffers opened.

Ref:
https://github.com/Yevgnen/ivy-rich#project-performance
ref https://github.com/syl20bnr/spacemacs/issues/10101
2021-02-09 15:04:23 +01:00
emacspace d9ad951c86 documentation formatting: Sun Feb 7 22:30:25 UTC 2021 2021-02-08 03:32:07 +02:00
emacspace 68444f5487 documentation formatting: Sun Feb 7 21:35:33 UTC 2021 2021-02-07 23:25:33 +01:00
Daniel Nicolai 3c1526fcd4
Fix doc org-contacts 2021-02-07 23:23:30 +01:00
Maximilian Wolff d264d04698
[org] Manually load org-contacts during agenda config
Removing this statement seems to create issues,
lets see if adding it back resolves them again.

See #14297 for details.
2021-02-07 23:19:55 +01:00
Maximilian Wolff 1d84447e68
[fasd] Revise layer
Add missing standard headers
Make funcs.el define only functions
and move init code for ivy into
fasd-init function.
2021-02-07 23:01:43 +01:00
Daniel Nicolai dfd5532429
Add search-from ivy action to fasd layer
If I had known about browsing history with `C-r` before [I modified the fasd
package to implement full ivy
support](c4c04873fd),
then I guess I would not have modified it. Anyway, now that "full Ivy support"
has been merged into the fasd package, I could add this 'search-from' action
command to `fasd-find-file` which triggers Spacemacs 'search-auto'. Because fasd
only finds dirs that have been visited before, it probably does not add much to
the `C-r` functionality, but maybe it does (you decide?). Anyway, I hope you can
help decide if this is useful for merging.
2021-02-07 22:31:05 +01:00
Thanh Vuong ae65f3cedd
Fix #14213 remove dash and ht from core libs
- delete dash and ht in core
- reimplemented all ht functions we need in `spacemacs-ht.el` and use them
- add dash to spacemacs-bootstrap
2021-02-07 22:22:39 +01:00
Maximilian Wolff 884dc44a48
[eaf] Revise the new layer
Added default header to funcs.el
Replaced references to `,` with `SPC m`
Reformat and add conventional progn statements

Last but not least it seems that not all
functions are working properly, I think
this is a good basis but needs to worked
upon a bit more to reach its full potential.
2021-02-07 22:17:36 +01:00
Daniel Nicolai 5b9612f57e
Add Emacs Application Framework (EAF) layer 2021-02-07 21:34:50 +01:00
duianto 60ad8194d7 Refactor spacemacs/rename-current-buffer-file 2021-02-07 21:21:41 +01:00
Ray ddb0d02c51 Also run `treemacs-load-theme` on `dired-mode-hook` 2021-02-07 21:20:04 +01:00
Maximilian Wolff b82f505fba
[org] Try to fix eval errors caused by org-contacts-support 2021-02-07 21:08:03 +01:00
Maximilian Wolff 2341448531 [org] Revise org-contacts support 2021-02-07 08:13:26 +00:00
Daniel Nicolai 3a02c12ca7 Add org-contacts to org layer
Org-contacts is a handy contacts management system. It can be used to manage
(email) addresses (compatible with gnus, mu4e, notmuch etc.), birthdays and
more. It is much simpler than bbdb/ebdb and probably powerful enough for most
users.
2021-02-07 06:50:59 +00:00
Matthew Leach b18c87c832
[javascript] add npm-mode (#14347)
* [javascript] add npm-mode

Add npm mode to the javascript layer.  This allows easy execution of npm
commands at the project root from any javascript file in the project.

* [javascript] defer loading of npm-mode

Defer loading of the npm-mode package.

* [javascript] remove superfluous `progn'

The `:init' command is only a single command and thus doesn't need to be wrapped
in a `progn'.

* [javascript] fix typo in npm-mode docs

s/avilable/available/

* [javascript] add additional npm-mode commands

Add and document missing commands from npm-mode.
2021-02-07 07:46:06 +01:00
Daniel Nicolai 7276970c91
Implement C-(S)-tab buffer switch in Ivy layer 2021-02-04 23:33:39 +01:00
Maximilian Wolff c24905bf89
[markdown] Fix formating issues introduced in my last commit 2021-02-04 23:21:37 +01:00
Maximilian Wolff 88d09da807
[markdown] Fix syntax issues and revise readme and package.el 2021-02-04 23:02:31 +01:00
sunlin bc98f0cbb5
[markdown] more document for using markdown-command (#14312)
* [markdown] more document for using marking-command

* Update CHANGELOG.develop

Co-authored-by: Daniel Nicolai <dalanicolai@gmail.com>

* Update layers/+lang/markdown/README.org

Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>

* Update layers/+lang/markdown/packages.el

Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>

Co-authored-by: Daniel Nicolai <dalanicolai@gmail.com>
Co-authored-by: Maximilian Wolff <smile13241324@gmail.com>
2021-02-04 22:45:14 +01:00
winsphinx 662201fc05 diminish valign
That's too long for too much space.
2021-02-04 22:41:23 +01:00
duianto e8c84d4b37 [base] Fix void dired-mode-map
problem:
the attempt to hide the dired buffer, which-key entry:
r -> evil-mc

caused a void dired-mode-map message to appear on startup,
in the spacemacs-base distribution.

solution:
hide the which-key entry after dired loads.
2021-02-04 19:50:54 +01:00
M. Domenzain a7e8bd7e65 [c-c++] Add layer variable for DAP adapter selection
Make adapter selection available through the `c-c++-dap-adapters` layer variable
and select the known-good Microsoft C/C++ Extension as a sane default.
2021-02-03 23:35:24 +01:00
Ben Swift ca75239108 [org] add keybinding for org-roam-dailies-find-date 2021-02-03 22:39:04 +01:00
Daniel Nicolai dc7b04dc66 Implement C(-S)-tab buffer switch in Helm layer
Equivalent to PR #14287 for ivy-layer
2021-02-03 22:36:50 +01:00
Ray Wang f01ca9a09b Document: prompt to run `all-the-icons-install-fonts`
If both `all-the-icons` and `lsp-headerline` are enabled
2021-02-03 22:32:56 +01:00
Lucius Hu 3652346b3a ESS: Fixes #13282
Signed-off-by: Lucius Hu <lebensterben@users.noreply.github.com>
2021-02-03 22:30:16 +01:00
emacspace fbd281d710 documentation formatting: Sun Jan 31 11:47:27 UTC 2021 2021-01-31 20:57:53 +02:00
duianto ec57b21a92 Fix which-key entries: gr and gs in dired and magit
problem:
pressing g shows the which-key entry:
r -> evil-mc

but it calls the expected commands:
revert-buffer (in dired)
magit-refresh

s -> evil-easymotion
but it calls the expected command:
magit-jump-to-staged

solution:
removing the gr and gs which-key entries,
shows the expected commands.
2021-01-30 11:59:18 +01:00
Thanh Vuong 86a89d8fdd [evil-collection] support for dired 2021-01-30 10:17:20 +01:00
Thanh Vuong a6d364e0f2 [spacemacs-evil] add evil-collection
It is impossible to ignore `evil-collection` anymore. `evil-magit` has been
deprecated recently and moved to `evil-collection`.

It will save time and effort for both Spacemacs and Evil to share and contribute
to `evil-collection` imo.

However I strongly prefer Spacemacs binding scheme over evil-collection's one.
We should only pick what we need from `evil-collection`.

This PR add mechanism to embrace `evil-collection` and apply it to shell layer (`vterm`)
and git layer.
2021-01-30 01:11:07 +00:00
Ivan Yonchovski 138d6329ef Add kill-ring to savehist-additional-variables 2021-01-26 13:51:46 +01:00
emacspace 8c18c1fc30 documentation formatting: Mon Jan 25 02:14:21 UTC 2021 2021-01-25 09:01:25 +02:00
JAremko 31e443afd5 remove trailing space 2021-01-25 04:03:14 +02:00
duianto 7ffcae0360
[org] Update org-enable-valign
Move the org-enable-valign variable definition
and the valign package setup to the org layer.

Document the variable.
2021-01-24 22:58:34 +01:00
Maximilian Wolff bf32e43339
[command-log] Add experimental support for keycast
Only added the package and provided proper keybindings.

Individual setup of =keycast-insert-after= for each of
the supported modelines should be contributed on a per
user basis.
2021-01-24 22:48:04 +01:00
duianto 92796dc121 [dotfile] new var: dotspacemacs-show-trailing-whitespace
Moved the function definitions for:
spacemacs//trailing-whitespace
spacemacs//set-whitespace-style-for-diff

from: spacemacs-default/packages.el
to:   spacemacs-default/funcs.el
2021-01-24 21:54:40 +01:00
Ag Ibragimov 11025e1276 emacs-lisp: resets to evil-normal after edebug session 2021-01-24 15:27:04 +01:00
Daniel Bankmann 981621e000 Add variables for configuration of startup of the @Org perspective.
Add Readme part
2021-01-19 21:48:28 +01:00
Keith Pinson a973da57ee [scala] remove long-deprecated Ensime integration
According to its website, the Ensime project has been shut down since 2019. We
have been supporting both Ensime and Metals for [a year and a
half](https://github.com/syl20bnr/spacemacs/pull/12234#issuecomment-524916394).
Ensime's GitHub repositories, including its Emacs integration, are archived.
Meanwhile, Metals has been developed actively, regularly releasing new versions.
It has stabilized significantly, and supports an increasingly full set of
features. Scala 3 is just around the corner, and the community is poised to make
the transition smoothly and relatively quickly. Metals supports it already,
whereas of course Ensime does not and never will. In fact, Scala 2 has had
several import minor versions released since Ensime died. Now that it's 2021,
it's time to cut the baggage we are carrying around for Ensime.
2021-01-19 21:45:40 +01:00
emacspace 73cc5b24f3 documentation formatting: Mon Jan 11 22:39:03 UTC 2021 2021-01-14 13:22:53 +02:00
Keith Pinson 667914e5fa [scala] provide an easy way to a small SBT buffer at frame bottom
This feels like the natural place to put it, though we could also extend this
with other values in the future. I defaulted this behavior to off in order to
not impact folks' current setup.
2021-01-11 22:54:58 +01:00
Harvey Chapman d053b4aebc [helpful] Add missing global key bindings
- In addition to the spacemacs leader keys, also replace the default emacs
keybindings under `C-h`

- Fix a documentation copy-paste mistake for `SPC h d v`
2021-01-11 22:39:27 +01:00
emacspace a29babe830 documentation formatting: Sun Jan 10 20:15:44 UTC 2021 2021-01-11 11:11:03 +02:00
Maximilian Wolff ed278491ee [latex] Fallback to company-auctex when company-math fails
Classic completions now use company-math if available
however if this fails it should fall back to the
original system to avoid issues with existing
configs.
2021-01-10 20:10:31 +00:00
Maximilian Wolff 9636cc84c6 [latex] Fix small typo in docs 2021-01-10 20:07:24 +00:00
SALVATI Sylvain 4b8b8bd608 [latex] add support for company-math in latex layer
Combining company-math and company-auctex

Updating documentation and make math-symbol-lists requiring company-math

Back to original readme

math-symbol-lists is used elsewhere and should not be made dependent on the use of company-math

using the result of company-auctex-macros

Add explicit dependency of company-amth to math-symbol-lists
2021-01-10 20:03:17 +00:00
Keith Pinson 26a4dc9830 [markdown] fontify code blocks natively: on by default 2021-01-10 20:40:38 +01:00
Daniel Nicolai c23a190a72 Add toggles for specific persistent which-key keymaps
Sometimes it is handy to show keymaps persistently with which-key. For example,
to show navigation commands in Info-mode, gnus, eww etc. This PR implements
handy toggles and documentation for that.
2021-01-10 20:32:04 +01:00
Daniel Bankmann e734f6a9a7 Add some missing key bindings for org-agenda 2021-01-10 20:06:14 +01:00
Daniel Bankmann 58c26f8e64 Fix issue #14250 by unshadowing 'K' 2021-01-10 20:04:00 +01:00
Richard Kim c9800a3b1a fixed package name from org-super-star to org-superstar 2021-01-10 19:56:28 +01:00
Hanshen Wang dd29b769c2 edited mu4e-org-link-support, add compatibility to mu4e v. < 1.3.6 2021-01-10 19:53:05 +01:00
Daniel Nicolai bd1631bdce Add org-journal-open-current-journal-file keybinding
In my opinion this is an elementary org-journal command that should have a
keybinding.
2021-01-09 09:02:44 +01:00
Keith Pinson fd7c0a3773 [emacs-lisp] make `SPC m h h` and jump handlers work in `ielm`
Like in other Emacs Lisp modes.
2021-01-09 08:53:35 +01:00
duianto 61ff12cbfc [base] Show a winum required message
problem:
key bindings that use the winum package,
don't work in the spacemacs-base distribution.

for example in the buffer transient state: SPC b .
{number}, C-{number} or M-{number}

shows messages like these:
Wrong type argument: commandp, winum-select-window-1
Symbol’s function definition is void: winum-get-window-by-number

cause:
the winum package is loaded in the spacemacs-navigation layer,
but the layer isn't used in the spacemacs-base distribution.

solution:
show the message:
This command requires the winum package,
winum is part of the spacemacs-navigation layer.
2021-01-09 08:40:32 +01:00
Sid Raval 9b6a49d6c0
Support prettier formatter for Ruby layer (#14252)
* First working pass

- Runs prettier on save when in ruby-mode.
- Adds `node_modules/.bin/` to local `exec-path`
  - This means project-local `prettier` executables are preferred

* Making ruby layer prettier formatting configurable

- Adds a variable to control whether prettier is used to format-on-save.
- Documents use, configuration, and keybindings in the README

* Add to CHANGELOG.develop

* Delete spurious comment

* Use prettier as a dependency only when config variable is present
2021-01-09 08:34:04 +01:00
Hanshen Wang f75ac7a239 Fix typo found in commit ab4877f218 2021-01-09 07:19:15 +00:00
emacspace ee9201efe7 documentation formatting: Sun Jan 3 07:55:29 UTC 2021 2021-01-03 09:11:18 +01:00
timor 86ca64939c
Small Fixes and Improvents to Factor Layer (#14253)
* [factor] Add two useful snippets

* [factor] Make binding match documentation

* [factor] Fix startup command for graphical listener
2021-01-03 09:09:54 +01:00
Daniel Nicolai 11345a8392 Add consistent org-agenda transient-state keybinding
I do not see any reason why the keybinding to enter org-agenda should not be on
`. ,`. Therefore I propose here to make that keybinding consistent with the
keybindings for entering transient states in most/all other modes
2021-01-03 09:00:09 +01:00
Fan Yang ab4877f218 Improve org-mu4e integration
Changes:

- Added two configuration variables for the mu4e layer to control mu4e-org
  integration.

- Optionally configures mu4e compose mode to support Org-mode syntax.

- Improves lazy-loading of relevant features. E.g. loading org-mode does not
  automatically trigger loading of mu4e.
2021-01-03 08:52:49 +01:00
Maximilian Wolff 7b7076d4ba [python] Define purposes for specialised buffers 2021-01-02 20:30:45 +00:00
Maximilian Wolff 344b6a51f7 [markdown] Use valign for table formating if available 2021-01-02 19:39:11 +00:00
emacspace d545dcbdbe documentation formatting: Wed Dec 30 21:04:48 UTC 2020 2020-12-30 23:41:14 +01:00
Maximilian Wolff 08355b0b6f
[python] Fix one small issue in latest doc additions 2020-12-30 21:55:27 +01:00
Peter Kuchar 638bbb0c38
[+lang/python] Poetry integration for python layer
Adding Poetry integration (tool for managing virtual environments in Python)
2020-12-30 21:53:27 +01:00