Commit Graph

970 Commits

Author SHA1 Message Date
be6efd8dbf Fix wrong-num-of-args on +eval/open-repl-same-window #1291 2019-03-30 00:09:12 -04:00
9e24db7ed3 Don't override embrace's default f pair #1285
This should really be resolved upstream, but until it is this should
ensure our custom `f` pair for lisp doesn't end up deleting the global
`f` pair.
2019-03-28 16:41:21 -04:00
46a5be1e52 Don't open doom-fallback-buffer on del workspace
The `current-buffer` wasn't being updated after switching workspaces and
was therefore failing the `doom-buffer-frame-predicate` check.
2019-03-27 20:17:19 -04:00
ab93ee8e75 feature/workspaces: don't unbind persp-activated-functions
This was initially done to prevent eager-loading packages at startup,
but +workspaces|init-frame happens early enough that nothing has been
added to persp-activated-functions at this point anyway.

Also addresses an issue where better-jumper couldn't initialize when
main is created.
2019-03-24 12:35:38 -04:00
a934ade46e feature/evil: update removal section in readme 2019-03-22 00:32:30 -04:00
13bac97c07 feature/evil: update README & ex commands
- Fix :sl[oad] and :ss[ave]
- Disable MIA :debug +debug/run
- Remove unnecessary comments
2019-03-16 23:59:51 -04:00
8f98e441c0 Merge pull request #1227 from flatwhatson/fix-dashboard-switch
Only switch to dashboard when creating a new workspace
2019-03-09 13:04:28 -05:00
1a6f0c2f1d 💥 Redesign vanilla Emacs keybind scheme
The leader keys have been redesigned a) for consistency, b) to reduce
collisions with packages, and c) to improve command coverage. However,
much of it still comes from a vim user, so it needs more testing.
2019-03-09 03:42:55 -05:00
419c3ba1e6 feature/evil: recenter window after / * or # 2019-03-09 03:42:55 -05:00
54d1c0dd56 Minor, general refactors 2019-03-09 03:42:55 -05:00
8bfa5a30fd Fix lookup commands not aborting on C-g/ESC #1226
When aborting a lookup handler with C-g/ESC, Doom was convinced that it
had failed legitimately, so tries the next. The expected behavior is
that it abort the entire lookup operation.
2019-03-08 02:37:34 -05:00
a48417cf0d Only switch to dashboard when creating a new workspace 2019-03-08 12:56:06 +10:00
fbcb4e6973 Minor refactor across the board 2019-03-04 20:47:26 -05:00
dd0d264a27 Refactor feature/evil
- Defer evil-escape a little longer
- Move advice to autoloads file

Gotta go fast.
2019-03-04 20:47:26 -05:00
05303c0fdb 💥 Rethink core hook order & naming
- doom-post-init-hook was renamed doom-init-modules-hook
- doom-init-hook was renamed doom-before-init-modules-hook
- doom-init-modules-hook now runs before the user's config.el is run
- Moved doom-init-ui-hook to run later (on window-setup-hook rather than
  emacs-startup-hook).

Yield a modest improvement in startup times.
2019-03-04 20:47:26 -05:00
27822ef006 Change prefix arg behavior for +lookup/documentation
Would formerly open documentation in "other window", but this doesn't
make sense for this function (as it should always do this). Instead, it
will be passed on to documentation handlers to do as they like with.
2019-03-04 20:47:25 -05:00
f6cc2644b0 New doom-log macro for debug-time logging
doom-log won't interfere with the minibuffer if it's in use, and will
report the originating module.

Addresses #1215
2019-03-04 18:38:25 -05:00
18017f74f1 feature/evil: update evil-embrace config
- Add embrace support for ruby
- Move helpers to autoloads file
- Refactor anonymous hooks into functions
2019-03-04 14:23:12 -05:00
b98f34d1fd Add :killb & doom/kill-buried-buffers
Also fix reported killed-buffer count when invoking kill commands
interactively.
2019-03-04 14:07:34 -05:00
7c9e96da87 General module refactor 2019-03-02 02:04:11 -05:00
8a90f29c91 Make session persistence module agnostic
They've been removed from feature/workspaces and moved into
core/autoload/sessions, which falls back to desktop.el if persp-mode
isn't present. This also offers a substantial speed up to
restart+restoring and restoring sessions in general.

Also fixes #1210, where the newly spawned frame after doom/restart
wasn't focused.

Introduces the following commands:

- doom/restart
- doom/restart-and-restore
- doom/quickload-session
- doom/quicksave-session
- doom/load-session
- doom/save-session
- +workspace/restore-last-session (alias for doom/quickload-session)

And removes

- +workspace/load-session
- +workspace/save-session
- +workspace/load-last-session (renamed to +workspace/restore-last-session)
- +workspace/restart-emacs-then-restore (replaced by doom/restart-and-restore)
- :ss (ex command)
- :sl (ex command)
2019-03-02 01:34:19 -05:00
fb57f367e7 Enable delete-selection-mode & shift-select-mode
This makes text insertion behave more like traditional editors.

Delete-selection-mode allows selections to be replaced when yanking or
inserting. This enables it by default for non-evil users and in insert
mode for evil users. Also enables selecting text with shift.
2019-03-02 01:34:14 -05:00
5f5874c1fc Fix evil-embrace race condition at startup #345
The previous config would wait for evil-surround to load before adding
evil-embrace's hooks.
2019-02-28 18:26:13 -05:00
ad837e6d13 Move evil ex commands to feature/evil
These commands aren't used by config/default anyway, and
+default:multi-{next,previous}-line were moved to my private config.

Also fixes #1208 (:cd without args will now CD to $HOME).
2019-02-28 14:31:16 -05:00
99904c0e05 Recenter window after lookup commands 2019-02-27 18:39:04 -05:00
d0533fe99c Fix lookup commands erroring when successful
Because message returns non-nil, and +lookup--jump-to needs to return
nil when it fails.
2019-02-27 03:14:47 -05:00
9b7d95f43a Remove doom-cleanup-hook & doom/cleanup-session
These weren't reliable, often times buggy or overzealous about killing
buffers and processes. Best to do it manually or come up with a better
solution.
2019-02-26 22:57:02 -05:00
3e85981695 Add process-menu-mode-map keybinds for evil 2019-02-26 22:55:09 -05:00
de4b18a2dc feature/lookup: refactor backend dispatcher
Hopefully improves compatibility with async handlers. Still a WIP.
2019-02-26 16:57:14 -05:00
7c5eefee3e General, minor refactoring 2019-02-24 13:58:56 -05:00
69ed1a4a99 feature/{syntax-checker,spellcheck} -> tools/fly{check,spell} 2019-02-22 00:25:30 -05:00
94b16cba6c Standardize REPL commands & improve SPC o r
- SPC o r now prompts for a REPL to open when none was found for the
  current buffer.
- REPL handlers must now follow the naming convention "*/open*-repl".
  e.g. +python/open-ipython-repl, +emacs-lisp/open-repl, etc.
- +eval/open-repl has been split in two:
  - +eval/open-repl-other-window
  - +eval/open-repl-same-window
2019-02-18 01:59:56 -05:00
7d0caf3efd New editor/fold module
Extracted from feature/evil and emacs/hideshow.
2019-02-18 00:47:46 -05:00
66131747d3 Update evil-collection-mode-list 2019-02-16 19:04:45 -05:00
a72a0e6a62 Replace magithub with forge
Should also fix void-function/void-variable errors caused by evil-magit
depending on the newer version of magit (#1174).

Also introduces a redesign of the SPC g prefix.
2019-02-16 18:26:17 -05:00
02a3f815a3 Disable evil-escape in term-mode #1156
Causes unintended escape characters to be inserted into the term buffer.
2019-02-14 00:40:19 -05:00
0e8af0e6d2 Integrate evil jumplist into xref #1161
Rather than use xref-pop-marker-stack, evil users can now use the
jumplist to jump from and to xref calls (with C-o/C-i).
2019-02-14 00:40:19 -05:00
99fd8b4e1b O'byte-compiler
Who forbade the obsolete,
Hooks, functions; adieu.

(And an unused argument too)
2019-02-03 18:42:09 -05:00
5baaf08246 Move evil-mc library to editor/multiple-cursors 2019-01-28 19:54:55 -05:00
2e8329e6b6 Fix error message with async lookup handlers
Even if they succeeded.

Mentioned in #716
2019-01-23 16:07:09 -05:00
786d90a85f Revert flycheck-idle-change-delay delay to default
...when exiting insert mode.
2019-01-21 22:19:25 -05:00
99e916348a lang/java: fix java namespace resolution #1098
Now uses slightly more sophisticated namespace resolution when
populating the *.java file template.
2019-01-21 17:39:39 -05:00
500519fe00 Increase flycheck delay in insert mode
Otherwise it can interrupt your typing.
2019-01-14 00:51:25 -05:00
069c196330 Appease byte-compiler senpai
Please notice me
2019-01-08 20:54:03 -05:00
d3fd9f3754 Update Doom module README file template 2019-01-08 00:38:22 -05:00
37cb0e178c Make set-lookup-handlers! additive
Consecutive calls to set-lookup-handlers! would redefine *all* lookup
handlers, unsetting unspecified ones, so you were forced to redefine all
handlers, even if you only wanted to change one. No more. Its side
effects are now additive.

Also adds :async handler support, however, due to their nature, they
cannot fall back to other handlers (there's no reliable way to detect
they worked or not).

To get around this, write a blocking wrapper around the old async method
and register it as a non-async handler.
2019-01-08 00:33:38 -05:00
b56639e31b Remove deprecated set! & def-setting! macros 2019-01-05 17:48:46 -05:00
0502b9581e feature/lookup: reformat/revise README 2019-01-05 17:18:13 -05:00
9db39b0242 feature/lookup: remove unused set-docset! alias 2019-01-05 17:14:57 -05:00
d02b601dd4 feature/lookup: refactor set-lookup-handlers! docs 2019-01-05 17:04:40 -05:00