Commit Graph

983 Commits

Author SHA1 Message Date
4e0802ee01 Fix windows surviving creation of new workspaces
Particularly windows that resist `delete-window`, like treemacs, when a
new workspace is switched to.

Relevant to #1348
2019-04-21 00:47:34 -04:00
a8c46e3136 Update evil-collection-mode-list
Adds disk-usage, omnisharp and process-menu
2019-04-20 22:28:20 -04:00
cf7ef0f99f Remove ref to better-jumper
I'm experimenting with this package locally.
2019-04-17 21:24:17 -04:00
8a5af077a6 feature/lookup: refactor lookup commands
And move online-lookup commands to separate file
2019-04-16 20:57:03 -04:00
a1df75aa43 feature/evil: mention cl/cc in readme 2019-04-11 19:22:34 -04:00
18a4f949c1 feature/evil: update Ex commands listing in README 2019-04-11 19:20:20 -04:00
98e5ddc1e1 feature/evil: correct text objects in README 2019-04-09 00:35:31 -04:00
3b2befe161 Move evil helpful keybinds to +evil-bindings 2019-04-07 15:56:30 -04:00
cfb3a6d137 feature/evil: autoload evil-commentary-yank-line
Relevant to #1308
2019-04-06 00:41:34 -04:00
337c16cb68 Dear byte-compiler, you drive me to drink,
About Emacs Lisp that I have to rethink.
The world could end,
And humanity transcend,
But you'd still be here raising a stink.
2019-04-05 23:52:29 -04:00
b7585e37aa Fix missing persp-switch-to-buffer keybind
Because persp-mode hasn't been loaded by bind-time, nor was
persp-switch-to-buffer autoloaded.
2019-04-05 05:26:54 -04:00
ea857aa553 feature/eval: improve REPL error handling
Emit more informative error messages depending on the problem.
2019-04-02 18:22:01 -04:00
0cfbdc1f3c Add vterm-mode to evil-escape-excluded-major-modes
`jk` doesn't work as expected in `vterm`. 

Do I need to also check for `vterm` feature flag?
2019-04-01 10:56:47 +09:00
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