Commit Graph

475 Commits

Author SHA1 Message Date
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
Henrik Lissner
f90cf1f974
Fix +default/org-notes-headlines 2019-08-28 22:08:13 -04:00
Henrik Lissner
b141b4bbd8
Merge pull request #1720 from AloisJanicek/fix-snippets-keybindings
fix function name mismatch in snippets keybindings
2019-08-28 16:49:06 -04:00
Henrik Lissner
f806b54333
Merge pull request #1723 from JakDar/develop
config/default: remove unused floobits & impatient-mode keybinds
2019-08-28 16:48:48 -04:00
Jakub Darul
1a95ed263b removed unused floobits and impatient-mode bindings 2019-08-28 21:57:40 +02:00
Henrik Lissner
4cc359fd2b
Add SPC b d keybind for killing buffers
Relevant to #1436
2019-08-28 12:41:00 -04:00
Henrik Lissner
1cb9dbb2de
Add evil-switch-to-windows-last-buffer keybinds
SPC ` and SPC b l
2019-08-28 12:40:59 -04:00
Alois Janíček
e195d13440
fix function name mismatch in snippets keybindings
some function related to snippets were renamed but their references
weren't updated to reflect this change resulting in error
2019-08-28 11:35:10 +02:00
Henrik Lissner
29614a3187
Merge pull request #1693 from emil-r-petersen/fixup-shortcut
Add leader keybinds for magit-commit-fixup
2019-08-27 16:31:24 -04:00
Andrew Whatson
6381a5c0ae Add :editor word-wrap module
Defines a new minor-mode `+word-wrap-mode` which configures
adaptive-wrap-prefix-mode and visual-line-mode for smart soft-wrapping
of code.

Evil users can toggle it with `SPC t w`.

Enable globally with `+global-word-wrap-mode`.

See the README for more details!
2019-08-27 15:04:38 +10:00
Henrik Lissner
8f01abebfc
Conform set-repeater! to naming conventions 2019-08-22 18:57:18 -04:00
Emil Petersen
8f29901f4d Add magit-commit-fixup shortcut 2019-08-21 14:49:23 -04:00
Henrik Lissner
f4a11fd437
Fix #1679: newline-and-indent advice not deleting trailing whitespace 2019-08-21 00:29:12 -04:00
Henrik Lissner
18cefa0167
Use evil-avy-goto-char-timer #1690 2019-08-20 22:23:59 -04:00
Henrik Lissner
ffa7a0323a
Merge pull request #1641 from alexandergraul/develop
Fix evil-window "c" binding
2019-08-09 22:20:46 -04:00
Alexander Graul
15161c9f46 Fix evil-window "c" binding
Instead of relying on the optional ":ui workspaces" feature, the
built-in evil-window-delete is used. ":ui workspaces" remaps the
evil-window-delete already, so no functionality is lost for users of
that feature.

Fixes https://github.com/hlissner/doom-emacs/issues/1640.
2019-08-09 10:20:53 +02:00
Henrik Lissner
b330728032
Fix #1575: SPC * error when no symbol at point 2019-08-07 18:37:02 -04:00
Henrik Lissner
62aea0a73a
Add ctrl [-+=] keys for adjusting font-size 2019-08-06 14:47:53 -04:00
Henrik Lissner
19ecf8e46a
Correct last inline hook defuns
See a3e262c7 for rationale
2019-07-28 16:10:53 +02:00
Henrik Lissner
82ae3a73f3
def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
Henrik Lissner
76cacb5bfe
💥 Rename def-package! -> use-package!
Calling this pivotal macro "def-package!" has frequently been a source
of confusion. It is a thin wrapper around use-package, and it should be
obvious that it is so. For this reason, and to match the naming
convention used with other convenience macros/wrappers, it is now
use-package!.

Also changes def-package-hook! -> use-package-hook!

The old macros are now marked obsolete and will be removed when straight
integration is merged.
2019-07-23 12:50:45 +02:00
Henrik Lissner
8482f26d51
Move cc modes smartparen functions to config/default 2019-07-22 23:51:39 +02:00
Henrik Lissner
567d0b6d16
Have smartparens back off of cc modes in 27+ 2019-07-22 02:37:46 +02:00
Henrik Lissner
8a101a98b9
Add SPC o {t,T} keybinds for term/shell module 2019-07-22 02:37:46 +02:00
Henrik Lissner
f898bbe9e1
Remove C-j/C-k from evil-collection blacklist
And fix ESC binding by evil-collection-vterm.
2019-07-22 02:37:46 +02:00
Henrik Lissner
e39a458be7
config/default: add smartparens fix for markdown asterixes 2019-07-22 02:37:44 +02:00
Henrik Lissner
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
Henrik Lissner
51d3b1b424
💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +02:00
Henrik Lissner
62af55dad0
Move emacs-snippets -> doom-snippets
The repo was renamed upstream.
2019-07-14 17:05:48 +02:00
Henrik Lissner
43a82c7e92
non-evil users: C-c C-S-z = open repl in same window 2019-07-14 05:34:28 +02:00
Henrik Lissner
05eb333a0c
editor/snippets: expand on snippet commands & keybinds
- Introduces the +snippets/new (SPC s n) command for creating a new
  private snippet
- Introduces the +snippets/new-lias (SPC s N) command for creating a new
  private snippet alias, which will invoke another snippet (you will be
  prompted to select one). This will only work with the emacs-snippets
  library bundled with Doom Emacs, however, as it depends on its API.
- Introduces +snippets/edit (SPC s c) for modifying existing snippets.
  How this differs from yas-visit-snippet-file is it will copy the
  contents of built-in snippets into a buffer primed for your private
  snippets (in DOOMDIR/snippets), while yas-visit-snippet-file will
  simply open the originating snippet.
- Introduces the +snippets/find (SPC s ?),
  +snippets/find-for-current-mode (SPC s /) and
  +snippets/find-private (SPC s f) commands for, respectively, finding a
  snippet file among *all* directories in yas-snippet-dirs, finding a
  snippet for the current major mode (plus parents), and finding a
  snippet from among your private library. This opens built-in snippets
  in read-only mode, but you can press C-c C-e to open it in
  +snippets/edit.
2019-07-12 20:41:50 +02:00
Henrik Lissner
f90c0b8040
Add <escape> to blacklisted evil-collection keys
evil-collection is overzealous about its role in aborting things. We
already have our own doom-escape mechanism.
2019-07-12 18:25:28 +02:00
Henrik Lissner
0a7173b7f8
Auto-pair ( in lisps if cursor is before another ( 2019-07-12 15:05:08 +02:00
Henrik Lissner
c627972d20
Add set-indent-width & toggle-indent-style commands
And SPC t I keybind

Also sorts keybinds under the SPC t prefix
2019-07-11 17:22:01 +02:00
Henrik Lissner
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
Henrik Lissner
7f964bfa65
Fix +1 space before closing comment delimiter in C languages 2019-07-09 02:19:35 +02:00
Henrik Lissner
b727b8fbe8
Add SPC p l = projectile-repeat-last-command 2019-07-09 02:19:35 +02:00
Henrik Lissner
74877edd5d
Adds SPC / O, rebinds SPC / o
SPC / o = search online w/ last provider (if none, you are prompted)
SPC / O = search online (always prompts for provider)
2019-07-09 02:19:35 +02:00
Henrik Lissner
d748fe0cd2
Improve smartparens support for (* *) comment blocks
In tuareg-mode and fsharp-mode
2019-07-09 02:19:35 +02:00
Henrik Lissner
c14a4c8818
Move newline-and-indent advice outside of after! smartparens
Makes it easier to disable.
2019-07-08 22:08:59 +02:00
Henrik Lissner
096a3b96cc
Update & refactor tools/debugger
- Polish dap-mode support
- Fix realgud autoloads
- Add +debugger/start and +debugger/quit
- Move dap-breakpoints file into doom-etc-dir
- Fix SPC o d
- Add popup rule for realgud:pdb debugger
- Update display-in-popup advice to reflect changes upstream
- Realgud command buffer is auto-killed (and popup closed) when quitting
  the debugger.
- (evil users) Add :debug ex command
2019-07-07 22:01:24 +02:00
Henrik Lissner
daa7107def
Fix #1538: C-k in switch-buffer killing buffers
Caused by an upstream change.
2019-07-05 16:50:03 +02:00
Henrik Lissner
9ffb740b0f
Add SPC / D and SPC / P keybinds #1531
For searching from another directory/project (prompted)
2019-07-02 14:13:30 +02:00
Henrik Lissner
65efbc4204
Fix prompts for search-{cwd,project} commands 2019-07-02 14:06:31 +02:00
Henrik Lissner
08e125d3d0
lang/scala: fix comment continuation #1515
On Doom's modded newline-and-indent.
2019-06-28 17:28:10 +02:00
Henrik Lissner
ba7c713bf6
Add projectile-{run,configure,test}-project keybinds 2019-06-27 17:14:15 +02:00