Commit graph

164 commits

Author SHA1 Message Date
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
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
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
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
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
f3748b2977 Fix #4559: wrong-type-arg error on RET in some comments
Some modes will set comment-line-break-function to an anonymous function
or advice (as octave-mode does), which will cause this fboundp check to
throw a type error when you press RET while on a commented line.
2021-04-18 13:07:18 -04:00
Henrik Lissner
1274de3d34 Minor reformatting & refactors across the board 2021-02-25 13:59:43 -05:00
Henrik Lissner
b89929f3f8
Bind {C-h, SPC h} V to doom/help-custom-variable
For looking up custom variables (i.e. variables intended to be
customized; defined with defcustom).
2021-01-05 19:21:54 -05:00
Henrik Lissner
b96b6ed64e
Fix /* and /** expansion in various languages
Also adds +web-continue-block-comments option to control:

/*
 *
 */

vs

/*

*/

Has a known issue where the indentation for the closing delimiter is off
by one when +web-continue-block-comments is disabled. Will have to look
into that later.
2020-11-09 17:19:14 -05:00
Gerry Agbobada
e164f3714f
Set helm-rg-map in the default +default-minibuffer-maps
It seems like a typo
2020-08-24 11:03:46 +02:00
Henrik Lissner
2c0cbec7c8
Fix universal {C,s}-RET keybinds in tty Emacs
And reformat all X-RET keybinds.
2020-08-05 18:26:07 -04:00
Henrik Lissner
c6766c293d
C-down-mouse-2 -> reset text-scale
Make this universal. Also removes redundant C-mouse-{4,5} mouse
bindings, they're already bound by mouse-wheel-mode.
2020-08-05 18:26:07 -04:00
Henrik Lissner
863eb82efd
S-RET -> insert literal newline
A convention on many text editors and applications is to make RET
auto-indent new lines. That has already been done. Another convention is
for S-RET to insert an unindented line; this commit adds this convention
to Doom.

Relevant to #3694
2020-08-05 18:26:06 -04:00
Henrik Lissner
8bf902d5f4
General refactors & reformatting across the board 2020-06-04 20:13:28 -04:00
Henrik Lissner
d1fcbf244b
doom/toggle-debug-mode -> doom-debug-mode 2020-05-25 20:18:36 -04:00
Henrik Lissner
c690ed600a
lang/swift: add pair rule for string interpolation 2020-05-25 03:43:40 -04:00
Henrik Lissner
ea18c83c0a
General refactors & reformatting across the board 2020-05-15 01:44:53 -04:00
Henrik Lissner
a7c2cbab90
Fix #3110: wrong-number-of-args on backspace
Due to a regression in 82ddc8633.
2020-05-12 22:40:07 -04:00
Henrik Lissner
82ddc86335
Move RET & backspace fixes out of +smartparens feature
Neither of these are tied to smartparens, and should be available to
folks that have disabled +smartparens.
2020-05-12 19:42:03 -04:00
Henrik Lissner
798b5bdaea
Add +default-want-RET-continue-comments option
For disabling comment continuation on RET.
2020-04-30 16:29:12 -04:00
Henrik Lissner
09d344541f
epa-pinentry-mode -> epg-pinentry-mode
Because epa-pinentry-mode is deprecated in 27+
2020-04-23 16:52:54 -04:00
Henrik Lissner
064603f6e6
Only bind C-s in minibuffer if ivy/helm are available 2020-03-28 20:08:53 -04:00
Henrik Lissner
8f685a3c31
Fix #2756: make C-a/C-e truly shift-select aware 2020-03-28 00:41:04 -04:00
Henrik Lissner
169f9a6121
General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
Henrik Lissner
2fcc338702
Don't disable backquote in lisp mode comments 2020-03-12 11:30:20 -04:00
Henrik Lissner
dd402b7db3
Remove references to enh-ruby-mode 2020-03-12 11:29:54 -04:00
Henrik Lissner
69f14bc3da
Apply smartparens lisp rules to sly-mrepl-mode 2020-03-06 15:26:36 -05:00
Henrik Lissner
f426623e4b
Revert 3bb384f95 & improve ocaml comment continuation
Back to the default behavior because this implementation was too buggy.
Solution needs a rework.
2020-02-25 22:35:50 -05:00
Henrik Lissner
80b5c8a30f
Remove Fuco1/smartparens#963 workaround
Causes double closing parens in 27.
2020-02-21 23:20:43 -05:00
Henrik Lissner
114be4af57
Don't use c-toggle-{electric-state,auto-newline} globally
Fixes an odd error where:

1. You open an elixir-mode buffer
2. elixir-mode sets `mode-name` to a non-string value
3. cc-mode is pulled in by one of its dependencies
4. `c-toggle-electric-state` is called from the config/default module
5. Which calls `c-update-modeline`
6. Which operates on `mode-name` and assumes it is a string
7. And a wrong-type-argument: stringp error is thrown
2020-02-16 02:26:38 -05:00
Henrik Lissner
bee7798a50
Fix default encryption recipient detection 2020-01-18 20:51:58 -05:00
Henrik Lissner
a332885d33
Remove M-ret binds; make C-ret binds less aggressive
They were a tad too aggressive. Our C-ret keybinds are more than enough.
I've removed them from insert state maps, however, so that those
keybinds won't override new C-ret keybinds on non-evilified minor mode
keymaps (for evil users).
2020-01-01 19:34:33 -05:00
Henrik Lissner
445ba1a46d
Minor refactors & comment revision across the board 2019-12-31 19:18:02 -05:00
Henrik Lissner
a947f64ff2
Replace ace-link with link-hint
Better link support, easier to extend, and maintained more actively.
2019-12-31 00:00:10 -05:00
Henrik Lissner
0ac7facea7
Reorganize & rethink help commands
Changes:
- Move <help>da to <help>u & <help>du = lookup docs for an autodef
- Rebind <help>dC = goto private init file (and jump to doom! block)
- Add <help>u & <help>du = lookup docs on an autodef
- Add <help>dl = text search on all packages in load-path
- Add <help>dL = text search on all load el files

New <help>p prefix for package help commands:
- <help>dpc = jump to a config block for a package
- <help>dpd = goto private packages.el file
- <help>dph = open a package's homepage (its repo or on melpa)
- <help>dpp = lookup docs on a package (including Doom info; what
    module(s) install package, where it is configured, etc)
2019-12-29 18:29:09 -05:00
Henrik Lissner
914b9b0424
config/default: make ace-link fallback to avy-link-addr
And present avy overlays even if there is only one candidate, as the
alternative is jarringly unpredictable, unless you're expecting it.
2019-12-24 19:21:45 -05:00
Henrik Lissner
b88ff2a563
Fix s-backspace for non-evil users 2019-12-23 17:21:30 -05:00
Henrik Lissner
b144a3862a
Bind 'SPC h d S' to text search; expand ivy/helm file-search API 2019-12-23 01:51:43 -05:00
Henrik Lissner
c1879945fd
Replace doom/backward-kill-to-bol-and-indent
WIth new evil-delete-back-to-indentation, with behaves exactly as C-u
does in vim.
2019-12-21 03:30:44 -05:00
Henrik Lissner
0b3895d1e2
Unbind '<help> {/,d /}' 2019-12-06 01:24:25 -05:00
Henrik Lissner
4faa9f7ce2
Rebind '<help> d s'; bind '<help> d x' 2019-12-06 01:22:58 -05:00
Brian Wignall
199a6fab79 Fix typos 2019-12-01 22:31:19 -05:00
Henrik Lissner
12c36187be
Merge pull request #2037 from RBckmnn/KeyBindingsHelpCommands
config/default: add keybinds to display keymaps
2019-12-01 15:43:23 -05:00
Henrik Lissner
d41e4983ec
Bind '<help> t' to load-theme
And remap load-theme to counsel-load-theme.

This replaces the keybind for help-with-tutorial, but `load-theme` is
useful enough to warrant a keybind. `help-with-tutorial` is not.
2019-11-21 14:46:00 -05:00
Ralf Beckmann
f5310fd088 Added keybindings for commands that show keymaps
A new prefix has been added to help-map. That prefix provides access to
various commands that show keybindings/keymaps.
2019-11-09 21:46:25 +01:00
Clement Busschaert
db59ec823e
[keys] which-key desc also on C-h d and C-h r 2019-11-01 12:21:07 +01:00
Henrik Lissner
fb03dd8df3
Remove tramp-read-passwd advice
tramp-current-method is no longer defined in Emacs 27, and this advice
may not be necessary anymore.
2019-10-29 18:19:02 -04:00
Henrik Lissner
73b8a5b496
Redo which-key labels for 'SPC h d' & 'SPC h r'
Renders #1959 obsolete
2019-10-26 23:44:29 -04:00
Henrik Lissner
c25fec5364
Replace 'SPC h R' with 'SPC h r r' 2019-10-26 23:44:29 -04:00
Henrik Lissner
3c6f48f9ec
Move evil & corrective keybinds to respective modules
Keybinds that correct behavior or provide or extend vim functionality
were moved to their respective modules, or to the :editor evil module.

Keybinds in the global space, that are particularly opinionated but
potentially harmful or imposing as a default, or likely for users to
change (like leader keys), are kept in config/default.
2019-10-26 23:44:28 -04:00