Commit Graph

10555 Commits

Author SHA1 Message Date
60b595321e Lazy-load yasnippet harder for faster first-file load time
+ Rather than waiting for the first "interactive" major mode to be
  visited to activate yas-minor-mode, we wait until the first time the
  user invokes a snippet command to activate yas-global-mode.
+ yas-reload-all is one of the bottlenecks when loading a file for the
  first time. Deferring it further should help with this.
+ yas-global-mode reaches more major modes than our former list of
  hooks (fixes #5140).

Closes #5140
2021-06-05 13:12:00 -04:00
63cc08be98 lang/java: Add file templates
- `__annotation-type`
- `__enum`
- `__interface`
- `__record`
- `__` → `__class` (rename)
2021-06-05 23:21:53 +09:00
9fb96f9eeb Fix 'setting-constant enable-multibyte-characters' error
Regression caused by 78dde6efd.

Mentioned in #5133
2021-06-04 22:45:36 -04:00
78dde6efdd Fix #5133: don't kill LSP after reformatting
This happened because LSP hooks on kill-buffer-hook (and possibly
others) caused our temporary formatting buffer to talk to LSP as if it
were the original buffer. When the temp buffer was cleaned up, LSP
assumed the original buffer had been closed. No more!

In fact, to avoid similar issues, let's avoid any complex functionality
in hooks in this temp buffer.
2021-06-04 22:22:57 -04:00
68b422c786 editor/format: redesign
This isn't the apheleia rewrite, just a redesign to fix the module's
current issues with its +onsave feature.

+ Rethinks how the formatter dispatches to lsp/eglot's formatter.
+ Stops format-all from being too imposing with its warnings.
+ Relies more on format-all-mode to control formatting-on-save.
+ Sidestep +format-buffer-a hackery when using lsp/eglot formatters.

Fixes #5121
Fixes #5128
Fixes #5133
2021-06-04 16:15:29 -04:00
99fbdb1092 lang/sh: make shfmt indent-style aware
Fixes #2905
2021-06-04 16:15:17 -04:00
883a109a7a Fix "Couldn't find project root" error on +ivy/compile 2021-06-04 14:50:45 -04:00
14326d6704 Merge pull request #5110 from fosskers/colin/irc-libera
app/irc: Libera.Chat
2021-06-04 14:21:34 -04:00
db020f67c6 Merge pull request #5111 from destroyer449/flycheck_documentation
Added Flycheck documentation
2021-06-04 14:21:15 -04:00
8cfe38ebb6 Merge pull request #5115 from jmorag/gitignore-haskell
Add haskell gitignore template
2021-06-04 14:20:45 -04:00
8f5d729df9 Merge pull request #5122 from RBckmnn/sharper_keybinds
Add evil-keybindings for various sharper commands
2021-06-04 14:19:57 -04:00
027dec3b5f editor/format: use unabbreviated commit
Fix #5136
2021-06-04 14:08:42 -04:00
26aeb72e63 org-clock-out-remove-zero-time-clocks = t
Reverts 334c309; the original issue was reportedly fixed upstream at
some point.
2021-06-04 14:08:42 -04:00
9da4ac05ad Fix #4894: +lookup/references not following references 2021-06-04 01:30:34 -04:00
4dceae1826 lang/org: hl dead links in warning + org-link faces 2021-06-01 21:24:32 -04:00
70967a1702 Add evil-keybindings for various sharper commands 2021-06-01 17:40:40 +02:00
805810b95f lang/org: tab = cycle folds if in emacs state
Tab should only be changed for evil users in insert mode, since they
have fold cycling functionality available in normal mode and vanilla
users do not.
2021-05-31 14:22:54 -04:00
bd94250503 Fix #5113: "defining as dynamic an already lexical var" error
Due to a dynamic variable being let-bound while evil-textobj-anyblock is
loading, so load it first.
2021-05-30 12:21:13 -04:00
dd1f7713ea Fix 'invalid face attribute :background' warnings
And 'invalid face attribute nil' warnings too.
2021-05-30 12:20:58 -04:00
b20736c9b7 Add haskell gitignore template 2021-05-30 11:07:29 -04:00
d32698b326 editor/evil: remove redundant put & add comment
evil-define-key* now declares its own indentation, so I don't have to.
2021-05-29 12:48:44 -04:00
d1bed29680 Half-revert 69ea5c202
Fix cursor color stickiness when toggling emacs state.
2021-05-29 12:45:17 -04:00
9d6a4971d3 Don't spell check in markdown urls/code 2021-05-29 11:59:19 -04:00
ad554b3826 Bump :completion
DarwinAwardWinner/ido-completing-read-plus@36a8bb9 -> DarwinAwardWinner/ido-completing-read-plus@0067472
Yevgnen/ivy-rich@7b9b7b2 -> Yevgnen/ivy-rich@600b818
abo-abo/swiper@bb7965a -> abo-abo/swiper@a5eade0
company-mode/company-mode@7207cb1 -> company-mode/company-mode@ee3177c
emacs-helm/helm@98af298 -> emacs-helm/helm@a7bd522
emacs-jp/helm-c-yasnippet@28699d9 -> emacs-jp/helm-c-yasnippet@e214eec
raxod502/prescient.el@8573df9 -> raxod502/prescient.el@4a0f540
sebastiencs/company-box@ec8f446 -> sebastiencs/company-box@aa5f09a
tumashu/ivy-posframe@3132719 -> tumashu/ivy-posframe@084cc59
tumashu/posframe@fff21cc -> tumashu/posframe@739d8fd
yyoncho/helm-icons@e4a2cd1 -> yyoncho/helm-icons@8d2f5e7
2021-05-29 11:58:55 -04:00
ea6dfc7b98 Fixed date issues 2021-05-29 09:28:57 -06:00
7d5f387bdc Added Flycheck documentation 2021-05-29 08:35:48 -06:00
c3ec594a8a app/irc: Swap examples to cite libera.chat 2021-05-29 00:21:39 -07:00
69ea5c2020 editor/evil: simplify cursor color change logic
Fixes race conditions where the cached cursor's color doesn't match the
loaded theme's.
2021-05-28 14:06:16 -04:00
84e1554f14 Fix #5109: startup files not added to main persp 2021-05-28 11:43:40 -04:00
33dbae7cb2 Fix format-all formatters not activating on save 2021-05-28 00:11:28 -04:00
05d85f5ef7 Bump :app
https://git.savannah.gnu.org/git/emms.git@60c6172 -> https://git.savannah.gnu.org/git/emms.git@06ef243
jorgenschaefer/circe@2f70aa2 -> jorgenschaefer/circe@4778675
remyhonig/elfeed-org@77b6bbf -> remyhonig/elfeed-org@268efdd

Closes #5094

Co-authored-by: iyefrat <iyefrat@users.noreply.github.com>
2021-05-27 23:07:56 -04:00
925ddc3bc7 Merge pull request #5103 from fosskers/colin/rust-doc-open
lang/rust: Binding for `cargo doc`
2021-05-27 23:04:15 -04:00
18d5ea5ad6 Merge pull request #5102 from fosskers/colin/doctor-tidy
doctor: Check for missing `tidy`
2021-05-27 23:02:59 -04:00
e18a6679b7 Merge pull request #5107 from SebastianKeller/patch-1
Fix schemes README.md
2021-05-27 23:02:27 -04:00
005a71e467 Fix #5104 (again): void-function +format-lsp-enable-on-save-maybe-h 2021-05-27 19:32:56 -04:00
8beb5674b5 Fix schemes README.md
Fix a small copy / paste error on geiser-chibi
2021-05-27 21:31:52 +02:00
c97df46f5b Fix #5105: void-variable org-brain-polymode-map 2021-05-27 12:54:06 -04:00
c9653ba8ae Fix #5104: void-function +format-lsp-enable-on-save-maybe-h 2021-05-27 12:51:56 -04:00
a7d5d97b34 Fix #4899: wrong-type-arg arrayp error on org-brain init 2021-05-27 03:53:43 -04:00
4cb498e3a1 lang/rust: Differentiate doc building bindings
`cargo doc --open` (the previous binding of `SPC m b d`) always opens a
new browser tab. For "doc-driven development" this isn't so nice, since
we'd like to stay in the same tab and just refresh its contents after
editing. That's what `cargo doc` (without `--open`) does, which is
called by `#'rustic-carg-build-doc`.

This commit introduces a binding for the latter behaviour, but asigns it
to the old `SPC m b d`, with the "open" variant as `SPC m b D`. This
matches Spacemacs and follows the usual pattern of "the capital letter
variant is the one you use less often".
2021-05-26 21:57:05 -07:00
1a6ea2fb44 doctor: Warn about missing tidy when using web 2021-05-26 21:46:17 -07:00
6e7a19a2f4 Enable formatter if LSP formatter is available
The :editor format module uses either the formatter available through an
LSP server or a formatter that the format-all package supports.  With
:editor (format +onsave), this formatter is triggered when a file is
saved. However, if no format-all formatter is available, this on-save
behavior is disabled, even if an LSP formatter is available. This fixes
that.
2021-05-26 21:45:00 -04:00
68bee5043c Fix 'typescript-tide is not a valid syntax checker' error 2021-05-26 17:04:06 -04:00
9be837402c Merge pull request #5101 from Zetagon/develop
Advice lispyville-end-of-defun to go past defuns
2021-05-26 16:30:54 -04:00
67425f0b61 Merge pull request #5098 from daanturo/prescient-dont-sort-counsel-org-goto
Add :not counsel-org-goto to ivy-prescient-sort-commands
2021-05-26 16:30:18 -04:00
fa643513cf lang/org: add orgit-forge
Closes #5100
2021-05-26 16:19:07 -04:00
9bd0be17e3 Enable solaire-mode in popups, transient, which-key 2021-05-26 16:19:07 -04:00
657b326e92 lang/javascript: redesign module around rjsx-mode
+ Use rjsx-mode for all javascript files. It degrades gracefully and is
  less maintenance.
+ Rethink flycheck + JS integration. You should get eslint and tslint
  support in web-mode, typescript-mode, and typescript-tsx-mode now (as
  well as rjsx-mode, of course).
2021-05-26 16:19:04 -04:00
3b18153ea7 Advice lispyville-end-of-defun to go past defuns
`lispyville-end-of-defun' doesn't go to the next defun when point is
already at the end of a defun, whereas `lispyville-beginning-of-defun'
does. This commit fixes this inconsistency by matching
`lispyville-end-of-defun''s behaviour with `lispyville-beginning-of-defun'.

`line-end-position' isn't enough because it never returns `t' in normal
mode (in normal mode the point can't reach the true end of a line).
2021-05-26 18:51:55 +02:00
18a149b3e3 Add :not counsel-org-goto to ivy-prescient-sort-commands 2021-05-26 16:46:24 +07:00