Commit Graph

647 Commits

Author SHA1 Message Date
Henrik Lissner
ecb4a7e838
Move 'SPC f m' to 'SPC f R'
'SPC f R' was formerly projectile-recentf, which is already on 'SPC p r'
2019-11-24 16:50:47 -05:00
Henrik Lissner
44e22b7f80
tools/magit: replace +magit/clone w/ magit-clone
The former no longer works, since ghub's API has changed. Meanwhile, the
magit-clone command has grown in features to match (and surpass)
+magit/clone, so we'll just use that instead.
2019-11-23 01:21:25 -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
Henrik Lissner
b63e62ef49
config/literate: allow config.org to be a symlink #2079 2019-11-19 20:37:49 -05:00
Henrik Lissner
088541a32d
Bind 'SPC s S' to swiper-isearch-thing-at-point 2019-11-17 23:41:00 -05:00
Henrik Lissner
8aff949449
config/default: remove unneeded feature gating 2019-11-16 21:33:17 -05:00
Henrik Lissner
bd4755123f
Replace */tasks commands w/ magit-todos-list
If we want ivy/helm interfaces to it, we should use magit-todos as a
backend.
2019-11-15 22:17:31 -05:00
Henrik Lissner
7192a686a2
Use swiper-isearch instead of swiper
Much faster to start up
2019-11-15 22:17:30 -05:00
Henrik Lissner
3d26befd47
Move 'SPC /' to 'SPC s'
/ is harder to reach than s, more so on certain keyboard layouts, so
'SPC /' has been moved to 'SPC s'. Similar has been done to other / and
. leader keybinds. Whats more, 'SPC s' for snippets is seldomly used and
available through other means, so it was removed.

Summary:
- 'SPC /' moved to 'SPC s'
- 'SPC f .' and 'SPC f /' moved to 'SPC f f' and 'SPC f F', respectively
- 'SPC p /' removed (already on 'SPC p f')
- 'SPC p ?' moved to 'SPC p F' (doom/find-file-in-other-projects)
- 'SPC n /' moved to 'SPC n s' (+default/org-notes-search)
- 'SPC n .' removed (already on 'SPC n N')
- Remove 'SPC s' prefix for snippets. Was seldomly used and most of its
  commands are available on other keys or through `M-x`, which is
  enough.
2019-11-15 22:17:30 -05:00
Henrik Lissner
21eeb5c1a5
Bind 'SPC i {f,F}' to insert current file name/path 2019-11-15 22:17:30 -05:00
Henrik Lissner
46bea60ad3
Add :Read ex command & 'SPC i p' keybind
This can be used to extract paths from evil-ex style paths. e.g. the
following inserts the stdout into the current buffer (assuming we're in
~/some/project/filename.c):

  :R!echo %:P      ~/some/project
  :R!echo %:t      filename.c
  :R!echo %:e      c
  :R!echo %:r      filename
  :R!echo ~/another/project/%:t:r.h
    ~/another/project/filename.h
  :R %             contents of current file

http://vimdoc.sourceforge.net/htmldoc/cmdline.html#filename-modifiers
has a full list of vim filename modifiers. Doom doesn't support all of
them, but it does support most of them.
2019-11-15 22:17:30 -05:00
Henrik Lissner
64222c69c8
Fix wrong-number-of-arguments on newline-and-indent
And ensure all custom comment-line-break-function functions its
argument requirements.
2019-11-12 15:24:02 -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
Henrik Lissner
f4e641950c
Minor, general refactors 2019-11-05 18:46:07 -05:00
Henrik Lissner
e47d357e56
Fix regexp quoting in +default/search-notes-for-symbol-at-point 2019-11-05 18:44:19 -05:00
Henrik Lissner
d1f8c88c07
Remove 'SPC b j'
The jump list command isn't buffer-local, and so doesn't belong under
the 'SPC b' prefix. It is also already present on 'SPC / j'.
2019-11-03 16:43:12 -05: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
Clement Busschaert
ae26ff3282
[keys] which-key desc for window->+maximize map 2019-11-01 12:18:11 +01:00
Henrik Lissner
0b8e7a27b6
Minor refactoring/reformatting across the board 2019-10-31 14:35:07 -04:00
Henrik Lissner
9fa447a83b
Remove SPC DEL binding
Instead, 'ga' (or calling `what-cursor-position`) will trigger
nav-flash, to serve as the "where's my cursor" command from now on.

Closes #1883
2019-10-30 22:09:52 -04: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
c9faf33780
Add 'SPC q {f,F}' keybinds
- SPC q f' = delete current frame
- SPC q F' = clear current frame (kill all buffers and windows)
2019-10-29 01:11:06 -04:00
Henrik Lissner
ecc5adc6bf
Bind SPC ; to pp-eval-expression
Improved output formatting.
2019-10-29 01:10:43 -04:00
Henrik Lissner
ba7b8d661d
Bind C-u, C-b & C-f less aggressively #1975 2019-10-28 23:23:14 -04:00
Henrik Lissner
5f9778edd6
editor/multiple-cursors: fix unbound evil-mc keybinds 2019-10-27 14:03:45 -04:00
Henrik Lissner
b06b6b5dba
config/default: bind 'SPC / {j,m}'
To 'jump to position in jump list' and 'jump to mark', respectively
2019-10-27 14:03:45 -04:00
Henrik Lissner
3d21f4ef5e
Add +default/restart-server command
Its keybind on 'SPC q d' was already pushed in ace1eceab
2019-10-26 23:44:29 -04:00
Henrik Lissner
23d36d3c27
Rebind 'C-{-,=}'; bind 'M-C-{-,=}'
The former is buffer-local, the latter is frame-local.
2019-10-26 23:44:29 -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
177eb9f4cb
config/default: expand 'SPC n' prefix
I got 99 problems, but my notes ain't one
2019-10-26 00:38:30 -04:00
Henrik Lissner
f2b77fe2c0
Add whole-buffer (g) and defun (f) text objects 2019-10-26 00:37:12 -04:00
Henrik Lissner
cf21cdc68c
completion/ivy: minor refactor 2019-10-25 20:25:21 -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
467bd53b70
config/default: bind 'SPC b {K,Z}'
- 'SPC b K' -> kill all buffers (clear session)
- 'SPC b Z' -> kill all buried buffers
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
0bf2f1d9bf
Bind 'SPC p C' = rerun last command, 'SPC p g' = configure project 2019-10-23 14:24:01 -04:00
Henrik Lissner
0c7bf323c1
Bind 'SPC c C' = recompile, 'SPC f C' = copy this file 2019-10-23 14:20:18 -04:00
Henrik Lissner
31b8db0480
Bind 'SPC c s' to send-region-to-repl #1941 2019-10-23 14:08:23 -04:00
Henrik Lissner
d6cbe5dc8b
config/default: bind 'SPC f U' to doom/sudo-this-file 2019-10-23 01:48:49 -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
820264166c
config/default: bind 'SPC o f' -> make-frame
Suggested by @rgrinberg
2019-10-23 00:51:09 -04:00
Henrik Lissner
d246307f87
config/default: bind SPC c {F,i,r} to LSP commands
These are experimental keybinds. I'm looking for a way to integrate
LSP's formatter commands (and lsp-organize-imports) into the :editor
format module. And a way to unify refactoring commands (perhaps with emr
or erefactor), including lsp-rename.

- 'SPC c F' -> format region or buffer
- 'SPC c i' -> organize imports
- 'SPC c r' -> rename symbol at point

Addresses #1417
2019-10-22 19:55:50 -04:00
Henrik Lissner
1dc75c0626
config/default: bind 'SPC t r' -> read-only-mode
And alphabetize SPC t prefix.
2019-10-22 19:12:04 -04:00
Henrik Lissner
f79d191701
completion/ivy: use region is active & fix regex quoting
Fixes #1930
2019-10-22 12:36:43 -04:00
Henrik Lissner
4c2f718557
config/default: alias 'SPC p {f,F}' to SPC p {/,.} 2019-10-21 16:46:10 -04:00
Henrik Lissner
573675b6e8
Merge pull request #1921 from flatwhatson/info-binds
config/default: add {apropos,Info}-mode keybinds
2019-10-21 06:28:47 -04:00
Henrik Lissner
4238638839
Merge pull request #1924 from flatwhatson/save-buffer
config/default: restore 'SPC f s' keybind; add 'SPC f S'
2019-10-21 06:28:06 -04:00
Henrik Lissner
5aa8972e1d
config/default: rethink 'SPC b {s,S}' keys
Relevant to #1923
2019-10-21 06:26:57 -04:00
Henrik Lissner
65dcd901a0
Move common evil-collection-key-blacklist entries to editor/evil 2019-10-21 06:26:57 -04:00
Henrik Lissner
c55e86a54b
config/defaut: bind 'SPC p s' to projectile-save-project-buffers 2019-10-21 06:26:57 -04:00
Andrew Whatson
0bed9d1312 Restore save file binding on SPC f s
Put `save-buffer` back on `SPC f s` to save without prompt, and add
`write-file` as `SPC f S` for saving with prompt for filename.

Fixes #1923
2019-10-21 19:29:25 +10:00
Andrew Whatson
ecf6a3875e Add some bindings for apropos and info-mode 2019-10-21 14:30:34 +10:00
Henrik Lissner
9402a0e09d
Bind 'SPC i u' to 'insert unicode character'
With a counsel remapping. We need a helm one too.
2019-10-20 19:57:28 -04:00
Henrik Lissner
45a17c86ba
Add +ivy/jump-list & bind 'SPC b j' to it
Falls back to evil-show-jumps for non-evil users.
2019-10-20 19:57:27 -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
9634a3860e
config/default: invoke magit-todos-list on SPC p t
Before falling back to +ivy/tasks and helm/tasks (not implemented yet).
2019-10-20 19:57:27 -04:00
Henrik Lissner
6e0a93233d
Add emacs/ibuffer module
And bind 'SPC b i' to ibuffer
2019-10-20 15:14:26 -04:00
Henrik Lissner
5215b79f7a
config/default: move SPC f {S,X} and SPC g D keys
- Moved doom/sudo-find-file from 'SPC f S' to 'SPC f u'
- Moved doom/delete-this-file from 'SPC f X' to 'SPC f D'
- Replaced save-buffer on 'SPC f s' with write-file ('SPC b s' is still
  bound to save-buffer)
- Moved magit-file-delete from 'SPC g x' to 'SPC g D' (for consistency
  with the above, and to reduce accidental key presses)
2019-10-20 11:01:29 -04:00
Henrik Lissner
09d58ba65e
config/default: bind SPC / / to swiper 2019-10-20 10:59:34 -04:00
Henrik Lissner
0582e80baf
config/default: replace gss/gsS with gss
Removes the directionality of these two commands, when one will do (in
both directions).
2019-10-19 22:22:50 -04:00
Nollo
890b96d874 Add: evil bindings for 2 evil-mc functions
evil-mc-make-cursor-in-visual-selection-beg
evil-mc-make-cursor-in-visual-selection-end
2019-10-15 13:56:16 +02:00
Henrik Lissner
d1cef7e498
Remove M-;/A-; override keybinds
They're redundant with M-: and SPC ;
2019-10-14 03:20:11 -04:00
Henrik Lissner
ccb3b27654
Bind SPC b S to save all buffers 2019-10-14 02:54:29 -04:00
Andrew Whatson
285eab1ee5 Add support for org-pomodoro 2019-10-14 15:04:17 +10: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
1d072a6c9e
Open C-{S-t,t} keys to other OSes/terminal emacs 2019-10-12 00:48:48 -04:00
Foivos Zakkak
449238cdbe
Fixes comments for M and I in +emacs-bindings.el 2019-10-11 02:32:09 +03:00
Henrik Lissner
400dae27cd
Bind C-w d to evil-window-delete #1874 #1436
This binds SPC w d as well
2019-10-10 16:11:42 -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
07380af819
Add gy operator for yanking without indentation
Copies

   (a
    b
    c)

As

(a
 b
 c)
2019-10-10 16:11:41 -04:00
Sheng Yang
73e0baba08 Allow +literate-config-file to be a symbolic link
If the literate config file is a symbolic link, the tangled file is with the
target of the link, not with the literate config file.
2019-10-09 21:02:49 -05:00
Henrik Lissner
2ee0e1e110
Bind SPC b r = revert-buffer 2019-10-08 17:42:36 -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
0643630560
Fix g{t,T}, M-{t,T,[0-9]} workspace keybinds
To mirror conventional browser tab keys on linux/windows (ctrl and alt)
and macos (command).

Addresses #1491
2019-10-07 20:04:20 -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
Henrik Lissner
a3fc43adfe
Bind SPC q K to save-buffers-kill-emacs
A keybind for killing Emacs and the daemon in one go. The doom slayer
would be proud.
2019-10-03 20:48:56 -04:00
Henrik Lissner
a5d9079c43
Merge branch 'develop' into fix/add-add-featurep-condition-to-global-bindings 2019-10-03 14:57:19 -04:00
Gerry Agbobada
8947227afc Add missing conditionals for flymake/flycheck bindings (#1835) 2019-10-03 14:52:45 -04:00
Henrik Lissner
bc1c16605f
config/default: move SPC g o . to SPC g o o 2019-09-22 12:10:13 -04:00
Henrik Lissner
f4d17707e7
config/default: bind SPC f l to locate
This will be remapped to counsel-locate or helm-locate if the ivy/helm
modules are enabled.
2019-09-22 12:09:51 -04:00
Henrik Lissner
6bc9a58ad4
config/default: bind SPC g {y,Y} to git-link 2019-09-21 13:59:15 -04:00
Henrik Lissner
e10cd8cf2e
Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
Henrik Lissner
bd93682de5
config/default: tramp-default-method = ssh 2019-09-20 17:18:16 -04:00
Henrik Lissner
4aff103770
Merge pull request #1785 from rgrinberg/org-journal-feature
lang/org: add +journal feature (org-journal)
2019-09-19 12:57:48 -04:00
Henrik Lissner
0d719d6773
Move SPC b o to SPC b O
To make kill-commands a little harder to press accidentally.
2019-09-15 16:22:02 -04:00
Henrik Lissner
20eb5ce4f6
Bind SPC / f to locate/counsel-locate 2019-09-15 16:21:10 -04:00
Henrik Lissner
dc15d471da
Bind zn to +evil:narrow-buffer 2019-09-15 16:19:47 -04:00
Rudi Grinberg
7886138f5b Add support for org-journal
Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
2019-09-15 13:56:43 +09:00
Henrik Lissner
6bef031e25
Bind SPC b - to doom/toggle-narrow-buffer 2019-09-14 01:55:16 -04:00
Henrik Lissner
2d365619cd
General refactor & cleanup, across the board 2019-09-13 22:00:34 -04:00
Henrik Lissner
5e6c2205b8
Bind to zn/zN to new narrow/widen (indirect) commands 2019-09-13 00:28:08 -04:00
UndeadKernel
56d8e1e0f8 bindings: fix emacs bindings and add more 2019-09-07 00:32:34 +02:00
Henrik Lissner
3b7711420f
General comment revision & cleanup 2019-09-06 00:25:35 -04:00
Henrik Lissner
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
Henrik Lissner
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
Jakub Darul
f7f4c39492 fixed formatting 2019-08-29 20:43:52 +02:00