Commit graph

49 commits

Author SHA1 Message Date
Henrik Lissner
ad6a3d0f33
refactor: deprecate featurep! for modulep!
featurep! will be renamed modulep! in the future, so it's been
deprecated. They have identical interfaces, and can be replaced without
issue.

featurep! was never quite the right name for this macro. It implied that
it had some connection to featurep, which it doesn't (only that it was
similar in purpose; still, Doom modules are not features). To undo such
implications and be consistent with its namespace (and since we're
heading into a storm of breaking changes with the v3 release anyway),
now was the best opportunity to begin the transition.
2022-08-14 20:43:35 +02:00
Henrik Lissner
1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
Henrik Lissner
1f8bf7accb
merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
Henrik Lissner
7e400abdc0
fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
Henrik Lissner
1255315bfc
refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
Henrik Lissner
e77a45bc22
docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
Gerry Agbobada
4cabedf94c tweak!(layout): bepo -> vanilla i_ctrl-* keys
BREAKING CHANGE: Ctrl-* keys are back to default meaning in insert mode

Changing the signification of Ctrl-* keys in insert mode seems
unnecessary and ends up confusing because it is not necessarily the same
bindings as in normal mode.
2022-02-09 20:36:42 +01:00
Henrik Lissner
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
Henrik Lissner
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
Henrik Lissner
ca7579a1e9 docs(:input): update READMEs to new format 2021-11-21 20:04:28 +01:00
Gerry Agbobada
a096e9493b fix(layout): prevent magit from stealing t in bépo
Just as magit took control of 's' after "key rotation", magit (at least
when unpinned) takes control of 't' and we need to manually unmap the
key so that 't' goes down one line when the cursor is on a magit section
header
2021-09-15 16:48:09 +02: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
f9e1c99b2b completion/selectrum -> completion/vertico, part 1
- Use `vertico` as default completion engine
- Drop `selectrum` and `selectrum-prescient` support
2021-07-25 02:50:42 +03:00
Gerry Agbobada
cbfd2fadc0
[:input layout bepo] Remove "W" convenience remap
`W` was used to emulate `C-w C-w`, which is useful to quickly change windows
most of the time. But this currently conflicts with edebug evil-collection bindings.
(gives `Key sequence W W starts with non-prefix key W`).

Better to leave the key alone, avoid error messages altogether, and let users redefine
the binding if they want to.
2021-06-13 13:33:20 +02:00
Gerry Agbobada
cbbbf0de5c
fix(input layout bepo): remap visual-line-mode-map (#5019)
* fix(input layout bepo): remap visual-line-mode-map

Fixes #5002

* TO SQUASH: map visual-line-mode-map

See comment for rationale. This is the only way to make the remapping work correctly.

`j` and `k` aren't remapped because `t` and `s` had no meaning at all on
`visual-line-mode-map` in `motion` state.

* TO SQUASH: sharpquote and align
2021-05-10 04:57:06 -04:00
Gerry Agbobada
804504025c
fix(:input layout bepo): Ensure eshell rotation goes after evil-collection maps
Fixes #4847
2021-05-09 12:30:45 +02:00
Gerry Agbobada
dbd49922b8
:input layout: fix calls of +layout-bepo-rotate-keymaps pt.2 (#4973)
* :input layout: fix calls of +layout-bepo-rotate-keymaps pt.2
2021-05-03 14:24:54 -04:00
Gerry Agbobada
ab127b9766
:input layout: fix calls of +layout-bepo-rotate-keymaps
After the refactor, the main function to call to fix small inconsistencies went from a raw evil-collection-setup-hook
 function to a proper helper function with a more logical signature. 

This fixes the calls to the new function, so that the custom fixes are properly applied
2021-05-01 11:44:47 +02:00
Henrik Lissner
09be988c74 Add :input (layout +azerty) to docs 2021-05-01 02:28:44 -04:00
Mathieu Merino
4c53ccac5b input/layout: initial azerty commit 2021-05-01 08:20:34 +02:00
Henrik Lissner
59a8856ecf input/layout: remove redundancies
Some forms snuck into the last commit.
2021-05-01 01:28:20 -04:00
Henrik Lissner
485381f6d1 input/layout: major refactor
To conform the module to Doom's naming and style conventions.

This introduces two breaking changes:

+ doom-bepo-cr-rotation-style was renamed +layout-bepo-cr-rotation-style
+ Replaces the doom-bepo- prefix for this module's bepo library with
  +layout-bepo-

And the following fixes:

+ Corrects the file path in file header comments.
+ input/layout/autoload/bepo.el is no longer compiled/indexed if +bepo
  isn't activated.
2021-05-01 01:25:42 -04:00
Gerry Agbobada
165541cdae
fix(input layout bepo): unmap t/s in Info-mode-map
Fixes #4848
2021-04-17 09:59:09 +02:00
Gerry Agbobada
ec26b91d3a
Add outstanding issues sections for possible contributors
This section is bound to be on Discourse later, keeping the list of
TODOs that got notified on Discord here for now, not to forget
2021-04-14 09:34:38 +02:00
Gerry Agbobada
9ac79c6e86
fix(:input layout bepo): make evilem use gé
For some reason, using only the `map!` call did not work, the reason is
still unclear but calling the evilem-default-keybdings function worked
so going with that.
2021-04-14 08:56:02 +02:00
Gerry Agbobada
3acbf8e90d
Apply changes to helm and selectrum maps 2021-04-14 08:56:02 +02:00
Gerry Agbobada
39b355cfd3
Fix #4736 - remap insert state bindings in minibuffer maps
- Run `doom-bepo--evil-collection-hook` on all minibuffer maps. This
  allows all bindings in <insert-state> to be remapped in minibuffer
  contexts
- Unmap `swiper-C-s`
2021-04-14 08:55:58 +02:00
Gerry Agbobada
4e5316464c
Refactor and add contribution ideas 2021-02-22 10:32:09 +01:00
Gerry Agbobada
065b26e0c5
[:ui layout bepo] Fix notmuch, C-, M- mappings
WIP:
- Add fixme for evil-org remaps

Misc changes:
- Remove notmuch-search binding
  (Unmap the bare "s" keymap from notmuch)
- Remap [] evil-org bindings to ()
- Fix org-capture not finalizing with C-c
- Remap evilem-map
- Add more triggers to minibuffer rotations
- Unmap C-c and C-r from evil-org

Meta:
- Specify bepo layout in maintainer status
- Add basic troubleshooting

In the remapping functions:
- Add operator maps
- Remap C- and M- bindings in normal mode

Respect evil-org-movement-bindings:
This allow non-qwerty users to keep the correct bindings. The additional
let-binding is done to force evaluation of the concatenations and avoid
`void-variable concat` when the map! gets evaluated

Avoid double rotation on magit maps

- Reorder properly magit-mode-map like done on notmuch
  (evil-collection PR#428)
2021-02-22 10:32:03 +01:00
Gerry Agbobada
6665d2b6c2
[:input layout] Follow evil-magit migration 2020-11-28 18:47:11 +01:00
Gerry Agbobada
5373f87234
[bepo] tools/lsp: add t/s/C-t/C-s for lsp-ui-peek
Reference is 2491c8ed2c
2020-10-15 09:57:33 +02:00
Gerry Agbobada
d44c5863c7
Map evil-window-map to C-é
And add a comment about nobreak-char-display seemingly not working with
pgtk on wayland
2020-10-06 03:07:28 +02:00
Gerry Agbobada
15d1626d9b
Revert "[bepo] Map ace window to <leader>éé (from ww)"
This reverts commit f403a05d70.
2020-10-06 02:57:07 +02:00
Gerry Agbobada
f403a05d70
[bepo] Map ace window to <leader>éé (from ww) 2020-10-06 00:02:23 +02:00
Gerry Agbobada
3d36670132
Add evil-org hooks 2020-09-21 23:58:34 +02:00
Gerry Agbobada
b452585da7
Lint 2020-09-21 10:14:33 +02:00
Gerry Agbobada
727f6afc2b
Update Readme with new information 2020-09-21 10:05:07 +02:00
Gerry Agbobada
3c40fde075
[bepo] Use evil-collection over general for keys
evil-collection function for key translation actually keeps doing the
smart thing of deferring the actual call to the point where the keymaps
are defined. Therefore we avoid all the `(void-variable *-map)` errors
and the code is more robust/in line with evil-collection
2020-09-21 09:58:13 +02:00
Gerry Agbobada
3c736f441b
[bepo] Split good and evil hooks
A few bindings and variables are useful for bepo users even without the
evil module activated
2020-09-21 09:55:19 +02:00
Gerry Agbobada
65fed7ad1c
Set navkeys for evil-markdown in bepo 2020-08-26 23:52:51 +02:00
Gerry Agbobada
49ab3dd23f
Separate rotation of minibuffer maps
We cannot use the old method as the hook triggered before the keymaps
are created and possibly modified by (use-package :config :map) hooks
2020-08-24 11:05:00 +02:00
Gerry Agbobada
4f81870fda
Fix #3783: advice org-completing-read in bepo
The original function tries to map `C-c !` in
minibuffer-local-completion-map although `C-c` is a non-prefix key in
this map for bepo users
2020-08-22 15:55:58 +02:00
Gerry Agbobada
71dd71d1aa
Fix evil-escape and C-r in ivy 2020-08-18 11:49:46 +02:00
Gerry Agbobada
089fe56079
Use simpler method to highlight nbsp
If it does not work on non-X builds we will fall back to the ergodis
method based on adding a font-lock class
2020-08-18 11:49:46 +02:00
Gerry Agbobada
473d41f889
Grammar 2020-08-18 11:49:46 +02:00
Gerry Agbobada
bfafcdfb0c
Set lispy-avy-keys as well 2020-08-18 11:49:45 +02:00
Gerry Agbobada
004a2c50fe
Complete readme and fix magit-status crhl keys 2020-08-18 11:49:45 +02:00
Gerry Agbobada
3ef2531356
Remove doom!-order dependency
The doom-init-modules-hook will do the work at the correct timing
2020-08-18 11:49:45 +02:00
Gerry Agbobada
911d7cb82c
Add support for bépo layout in a dedicated module
Evil is loaded too early to be able to wait for the
config.el file of a user to set the CR-rotation style variable.
2020-08-18 11:49:25 +02:00