Commit graph

612 commits

Author SHA1 Message Date
Henrik Lissner
a0a45ce81a bump: :editor evil
emacs-evil/evil-collection@9be3805b60 -> emacs-evil/evil-collection@8a75a03656
emacs-evil/evil@b237462fee -> emacs-evil/evil@82e5becae2
hlissner/evil-snipe@a9b9b39a79 -> hlissner/evil-snipe@1a28d718c8
juliapath/evil-numbers@cd23a7b458 -> juliapath/evil-numbers@8ce0066fa4
redguardtoo/evil-nerd-commenter@118bebd02a -> redguardtoo/evil-nerd-commenter@6bc41317ba

Fixes evil-collection-magit keybinds for magit-stash and
magit-worktree (on Z).

Ref emacs-evil/evil-collection@940dfe91aa
Ref emacs-evil/evil-collection@53a76e15df
Fix #5260
2021-09-15 17:47:17 +02:00
Itai Y. Efrat
2fdcefa831 feat(default): add +default/diagnostics
Unify flycheck-list-errors and flymake-show-diagnostics-buffer under
+default/diagnostics, and use consult-lsp-diagnostics if the lsp and
vertico modules are active.
2021-09-15 01:02:46 +03:00
Alex Griffin
a5ce61aa55 fix(multiple-cursors): keybind conflict with embark
Fixes #5374.
2021-09-14 19:06:04 +02:00
bartuka
b598d83aeb
feat(file-templates): add clojure gitignore template (#5357) 2021-09-14 14:27:55 +02:00
Henrik Lissner
8e30579823 tweak(evil): reduce keybind conflicts between outline & org
This doesn't fix a particular issue, but makes designing keybinds for
org-mode more predictable and less vulnerable to unpredictable changes
imposed by evil-collection.
2021-09-13 17:29:12 +02:00
Itai Y. Efrat
2bfb8be383 fix(evil): use evil-collection for package-menu
I can't find a rationale for this in the git history, and from looking
through the evil-collection entry I can't think of one.
2021-09-11 18:48:40 +02:00
Henrik Lissner
d88948f764 fix(file-templates): github user in elisp packages 2021-08-16 11:36:09 -04:00
Henrik Lissner
6c52e33302 fix(evil): don't load help.el twice
a2a128d3 changed prefix-help-command to use embark. This commit fixes
prefix-help-command getting reset to describe-prefix-bindings due to
help.el setting it at top-level because it is eventually loaded twice
due to defer-feature!, which removes a symbol from emacs' list of loaded
features.

Ref a2a128d3a5
2021-08-05 21:24:01 -04:00
Henrik Lissner
06392a723f refactor: rename orig-fn arg in advice to fn
A minor tweak to our naming conventions for the first argument of an
:around advice.
2021-08-04 01:53:12 -04:00
Henrik Lissner
0ca34af323 feat(file-templates): improve diagnostic command
Emit a more helpful error message if a rule was found but yasnippet
can't find the associated snippet.
2021-08-02 15:00:44 -04:00
Emin Umut Gerçek
ccd20847c7
fix(lispy): evil-escape keybind collision on j
* Remove evil-escape from lisp modes
* Use evil-escape-inhibit-functions hook

Close #5328
2021-08-01 18:15:19 -04:00
andrewsuperlegit
b633e920cc
Fixed the keybind for fold/unfold all
The keybinding for fold all and unfold all was wrong (was missing a C-f)
2021-07-29 18:46:08 -05:00
LuoZhipeng
bf488394e9 editor/format lsp feature requirement from textDocument/rangeFormatting to textDocument/formatting. 2021-07-27 17:49:57 +08:00
Wetlize
e12519d250 editor/evil: Add gr keybinding to refresh helpful buffers 2021-07-25 22:36:01 +03:00
Itai Y. Efrat
a0eb4e9b65 completion/selectrum -> completion/vertico, part 3
- Rename all functions and variables in the module to reflect the
  namechange (and the irc jump function)
2021-07-25 02:52:04 +03:00
Itai Y. Efrat
24eaa1317c completion/selectrum -> completion/vertico, part 2
- Rename module from `:completion selectrum` to `:completion vertico`
- Rename all files involved
- Do *not* yet rename all the functions, as that messes up git's rename
  detection.
2021-07-25 02:51:15 +03:00
Itai Y. Efrat
7ec7134947 selectrum: improve ivy parity
- add `:pg` bindings
- add `selectrum-minibuffer-map` to `+default-minibuffer-maps`
- add `consult-notmuch`
- add selectrum option for `mu4e-completing-read-function`
- document more parity failings
2021-07-25 02:49:41 +03:00
Henrik Lissner
d289fac8d3
Merge pull request #5228 from Zetagon/lispyville-fix
Remove workaround for upstream lispyville PR
2021-07-23 16:16:22 -04:00
Henrik Lissner
ed21643fec
Merge pull request #5279 from daanturo/evil-multiedit-compat-for-multiple-cursors
Improve multiple-cursors compatibility with evil-multiedit
2021-07-23 16:15:14 -04:00
Henrik Lissner
2a8d376fcb
Merge pull request #5284 from naistran/patch-4
Fix formatting ignoring buffer-local variables
2021-07-23 16:14:59 -04:00
Henrik Lissner
39e39d7f3f Bind gO -> imenu
In Neovim, gO is bound to "open outline for current buffer". Emacs'
analogue for this is imenu. Plus, evil has no default keybind for gO.
2021-07-23 15:44:12 -04:00
Nathan Tran
ad24061a81
Fix formatting ignoring buffer-local variables 2021-07-24 01:54:06 +10:00
Daanturo
65561df25f Improve multiple-cursors compatibility with evil-multiedit
After exiting `multiple-cursors`, when the previous state is
multiedit{,-insert}, return to normal state.

Use case:
- Mark occurrences with evil-multiedit
- `iedit-switch-to-mc-mode` ("M-M")
- Make some edit
- "C-g" to exit `multiple-cursors`

Expected behaviour: Return to evil's normal-state
Observed behaviour before the patch: Emacs stays on emacs-state
2021-07-22 11:38:41 +07:00
Henrik Lissner
084918f4ea editor/evil: correct evil-collection module name 2021-07-12 00:19:49 -04:00
Henrik Lissner
69cfc60243 Bump :editor
abo-abo/lispy@38a7df4 -> abo-abo/lispy@e9731aa
emacs-evil/evil-collection@b6025cf -> emacs-evil/evil-collection@9be3805
emacs-evil/evil@1b3db63 -> emacs-evil/evil@b237462
emacs-straight/adaptive-wrap@91e939b -> emacs-straight/adaptive-wrap@0d5b4a0
emacsorphanage/god-mode@02a402b -> emacsorphanage/god-mode@1d7d647
hlissner/doom-snippets@f7747da -> hlissner/doom-snippets@5c0eb5b
justinbarclay/parinfer-rust-mode@f130fa0 -> justinbarclay/parinfer-rust-mode@c2c1bbe
magnars/multiple-cursors.el@7b13b03 -> magnars/multiple-cursors.el@616fbdd
noctuid/lispyville@89316f0 -> noctuid/lispyville@9c14bed
redguardtoo/evil-nerd-commenter@b8ac35f -> redguardtoo/evil-nerd-commenter@118bebd
willghatch/evil-textobj-anyblock@29280cd -> willghatch/evil-textobj-anyblock@29280cd
2021-07-11 17:52:08 -04:00
Itai Y. Efrat
34fae1c01c Remove remaining Emacs27+ checks
- Remove remaining `EMACS27+` checks, since the whole codebase is
  assumed to run at version 27 or above now
- Remove `EMACS27+` definition since it's no longer needed
2021-07-10 16:03:41 +03:00
Henrik Lissner
3bbebd245e
Merge pull request #5202 from meltinglava/develop
removed unused use in "file-template rust main"
2021-07-08 18:04:20 -04:00
Henrik Lissner
bbd15a16ee
Merge pull request #5179 from RBckmnn/Fix#5128
Fix #5128: No format-on-save by lsp-formatters
2021-07-08 17:45:33 -04:00
meltinglava
85264fea5d
Merge branch 'hlissner:develop' into develop 2021-07-08 13:47:55 +02:00
Henrik Lissner
400fa0836d editor/evil: update disable instructions in readme
Fixes #5242
2021-07-07 12:05:15 -04:00
Leo Okawa Ericson
7b3b74c2ad Remove workaround for upstream lispyville PR
https://github.com/noctuid/lispyville/pull/297 was merged which makes
the changes from https://github.com/hlissner/doom-emacs/pull/5101 obsolete.
2021-07-03 18:47:52 +02:00
meltinglava
3eac1f4e8a removed unused use in "file-template rust main" 2021-06-23 22:52:27 +02:00
Ralf Beckmann
012b759e98 Fix #5128: No format-on-save by lsp-formatters
A call to `format-all--formatter-executable` with the formatter being
equal to `'lsp` or `'eglot` will return `nil`. Therefore, `funcall` was
never called in those cases.
2021-06-14 23:52:16 +02:00
Henrik Lissner
751569f545 Fix +tabs:previous-or-goto typo 2021-06-06 17:49:26 -04:00
Henrik Lissner
47bce8856d Fix gr in compilation buffers (for evil users) 2021-06-06 01:19:49 -04:00
Henrik Lissner
ea80826fd2 gt/gT = add goto Nth tab behavior
As it does in vim.
2021-06-05 14:24:17 -04:00
Henrik Lissner
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
Seong Yong-ju
63cc08be98 lang/java: Add file templates
- `__annotation-type`
- `__enum`
- `__interface`
- `__record`
- `__` → `__class` (rename)
2021-06-05 23:21:53 +09:00
Henrik Lissner
9fb96f9eeb Fix 'setting-constant enable-multibyte-characters' error
Regression caused by 78dde6efd.

Mentioned in #5133
2021-06-04 22:45:36 -04:00
Henrik Lissner
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
Henrik Lissner
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
Henrik Lissner
8cfe38ebb6
Merge pull request #5115 from jmorag/gitignore-haskell
Add haskell gitignore template
2021-06-04 14:20:45 -04:00
Henrik Lissner
027dec3b5f editor/format: use unabbreviated commit
Fix #5136
2021-06-04 14:08:42 -04:00
Henrik Lissner
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
Joseph Morag
b20736c9b7 Add haskell gitignore template 2021-05-30 11:07:29 -04:00
Henrik Lissner
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
Henrik Lissner
d1bed29680 Half-revert 69ea5c202
Fix cursor color stickiness when toggling emacs state.
2021-05-29 12:45:17 -04:00
Henrik Lissner
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
Henrik Lissner
33dbae7cb2 Fix format-all formatters not activating on save 2021-05-28 00:11:28 -04:00
Henrik Lissner
005a71e467 Fix #5104 (again): void-function +format-lsp-enable-on-save-maybe-h 2021-05-27 19:32:56 -04:00