Commit graph

882 commits

Author SHA1 Message Date
Lele Gaifax
e5213f20e5 nit: fix several documentation typos 2022-01-10 02:21:49 +01:00
Celso Bonutti
1b895a0564 fix(default): smartparens rules for haskell
The default haskell-mode rules would result in an extra } appended to
the closing pair (#5448).

Fix: #5448
Close: #5450
2022-01-05 04:05:08 +01:00
Henrik Lissner
e92ce51c13
merge: pull request #5888 from ethan-leba/mac-woman
fix(default): only use `woman` on macOS
2021-12-15 18:04:25 +01:00
Ethan Leba
d720b29cd3 feat(default): set woman manpath with man if able 2021-12-15 09:55:54 -05:00
Ethan Leba
6e0b2eafa6 fix(default): only use woman on macOS
`man -k "^"` is very slow on macOS.

```
sh-3.2$ time man -k "^" > /dev/null

real	0m1.599s
user	0m0.391s
sys	0m1.209s
```
2021-12-14 20:51:34 -05:00
Henrik Lissner
23f6f90515 bump: :config
noctuid/link-hint.el@d3c5bacc9c -> noctuid/link-hint.el@3be270f3a7
2021-12-14 01:21:33 +01:00
Henrik Lissner
f0ba6c99b2 fix(default): search symbol at point from project root
...Rather than current directory.

While +default/search-project-for-symbol-at-point should operate out of
the current project's root, +default/search-notes-for-symbol-at-point
must operate out of org-directory, and no where else, even if
org-directory is not a valid project. 411ed0c8f8 was written to fix
that, but it indirectly broke
'+default/search-project-for-symbol-at-point' (causing it to always
resolve to the current directory, rather than the current project's
root).

Amend: 411ed0c8f8
Fix: #5831
2021-11-25 17:05:42 +01:00
Jorge Javier Araya Navarro
cd93df6ae8 fix(default): use persp-keymap-prefix's setter 2021-11-24 13:11:17 +01:00
Henrik Lissner
49a464a870 fix(default): missing evil-ex-registers for non-ivy users
It was `evil-show-registers' that we wanted, not
`evil-ex-registers' (which never existed in the first place). Folks who
did not have :completion ivy enabled (e.g. vertico and helm users) would
see 'commandp, evil-ex-registers' errors when pressing `SPC i r`. Folks
who had it enabled would transparently invoke `counsel-evil-registers'
instead (because it was remapped).

Fix: #5753
2021-11-21 15:34:57 +01:00
Henrik Lissner
407cf56a04 fix(multiple-cursors): references to removed keymaps
Fix: #5802
Ref: hlissner/evil-multiedit@36904ce86e
2021-11-21 03:46:45 +01:00
Henrik Lissner
411ed0c8f8 fix(default): search commands not respecting default-directory
Commands that delegate to `+default/search-project-for-symbol-at-point`
to search a directory (like +default/org-notes-search) would not scope
searches to default-directory.
2021-11-20 00:02:11 +01:00
Seong Yong-ju
a7d30f6853
fix: +default/discover-projects not reading depth
Fix: #5736
Fix: #5735
2021-11-18 19:15:56 +01:00
shelper
8886216874
bump: :tools biblio
bdarcus/bibtex-actions@08c6ca0e5b -> bdarcus/citar@fd33f5c4f7

bibtex-actions is now called citar, and the package comes with
configuration for embark.

Fix: #5723
Close: #5747
Co-authored-by: MPNV38 <MPNV38@zebra.com>
2021-11-18 19:14:51 +01:00
Carlos Pita
4903db036d tweak(default): improve smartparens vanilla bindings
Make bindings better conform to traditional sexp navigation ones.

Fix #5575
2021-10-05 02:30:51 +02:00
Itai Y. Efrat
74aae48944 feat(default): add .emacs.d search on <leader> s e 2021-09-23 11:40:04 +02:00
Daanturo
e19a6523ae feat(default): may include project name for SPC f Y
+default/yank-buffer-path-relative-to-project: with non-nil prefix arg,
copy the file name relative to the project root's parent.

Sometimes we also want to specify the project name to let others know
which is the currently mentioned project.
2021-09-15 19:01:46 +02:00
Henrik Lissner
2bc67d8387 bump: :app :checkers :config :emacs :term :tools :ui
Alexander-Miller/treemacs@a6f9e9f1ce -> Alexander-Miller/treemacs@63e2bc207a
Silex/docker.el@9bcefbe54d -> Silex/docker.el@4fc69969b1
akermu/emacs-libvterm@2b1392cb2b -> akermu/emacs-libvterm@2681120b77
bdarcus/bibtex-actions@6e3a194c3a -> bdarcus/bibtex-actions@08c6ca0e5b
dash-docs-el/dash-docs@dafc8fc9f1 -> dash-docs-el/dash-docs@29848b6b34
dgutov/diff-hl@992559f98a -> dgutov/diff-hl@40c89a7b0d
dimitri/switch-window@2801d9b3a9 -> dimitri/switch-window@8d9fe251d8
editorconfig/editorconfig-emacs@e10fa22b13 -> editorconfig/editorconfig-emacs@2ab86dc9a8
ema2159/centaur-tabs@9c7c936e4e -> ema2159/centaur-tabs@8b4249c405
emacs-circe/circe@d6f1fa1864 -> emacs-circe/circe@77e16de3b9
emacs-lsp/lsp-treemacs@905cc74726 -> emacs-lsp/lsp-treemacs@d82df44d63
emacsorphanage/osx-trash@0f1dc052d0 -> emacsorphanage/osx-trash@af74a2055a
emacsorphanage/quickrun@35e91f4b6c -> emacsorphanage/quickrun@78317951cd
flycheck/flycheck@21d52264aa -> flycheck/flycheck@784f184cdd
hlissner/emacs-doom-themes@9e2680b918 -> hlissner/emacs-doom-themes@65fb964f36
https://git.savannah.gnu.org/git/emms.git@6e0aaaf4c559 -> https://git.savannah.gnu.org/git/emms.git@c42fab572846
ideasman42/emacs-spell-fu@1abcb5594e -> ideasman42/emacs-spell-fu@10823ae58f
ideasman42/emacs-undo-fu@e0ad06b5ef -> ideasman42/emacs-undo-fu@34b27c01da
joostkremers/writeroom-mode@b648b34017 -> joostkremers/writeroom-mode@7f4ec92404
kidd/org-gcal.el@4c2616a4f8 -> kidd/org-gcal.el@80e6f9501f
magnars/expand-region.el@4b8322774d -> magnars/expand-region.el@95a773bd8f
millejoh/emacs-ipython-notebook@09af85821e -> millejoh/emacs-ipython-notebook@0600c286bd
mohkale/consult-eglot@a6aeb6fa07 -> mohkale/consult-eglot@28a09cc839
noctuid/link-hint.el@09ba5727d8 -> noctuid/link-hint.el@d3c5bacc9c
rolandwalker/nav-flash@55786c9582 -> rolandwalker/nav-flash@2e31f32085
skeeto/elfeed@243add9e74 -> skeeto/elfeed@162d7d545e
szermatt/emacs-bash-completion@65e54c6f9c -> szermatt/emacs-bash-completion@c5eaeed156
tarsius/hl-todo@5ac0076cfe -> tarsius/hl-todo@42f744ffb5
tecosaur/emacs-everywhere@64ba2e3f30 -> tecosaur/emacs-everywhere@da88fa2d04
tkf/emacs-request@f3a5b4352e -> tkf/emacs-request@2b68b3ca54
tmalsburg/helm-bibtex@a0d32ab167 -> tmalsburg/helm-bibtex@b85662081d
yoshiki/yaml-mode@3a57058468 -> yoshiki/yaml-mode@63b637f846
yqrashawn/fd-dired@c223aee30a -> yqrashawn/fd-dired@458464771b
2021-09-15 17:47:17 +02:00
Henrik Lissner
69f8f5b242 feat(default): narrow to multi-line region in +default/search-buffer
Since multi-line inputs are useless to consult-line and swiper, I've
changed +default/search-buffer to be more DWIM (do-what-I-mean). i.e. if
a selection is active when invoking it, and...

- The selection is multi-line: restrict the search to that region.
- The selection is *not* multi-line: use the selection as the initial
  input.
- Otherwise, search the whole buffer as normal.
2021-09-15 01:22:33 +02:00
Henrik Lissner
35f701a999 fix(default): search region literally in +default/search-buffer 2021-09-15 01:22:33 +02:00
Itai Y. Efrat
a612220369 refactor!(vertico): evil minibuffer keybindings
BREAKING CHANGE: remove +vertico/(next|previous)-candidate-preview.

BREAKING CHANGE: Move vertico-(next|previous)-group to C-M-j/k now that

C-S-j/k now default back to scrolling up and down pages.

Update docs to reflect these changes.
2021-09-15 01:41:37 +03:00
Itai Y. Efrat
d2d940fdf1 feat(lsp,vertico): add consult-eglot
- Load when :tools lsp +eglot and :completion vertico are on
- Bind consult-eglot-symbols to <leader> c j
2021-09-15 01:03:11 +03: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
Henrik Lissner
6b5c34a1db fix(default): region handling in +default/search-buffer
+default/search-buffer now correctly uses the active selection when
invoking `consult-line` (on 'SPC s s' or 'SPC s b').

Close #5406

Co-authored-by: Sævar Berg <saevarb@users.noreply.github.com>
2021-09-14 19:33:26 +02:00
Henrik Lissner
277a376b43 fix(default): don't override S-RET/C-j in occur buffers
These keybinds were too wide-reaching. I can only consider them
reasonable defaults for evil users, not vanilla users.

Fix #3953
2021-08-16 17:16:30 -04:00
Henrik Lissner
3c66264656 fix(default): bind s-f to consult-line for macos users
Swiper is present if the ivy or helm backends are enabled, otherwise,
use consult-line.
2021-07-31 04:35:49 -04:00
Itai Y. Efrat
b7901231d4 feat(vertico): add <leader> s B binding 2021-07-31 10:45:00 +03:00
Itai Y. Efrat
9e31d0dac0 fix(vertico): <leader> c J binding
- needs to be `cmd!!` for the prefix argument
- use descriptive quoted symbol instead of `'(4)` for prefix arg
2021-07-31 10:44:00 +03:00
Henrik Lissner
3d0b609c1e
Merge pull request #5303 from daanturo/project-async-command-binding
Add "SPC p &" binding as projectile-run-async-shell-command-in-root
2021-07-28 21:28:08 -04:00
Henrik Lissner
c2e6db27d0 tweak: adopt +vertico as our default backend
This has been a long time coming. Vertico et co turned out to be what I
wanted ivy to be and more.
2021-07-28 13:11:45 -04:00
Henrik Lissner
33b646826b fix(vertico): add counsel-file-jump analogue
Fix 'SPC f F' / 'C-c f F' for vertico users
2021-07-28 12:54:23 -04:00
Daanturo
5ed026e1c1 Add "SPC p &" binding
As projectile-run-async-shell-command-in-root
2021-07-27 22:05:32 +07:00
Henrik Lissner
dd9657d90d Fix SPC f F w/ vertico + consult
Not a perfect analogue to counsel-file-jump, but it's a start (and
better than the previous no-op).
2021-07-25 17:55:59 -04:00
Henrik Lissner
4ac5332a1d
Merge pull request #5271 from Wetlize/add-roam2
lang/org: Add `+roam2` flag for org-roam v2
2021-07-25 04:13:03 -04:00
Itai Y. Efrat
770084fdda vertico: use consult-line in +default/search-buffer
While it only gives one candidate per line, it's more important to have
something that uses the completion UI
2021-07-25 02:52:04 +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
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
Itai Y. Efrat
e65dffd790 selectrum: remove selectrum-minibuffer-map from...
`+default-minibuffer-maps`.

It's derived from `minibuffer-local-map` so this is unnecessary.
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
d3eff82b9d selectrum: add experimental vertico flag 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
ebd72b715e selectrum: remove some bindings
- the embark actions use packages that aren't installed or don't work
- the selectrum minibuffer bindings use the super key, which will
  probably conflict with tiling window managers
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
89fd6b66b3 selectrum: add preview to non-consult functions 2021-07-25 02:50:42 +03:00
Itai Y. Efrat
49a5c51615 selectrum: fix bugs when counsel is loaded (hack)
some doom functions check the completion module with `fboundp`'s instead
of `featurep!`, and counsel can be loaded by using e.g. `lispy`. we add
temporary fixes for this by checking for selectrum stuff first, but this
should be given a more robust fix later on

also we document the selectrum PR's hacks in the TODO.org

see discussion on #5013
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
ed922a62cb selectrum: improve bindings
- add missing emacs bindings
- properly feature guard swiper related bindings
- for selectrum, unbind `SPC s B` and temporarily bind `SPC s s` to
  isearch to prevent don't get errors until we decide what to do there.
- update readme to reflect that
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
4e74a221cc selectrum: rework consult previews
- add `C-M-j` and `C-M-k` as preview scrolling keys
- add `consult-theme` to functions that don't get previewed
  automatically (also it works now)
2021-07-25 02:50:42 +03:00
Itai Y. Efrat
26a310d04c selectrum: improve ivy parity
- add `completion-at-point` as analogue to `cousnel-company`
- fix emacs-bindings `counsel-company` binding to respect helm and selectrum
- add org jump commands `consult-org-heading` and `consult-org-agenda` bindings
- add `consult-history` as `counsel-minibuffer-history` analogue
- add support for `doom/help-search`
- update TODO.org
2021-07-25 02:50:31 +03:00
Itai Y. Efrat
b9757e75ed selectrum: update bibtex-actions config
- fix loading order issue
- include (temporary?) binding in `SPC n b` to `bibtex-actions-open-entry`
2021-07-25 02:49:41 +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
Itai Y. Efrat
b9e34835c7 selectrum: update bindings 2021-07-25 02:49:41 +03:00
Sebastian Sturm
0cdc7ec8e1 Add selectrum branch for SPC-* symbol search
other +default/search-... convenience methods already support
Selectrum explicitly, so perhaps there's a good reason not to
do the same for +default/search-project-for-symbol-at-point?
2021-07-25 02:49:41 +03:00
Itai Y. Efrat
750721492c selectrum: add consult-lsp
- add `consult-lsp` to tools/lsp if the selectrum module is active
- add the selectrum/consult version of workspace symbol search under `SPC c j/J`
- update TODO.org
2021-07-25 02:49:41 +03:00