Henrik Lissner
5a442932d7
ui/doom-dashboard: reload dashboard in daemon frames
...
Fixes an issue where creating a graphical frame from the daemon can
cause the non-GUI version of the dashboard to show.
2018-10-17 14:49:35 -04:00
Henrik Lissner
0bb06f052e
Fix dashboard hiding files opened via emacsclient
2018-10-13 13:28:13 -04:00
Henrik Lissner
cc1c28a27c
Fix dual windows when opening files via terminal #850
2018-09-20 15:01:28 -04:00
Henrik Lissner
7d3ffdff06
Remove third line in section headers
...
This is truly important stuff. We've saved many lives with this update.
2018-09-09 09:58:19 -04:00
Henrik Lissner
50fdaa0ed5
Silence "unbound key" spam on mouse-1 in dashboard
2018-09-09 09:58:19 -04:00
Henrik Lissner
469aa81570
Forward-require dependencies in tests
...
Easier to see at a glance what the test's dependencies are.
2018-08-26 00:20:16 +02:00
Henrik Lissner
ee73d6c9af
Minor reformatting & comment tweaks
2018-08-21 03:34:39 +02:00
Henrik Lissner
6ab9cf6460
Switch org-agenda-list for org-agenda on dashboard
2018-08-17 04:10:11 +02:00
Henrik Lissner
e33cb446aa
Refactor dashboard banner display & centering
2018-08-10 12:34:17 +02:00
Henrik Lissner
923093b263
Don't set buffer-read-only in +doom-dashboard-mode
...
This is already set by the parent mode, special-mode.
2018-07-29 19:31:33 +02:00
Henrik Lissner
043dc4e875
Update dashboard on +doom-dashboard/open
2018-07-10 17:46:31 +02:00
Henrik Lissner
1a068f82f1
Add +workspace/load-last-session
...
And fix the load last session button on dashboard.
2018-07-07 11:41:24 +02:00
Henrik Lissner
c38d324663
Make banner customizable
...
Add banner-file and banner-dir variables. If banner-file is nil, use
ASCII banner.
2018-07-05 14:33:48 +02:00
Henrik Lissner
b67745a9b6
Don't show "Open user manual" button
...
...unless the manual exists (it will soon)!
2018-07-05 12:37:05 +02:00
Henrik Lissner
3a1ba5381e
Use +default/find-in-config instead on dashboard
...
Instead of browse-config.
2018-07-05 12:36:32 +02:00
Henrik Lissner
1fa4c65c3a
ui/doom-dashboard: minor refactor
2018-07-05 01:32:04 +02:00
Henrik Lissner
f949df5646
Reformat ui/doom-dashboard tests
2018-07-04 23:14:31 +02:00
Henrik Lissner
ebd4d19fa4
Fix +doom-dashboard-p
2018-07-04 23:14:12 +02:00
Henrik Lissner
c55d6dad17
Reduce coupling with buffers library and dashboard
2018-07-04 23:06:47 +02:00
Henrik Lissner
0b1cb1bb48
Look up command binds dynamically in dashboard
...
Keys are no longer hard coded.
cc @UndeadKernel
2018-07-04 23:05:49 +02:00
Henrik Lissner
ee4060ab80
Add image banner display logic to dashboard
...
But disabled by default (until the logo is ready).
2018-07-04 16:20:02 +02:00
Henrik Lissner
e37e6fc25c
Fix invalid face: quote errors in dashboard
2018-07-04 15:33:15 +02:00
Henrik Lissner
00e23db0b0
Fix workspace restore/load workspace keybinds
...
As well as keybind on dashboard.
2018-07-04 13:40:44 +02:00
Henrik Lissner
1d4a41833e
Don't wrap forward/backward-button keys
2018-07-03 20:07:14 +02:00
Henrik Lissner
d0eaa0af1e
Redesign dashboard widgets
2018-07-03 20:07:14 +02:00
Henrik Lissner
81ffed520b
Rename doom-before-switch-*-hook hooks
...
+ doom-before-switch-buffer-hook => doom-exit-buffer-hook
+ doom-before-switch-window-hook => doom-exit-window-hook
+ doom-after-switch-buffer-hook => doom-enter-buffer-hook
+ doom-after-switch-window-hook => doom-enter-window-hook
Shorter, easier-to-type names that better describe their intended
purpose.
The old names are still usable, but deprecated.
2018-07-03 03:41:08 +02:00
Henrik Lissner
15f2e21468
On second thought...
...
Causes char-table-p errors in some cases.
Setting hscroll-margin = 0 in dashboard accomplishes the same thing, by
preventing truncation glyphs from ever appearing anyway.
2018-06-30 02:58:01 +02:00
Henrik Lissner
a4121f33c0
Revert "Require project root in dashboard buffer #733 "
...
This reverts commit 2dac739ce7
.
Causes breaking "Not in project" errors at startup in certain daemon
workflows.
2018-06-29 00:56:04 +02:00
Henrik Lissner
2dac739ce7
Require project root in dashboard buffer #733
...
Require default-directory to be in a valid project for project commands
to work. This will prevent hangs when accidentally invoking
projectile-find-file from $HOME.
2018-06-28 20:15:50 +02:00
Henrik Lissner
205cc718d2
Fix dashboard not appearing in daemon frames
...
Because they start in the *server* buffer, instead of the *scratch*
buffer.
2018-06-19 17:44:24 +02:00
Henrik Lissner
486019d853
Remove leading space in dashboard buffer's name
...
The leading space indicates a temporary buffer. The dashboard is no such
thing!
2018-06-16 21:01:16 +02:00
Henrik Lissner
08986d9101
Simplify dashboard initial buffer check
...
We only need to check if we're in the scratch buffer. doom-real-buffer-p
is overkill for that.
This also reduces file loads at startup for autoloaded functions added
to the doom-real-buffer-functions and doom-unreal-buffer-functions.
2018-06-16 21:00:37 +02:00
Henrik Lissner
eaca8c58fa
Move unit tests from ert to buttercup
...
Easier to organize and write. Now I can hopefully strive for better
coverage!
2018-06-15 03:42:01 +02:00
Henrik Lissner
e71cd93488
Don't change which-key settings in doom dashboard
2018-06-03 17:22:23 +02:00
Henrik Lissner
1e81a35461
Minimize dependence on map!
...
This is in preparation for general.el integration coming in 2.1.1. It is
very likely that map! will change (and even more, be split into several
macros). Not much, but change none-the-less. Specifically, the state
keywords (e.g. :nvi, :n, :i) will be removed in favor of a :state
property that takes a list, e.g. (normal visual insert).
In any case, both map! and general are also relatively expensive
compared to define-key and evil-define-key* (and the new define-key!
macro), so use that when we can.
This also means changes to either API won't affect Doom's modules in the
long term.
2018-06-03 15:46:00 +02:00
Henrik Lissner
01b07e573e
Fix visual j/k in dashboard and evil-mode
...
In case you've remapped j/k to gj/gk universally.
2018-06-03 12:04:42 +02:00
Henrik Lissner
e66abfb9e8
Use newline-based alignment technique on dashboard
...
Fixes #645 , because Emacs' mouse events don't appear to compensate for
variable-width whitespace.
2018-06-02 10:48:55 +02:00
Henrik Lissner
2f83757018
ui/doom-dashboard: more robust feature detection
...
In case you aren't using those modules, but have other means of loading
those packages.
2018-05-25 00:54:07 +02:00
Henrik Lissner
09cb4f6716
Major refactor & optimization of how modules load their packages
...
Now that we are loading package autoloads files (as part of the
generated doom-package-autoload-file when running make autoloads), many
:commands properties are redundant. In fact, many def-package! blocks
are redundant.
In some cases, we can do without a config.el file entirely, and can move
into the autoloads file or rely entirely on package autoloads.
Also, many settings have been moved in their module's autoloads files,
which makes them available ASAP; their use no longer depends on module
load order.
This gained me a modest ~10% boost in startup speed.
2018-05-25 00:46:16 +02:00
Henrik Lissner
06c22a5af2
ui/doom-dashboard: add vertical centering (experimental)
2018-05-15 21:49:50 +02:00
Henrik Lissner
5537f81e02
ui/doom-dashboard: doom-packages--benchmark => doom|display-benchmark
2018-05-14 20:56:17 +02:00
Henrik Lissner
61865d0646
ui/doom-dashboard: don't open dashboard over files (part 2) #523
2018-04-18 19:41:50 -04:00
Henrik Lissner
dbd6982e06
ui/doom-dashboard: don't open dashboard over files via emacsclient #523
2018-04-18 01:08:56 -04:00
Henrik Lissner
c24c868945
ui/doom-dashboard: remove 'Edit Doom Emacs' button
2018-04-03 16:58:41 -04:00
Henrik Lissner
cc13f51b7f
ui/doom-dashboard: update for new doom-private-dir
2018-04-03 16:29:14 -04:00
Henrik Lissner
93678494cb
ui/doom-dashboard: fix wrong-type-arg error on reload
2018-03-27 19:08:46 -04:00
Henrik Lissner
8604966e21
ui/doom-dashboard: add 'edit modules list' button
2018-03-24 17:53:13 -04:00
Henrik Lissner
4d80c20251
Add arrow, tab/S-tab, & C-n/C-p keys for navigating dashboard
2018-03-20 17:36:23 -04:00
Henrik Lissner
b68fa3b120
ui/doom-dashboard: disable visual mode in post-command-hook too
2018-03-20 00:00:21 -04:00
Henrik Lissner
facd83a54b
Remove redundant reload in +doom-dashboard/open
2018-03-19 02:03:42 -04:00