Commit Graph

119 Commits

Author SHA1 Message Date
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
08e125d3d0 lang/scala: fix comment continuation #1515
On Doom's modded newline-and-indent.
2019-06-28 17:28:10 +02:00
2387f56ba1 Rethink how we standardize modified RET
C-RET / C-S-RET = add new "item" below/above
On MacOS
  s-RET / S-s-RET = add new line below/above
Elsewhere
  M-RET / M-S-RET = add new line below/above
2019-06-27 13:22:42 +02:00
6bcddad852 Bind s-x (in visual mode) to kill-region on MacOS
To emulate standard cut behavior on cmd+X on MacOS
2019-06-26 14:31:07 +02:00
0733a6dfac Replace SPC h p with doom/help-packages
Now that it supersedes describe-packages in functionality.
2019-05-30 14:01:48 -04:00
3474e6bf09 lang/cc: move smartparens config to config/default 2019-05-22 03:50:53 -04:00
9f63d94b13 Add doom/help-package-homepage command (SPC h d P) 2019-05-20 21:09:11 -04:00
243a3a84a8 Add doom/help-news-search command (SPC h d N) 2019-05-20 21:09:11 -04:00
b821bfca1f Fix newline-and-indent advice forgetting indentation
e.g. in python-mode docstrings. The point-in-string case is no longer
handled, because indent-according-to-mode handles it properly already.
2019-05-15 15:22:08 -04:00
0f0fdbc00c Add doom/{increase,decrease,reset}-font commands
Borrows the idea from zoom-frm (see #1389).
2019-05-12 21:56:52 -04:00
c324992f7a SPC h p -> describe-package
We already have doom/help-packages on SPC h d p
2019-05-06 22:09:43 -04:00
2823c4e467 Bind SPC h R = doom/reload
As an alias to SPC h r r
2019-05-02 18:18:01 -04:00
1c976dc0e4 Minor, general refactors
Also rename custom lookup handlers for consistency and use the new
inline :async property instead.
2019-05-02 17:57:31 -04:00
6d314c2795 Revise and update docstrings and comments 2019-05-01 21:02:28 -04:00
4aa65aa019 Move avy, ace-link & ace-window out of core
They don't belong there, and ace-window is no longer a core dependency
anyhow.
2019-05-01 21:02:28 -04:00
a03b676297 Move leader which-key labels to core-keybinds 2019-04-26 17:29:54 -04:00
40f6a2b6e3 Rewrite vanilla sandbox & report-bug commands
- Renamed doom/open-vanilla-sandbox to doom/sandbox (because it's not
  just for vanilla testing anymore)
- Renamed doom/open-bug-report to doom/report-bug (for consistency with
  `report-emacs-bug`; makes it easier to discover)
- Add SPC h d b for doom/report-bug
- Add SPC h d s for doom/sandbox
2019-04-24 18:16:06 -04:00
fa7f7042b0 Add and expand doom/help* commands
Adds the following commands:

- doom/help (opens the Doom manual)
- doom/help-search (for searching through org headlines in Doom's
  documentation)
- doom/help-faq (for searching the FAQ)
- doom/help-news (for browsing the Doom newsletters)
- doom/help-autodefs (renamed from doom/describe-autodef -- for looking
  up documentation on autodef function/macros, like
  `set-lookup-handler!`)
- doom/help-modules (renamed from doom/describe-module, for jumping to a
  Doom module's documentation)
- doom/help-packages (renamed from doom/describe-package and recently
  fixed -- looks up information about installed packages, including what
  Doom module(s) install it and where it is configured)
- doom/help-package-config (for searching and jumping to any block where
  a package is configured in Doom Emacs)

Also adds the SPC h d (or C-h d) prefix for Doom-specific help commands.
SPC h D will invoke doom/help.

However, the documentation itself hasn't been committed yet, so some of
these commands may be useless atm. Sorry!
2019-04-24 18:16:06 -04:00
1fb2178716 Move sp skip-match disabler to config/default
This shouldn't be mandatory.
2019-04-24 18:16:04 -04:00
94a2bc77ef Unbind C-h in help-map
It interferes with which-key help/paging for the SPC h prefix.
2019-04-12 16:13:51 -04:00
5cdb96888f config/default: refactor/reformat help keybinds
Reduce internal usage of map! and improve readability of comments for
help-map binds.
2019-04-04 22:38:46 -04:00