Commit graph

237 commits

Author SHA1 Message Date
Henrik Lissner
bb702acfd0
emacs/vc: replace git-link w/ browse-at-remote
git-link is no longer maintained and browse-at-remote has support for
more remotes.

- Bind '<leader> g o h' to open homepage in browser
- Rebind '<leader> g o o' to open file or region (omits the #L<N> suffix
  if no selection is active).
2019-12-15 01:55:02 -05:00
Henrik Lissner
fecf68bb2a
Bind 'SPC s L' to ffap-menu 2019-12-13 17:31:11 -05:00
Henrik Lissner
0ec0ff5ecb
Minor refactors; unbind F1 from company active map 2019-12-13 14:25:30 -05:00
Henrik Lissner
c8cfa31a1e
lang/org: add goto-visible & refile-to-visible commands
- Bind 'gsh' to goto-visible command in org-mode
- Bind '<localleader> g v' to goto-visible
- Bind '<localleader> r v' to refile-to-visible
- Add avy package to lang/org module

Powered by avy.
2019-12-06 17:01:58 -05:00
Henrik Lissner
6cf17b1237
config/default: rebind 'SPC n {c,C,n,S}'
'SPC n c' -> Toggle last org clock
'SPC n C' -> Cancel current org clock
'SPC n n' -> org-capture
'SPC n S' -> Search org-directory headings

Closes #2043
2019-12-06 13:38:57 -05:00
Henrik Lissner
5e4e1d7a79
Move SPC n {n,N} to SPC n {f,F}; add SPC n o
- For consistency with out find-file commands in other prefixes
  - 'SPC n n' -> 'SPC n f'
  - 'SPC n N' -> 'SPC n F'
- New keybinds
  - 'SPC n n' = +default/org-notes-headlings (search headings in
    org-agenda-files)
  - 'SPC n o' = org-clock-goto
2019-12-01 15:42:04 -05:00
Henrik Lissner
35ce37532b
ui/workspaces: merge +ivy/workspace/switch-to into +workspace/switch-to
Relevant to #2127
Closes #2130
2019-12-01 15:41:28 -05:00
Rudi Grinberg
296d5aed0f Fix typo
Missing + in function name
2019-12-01 17:24:47 +07:00
Rudi Grinberg
7b7cf327ab Use ivy to switch workspaces when user uses ivy 2019-12-01 16:17:33 +07:00
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
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
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
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
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
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
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
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
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
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
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