Commit Graph

206 Commits

Author SHA1 Message Date
1abcf913aa revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
6d4b2b48c2 fix(doom-dashboard): revert unintended changes
Amend: b5a2aa48fe
2022-08-03 03:34:28 +02:00
1f8bf7accb merge: rewrite-docs
I've omitted docs/*.org from this merge, as there is still work left to
do there, but I am pushing the module docs early so folks can benefit
from the new docs sooner.
2022-08-03 03:27:50 +02:00
7e400abdc0 fix(docs): set mode in file-local vars
Due to emacs-straight/org-mode@e22b4eb, a replacement major mode (for
org-mode) can no longer be specified from .dir-locals.el, as it spirals
into infinite recursion. Therefore, a mode: line is needed in all Doom
docs.

Ref: emacs-straight/org-mode@e22b4eb7aa
2022-08-03 02:46:33 +02:00
1255315bfc refactor(docs): replace nav menus with virtual one
Now that the header is dynamically generated (when doom-docs-mode is
active), a literal header is unnecessary.
2022-08-02 19:37:07 +02:00
e77a45bc22 docs: use lowercase keywords
As per Org's new defaults, which we're adopting elsewhere, so may as
well adopt it here.
2022-08-02 16:23:43 +02:00
b5093a5e93 fix(doom-dashboard): :key param & keymap precedence
- Fixes the :key property in +doom-dashboard-menu-sections, which
  formerly threw an error.
- When looking up commands in +doom-dashboard-menu-sections, the
  dashboard will now prioritize keys in +doom-dashboard-mode-map.

Close: #6194
Co-authored-by: Gerry Agbobada <gagbo@users.noreply.github.com>
2022-03-31 01:06:07 +02:00
7246db457c docs: replace doom-source with doom-repo links
I will later use "source" to refer to module sources, so better we avoid
the terminology for now.
2022-02-01 18:55:27 +01:00
88844e9cec docs: simplify internal docs links
Fewer links means less confusion.

- Merge doom-issue and doom-commit links into doom-ref (for auto-linking
  Issue/PR/commit references).
- Merge doom-module-source and doom-docs-source links into doom-source.
- Rename doom-report-issue to doom-report.
- Use '!' as the icon for module issues link.
- Remove doom-repo (replaced with "doom:*" in :lang org module).
- Add doomdir and emacsdir links to :lang org module.
2021-11-21 20:04:28 +01:00
b5a2aa48fe docs(:ui): update READMEs to new format 2021-11-21 20:04:28 +01:00
e431dbc138 fix(doom-dashboard,workspaces): module init order
Change (and simplify) the load order of Doom's dashboard and persp-mode
so that the dashboard always initializes later. This and 0ab6aba should
fix #5643.

Fix #5643
Ref 0ab6aba056
2021-10-18 01:15:20 +02:00
dd1f7713ea Fix 'invalid face attribute :background' warnings
And 'invalid face attribute nil' warnings too.
2021-05-30 12:20:58 -04:00
6e296f3da2 Reload dashboard when loading theme
To fix dashboard banner background mismatches due to solaire-mode.
2021-05-22 19:57:41 -04:00
b903930f2d ui/doom-dashboard: only affect buffer-local fringe-indicator-alist 2021-05-01 02:46:08 -04:00
e80bd6da4a ui/dashboard: minor refactors 2021-04-13 18:54:48 -04:00
b859727f7a Never show hl-line in dashboard 2021-03-27 18:27:02 -04:00
5e8a668311 Fix empty dashboard on first daemon frame
Dashboard would be empty because +doom-dashboard-reload was never called
in daemon sessions (until you switch back to it).
2021-02-14 21:14:07 -05:00
f587630e17 Use module instead of package detection
Otherwise, the dashboard will break if the user has perspective.el
installed, instead of persp-mode.
2021-01-11 02:41:44 -05:00
1765dc8299 Correct ascii banner alignment
Closes #4289
2020-11-20 14:10:28 -05:00
86c2f05252 Refactor doom-dashboard-draw-ascii-banner-fn 2020-11-19 00:44:16 -05:00
befb2baeda Introduce +doom-dashboard-ascii-banner-fn setting 2020-11-15 09:49:30 -05:00
5018637091 ui/doom-dashboard: center bottom line of banner 2020-11-10 20:38:45 +01:00
de4532f979 ui/doom-dashboard: have 'last-project policy fall back to CWD
Normally, the dashboard assumes the default-directory = project root of
the last buffer you had open. This is to make it easy for you to recover
from closing the last buffer in your project and wondering how to get
back. However, if the last file wasn't in a valid project, the dashboard
assumes the directory of the last buffer that did, which can be jarring.

It will now assume the last buffer's CWD if it wasn't in a valid project
root.
2020-08-09 01:50:41 -04:00
e1fc2db751 Disable line numbers in dashboard
They look ugly when large margins are involved.
2020-07-26 14:03:45 -04:00
83b6f74d11 Minor refactors & reformatting 2020-03-27 21:39:27 -04:00
760aa50c44 ui/doom-dashboard: De-hardcode dashboard faces 2020-01-02 23:18:19 -05:00
f05f4d2b59 Replace search docs button w/ open docs on dashboard
It is more helpful to newcomers.
2019-12-29 16:34:21 -05:00
66b005aa18 ui/doom-dashboard: expand README #1166 2019-12-27 14:46:10 -05:00
934e4fc06f ui/doom-dashboard: fix vertical padding #2251 2019-12-26 01:41:45 -05:00
0b4356a7d5 Fix 'search documentation' button on dashboard 2019-12-26 01:41:44 -05:00
8386c95fb1 ui/doom-dashboard: fix fix for #2219
What a fix
2019-12-21 03:30:44 -05:00
960f403e2e Fix misaligned dashboard on workspace switch #2219
Only occurs in daemon GUI frames, for some reason.
2019-12-21 01:49:10 -05:00
fbf9010c80 Log benchmark whether or not dashboard is enabled 2019-11-08 16:02:06 -05:00
c37bdf71d1 Demote "no more buttons" error to warning
If the shortmenu or buttons were disabled, this error would break the
dashboard (and Doom).

Mentioned in #2024
2019-11-08 16:02:06 -05:00
b1e8ee7175 Add 'Search Documentation' button to dashboard (#1955)
* Add an FAQ action to doom-dashboard

* Separate faq and user manual

This is necessary until I can dispatch properly the (file-exists-p)
conditions in the :action part of the variable.

The issue is that the value in :action needs to be a symbol (symbolp)
and the (if COND THEN ELSE) form does not match this.

* Use doom/help-search if (or faq.org manual.org)

Since the function searches through the (in-progress) manual and faq

* Remove :when condition from Search Documentation

This condition is unnecessary since doom/help-search now always at least
lists the modules from doom/help-modules
2019-10-26 04:15:32 -04:00
323e0adf45 Minor refactors & reformatting across the board 2019-10-17 01:47:58 -04:00
f9d84537f9 Fix #+SINCE in ui/doom-dashboard/README.org 2019-10-10 01:44:12 +03:00
a4fbf5242d Reformat ui/doom-dashboard/README.org to match __doom-readme template 2019-10-10 01:10:57 +03:00
05f458a75b Disable benchmark in minibuffer if dashboard is enabled
Redundant; also, printing to minibuffer during startup is somewhat
expensive.
2019-10-06 02:28:44 -04:00
8766499b0d Fix some file permissions errors
Occurs when deferred packages are loaded while in an unreadable or
non-existent directory.
2019-08-27 00:05:12 -04:00
6c734ab039 ui/doom-dashboard: use fancy-splash-image variable 2019-08-23 01:56:44 -04:00
71d3eccec5 Fix missing dir separator in +doom-dashboard-banner-dir 2019-07-29 03:18:39 +02:00
ee10b3b0d9 core-lib: add doom-{glob,path,dir}, replace {file,dir}!
- file! replaces FILE!
- dir! replaces DIR!
- doom-{glob,path,dir} have the power to construct paths out of the
  segment pieces provided to it.
- Move doom-files-in to core-lib and refactor to use the above.
2019-07-22 02:30:39 +02:00
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
9a02bd8ac8 Minor refactors across the board
- when-let* -> when-let
- Fix projectile-locate-dominating-file for connected remote files
2019-06-26 14:31:06 +02:00
a1c1d8818a Fix #1456: handle remote PWDs in dashboard
Otherwise, invisible TRAMP authentication prompts would hang Emacs.
2019-06-11 16:21:37 +02:00
4dbf8f206b ui/doom-dashboard: refactor & optimize
Potentially addresses crashing issues caused by the dashboard.

Relevant to #1170
2019-05-15 15:22:08 -04:00
6b69eaa397 Minor refactors across the board 2019-04-26 17:42:44 -04:00
12a3adab2c ui/doom-dashboard: fix evil motion keys #1365
Because :feature evil was moved to :editor evil, it is initialized
later, meaning evil map! keybinds prior to that module loading are
ignored. There's no harm in generalizing these remaps, however.
2019-04-26 17:29:54 -04:00
d2afd6928f ui/doom-dashboard: fix +doom-dashboard-p test 2019-04-08 23:15:22 -04:00