Commit Graph

139 Commits

Author SHA1 Message Date
dd402b7db3 Remove references to enh-ruby-mode 2020-03-12 11:29:54 -04:00
69f14bc3da Apply smartparens lisp rules to sly-mrepl-mode 2020-03-06 15:26:36 -05:00
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
80b5c8a30f Remove Fuco1/smartparens#963 workaround
Causes double closing parens in 27.
2020-02-21 23:20:43 -05:00
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
bee7798a50 Fix default encryption recipient detection 2020-01-18 20:51:58 -05:00
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
445ba1a46d Minor refactors & comment revision across the board 2019-12-31 19:18:02 -05:00
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
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
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
b88ff2a563 Fix s-backspace for non-evil users 2019-12-23 17:21:30 -05:00
b144a3862a Bind 'SPC h d S' to text search; expand ivy/helm file-search API 2019-12-23 01:51:43 -05:00
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
0b3895d1e2 Unbind '<help> {/,d /}' 2019-12-06 01:24:25 -05:00
4faa9f7ce2 Rebind '<help> d s'; bind '<help> d x' 2019-12-06 01:22:58 -05:00
199a6fab79 Fix typos 2019-12-01 22:31:19 -05:00
12c36187be Merge pull request #2037 from RBckmnn/KeyBindingsHelpCommands
config/default: add keybinds to display keymaps
2019-12-01 15:43:23 -05:00
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
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
db59ec823e [keys] which-key desc also on C-h d and C-h r 2019-11-01 12:21:07 +01:00
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
73b8a5b496 Redo which-key labels for 'SPC h d' & 'SPC h r'
Renders #1959 obsolete
2019-10-26 23:44:29 -04:00
c25fec5364 Replace 'SPC h R' with 'SPC h r r' 2019-10-26 23:44:29 -04:00
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
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
c649401a92 Fix s-/ for non-evil users 2019-10-24 19:02:16 -04:00
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
00849c5e1b config/default: don't consult authinfo for local sudo TRAMP buffers 2019-10-20 19:57:27 -04:00
154ec46df2 Bind SPC h / and C-h / to apropos-documentation too 2019-10-13 00:18:03 -04:00
968618bbbf Bind SPC h A and C-h A to apropos-documentation 2019-10-12 23:46:40 -04:00
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
03cd29e955 Only apply drag-stuff keybinds to global keymap 2019-10-08 02:53:03 -04:00
4d8647fe7a Add drag-stuff package #562 2019-10-07 21:36:27 -04:00
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
bd93682de5 config/default: tramp-default-method = ssh 2019-09-20 17:18:16 -04:00
2d365619cd General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
c0d2ab331e Remove command-log-mode
This isn't vital enough a package to be included in core. Emacs already
provides view-lossage, and there are other, better packages for
displaying your keybinds as you type.

Even one that I've been working on (with special evil support):
https://github.com/hlissner/doom-emacs-private/blob/master/lisp/keycast.el
2019-09-06 00:13:40 -04:00
975928193b Remove doom/open-bug-report command #1752
The command was removed some time ago and won't be restored (for now).
2019-09-04 19:02:50 -04:00
19ecf8e46a Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
8482f26d51 Move cc modes smartparen functions to config/default 2019-07-22 23:51:39 +02:00
567d0b6d16 Have smartparens back off of cc modes in 27+ 2019-07-22 02:37:46 +02:00
e39a458be7 config/default: add smartparens fix for markdown asterixes 2019-07-22 02:37:44 +02:00
149b2617b0 💥 revise hook/var fns naming convention (2/2)
This is second of three big naming convention changes. In this commit,
we change the naming conventions for hook functions and variable
functions:

1. Replace the bar | to indicate a hook function with a -h suffix, e.g.

     doom|init-ui -> doom-init-ui-h
     doom|run-local-var-hooks -> doom-run-local-var-hooks-h

2. And add a -fn suffix for functions meant to be set on variables,
   e.g.

     (setq magit-display-buffer-function #'+magit-display-buffer-fn)

See ccf327f8 for the reasoning behind these changes.
2019-07-22 02:30:38 +02:00
0a7173b7f8 Auto-pair ( in lisps if cursor is before another ( 2019-07-12 15:05:08 +02:00
e146cba00e Change g s / and g s SPC
The former searches the current window/buffer, the latter searches all
windows in the frame.

Removes g s ? (deemed not as useful as avy-goto-char-timer)
2019-07-09 02:34:24 +02:00
7f964bfa65 Fix +1 space before closing comment delimiter in C languages 2019-07-09 02:19:35 +02:00
d748fe0cd2 Improve smartparens support for (* *) comment blocks
In tuareg-mode and fsharp-mode
2019-07-09 02:19:35 +02:00
c14a4c8818 Move newline-and-indent advice outside of after! smartparens
Makes it easier to disable.
2019-07-08 22:08:59 +02:00
daa7107def Fix #1538: C-k in switch-buffer killing buffers
Caused by an upstream change.
2019-07-05 16:50:03 +02:00