Commit graph

154 commits

Author SHA1 Message Date
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
Henrik Lissner
9936bd9623
Add 'SPC h d {k,i,c}'
For jumping to init.el, config.el and packages.el
2019-10-25 20:25:20 -04:00
Henrik Lissner
c649401a92
Fix s-/ for non-evil users 2019-10-24 19:02:16 -04:00
Henrik Lissner
0df480bf85
Bind 'SPC h d l' for text-searching load-path
Co-authored-by: Rudi Grinberg <139003+rgrinberg@users.noreply.github.com>
2019-10-23 00:51:09 -04:00
Henrik Lissner
00849c5e1b
config/default: don't consult authinfo for local sudo TRAMP buffers 2019-10-20 19:57:27 -04:00
Henrik Lissner
154ec46df2
Bind SPC h / and C-h / to apropos-documentation too 2019-10-13 00:18:03 -04:00
Henrik Lissner
968618bbbf
Bind SPC h A and C-h A to apropos-documentation 2019-10-12 23:46:40 -04:00
Henrik Lissner
d87310bd55
Replace evil-commentary with evil-nerd-commenter
The latter provides a comment text object and better commenting support
across various languages.
2019-10-10 16:11:42 -04:00
Henrik Lissner
03cd29e955
Only apply drag-stuff keybinds to global keymap 2019-10-08 02:53:03 -04:00
Henrik Lissner
4d8647fe7a
Add drag-stuff package #562 2019-10-07 21:36:27 -04:00
Henrik Lissner
a3b34a6806
Remove SPC h {D,h} keybinds to reduce accidents
`SPC h h` and `SPC h D` are too easy to hit by accident.
2019-10-05 12:17:14 -04:00