Commit graph

32 commits

Author SHA1 Message Date
Henrik Lissner
28d0d4c2e9
fix(indent-guides): bars on blank lines breaking line motions
Ref: jdtsmith/indent-bars#22
2024-09-10 20:37:16 -04:00
Henrik Lissner
dd5ae257f1
nit(indent-guides): reformat config.el & proofread comments 2024-09-10 02:26:50 -04:00
Henrik Lissner
98e28d801e
fix(indent-guides): don't activate in noninteractive sessions
Such as when `doom doctor` loads Doom.

Fix: #8058
2024-09-09 20:18:13 -04:00
Henrik Lissner
bbb2cc1cb3
fix(indent-guides): disable indent-bars in tree-sitter-mode
A temporary measure, until the tree-sitter module has adopted treesit,
which indent-bars has support for.
2024-09-09 17:24:45 -04:00
Henrik Lissner
bcdb945465
fix(indent-guides): interop with magit-blame
Ref: af814ff86a
Ref: #8052
2024-09-09 00:35:57 -04:00
Henrik Lissner
af814ff86a
fix(indent-guides): interop with lsp-ui-peek
Ref: #8052
2024-09-08 17:54:18 -04:00
Henrik Lissner
0461c5de5f
tweak(indent-guides): subtle bars & bitmaps (almost) by default
In e0a926d, I defaulted to not using bitmaps for indent-guides, but
after some more research, I realize this slowness is more prominent on
MacOS, older PGTK builds, and (possibly) Windows, so I've opted to
re-enable bitmaps by default, unless you're on one of those
systems (except Windows; still testing that).

This change also makes the guide bars more subtle, since the default is
too distracting and colorful.

Ref: #8052
Ref: e0a926dc1e
2024-09-07 22:41:53 -04:00
Henrik Lissner
0d9e188b26
refactor!(indent-guides): use indent-bars instead
BREAKING CHANGE: This swaps out the `highlight-indent-guides` package
with the newer, and proportedly faster, `indent-bars`. Users don't have
to make any changes to their config to support this, unless they've
heavily reconfigured `highlight-indent-guides`.

Ref: https://github.com/orgs/doomemacs/projects/5/views/1?filterQuery=-status%3ARejected%2CDone+indent&pane=issue&itemId=38113671
2024-09-07 19:04:37 -04:00
Henrik Lissner
e0a926dc1e
tweak(indent-guides): default to character method
The bitmap method is slower and not that different, visually, from the
character method.

Fix: #8052
Co-authored-by: nightkr <nightkr@users.noreply.github.com>
2024-09-06 16:15:57 -04:00
Henrik Lissner
5f798cf8e7
feat(indent-guides): add +indent-guides-inhibit-functions
Also adds a fix for indent-guides breaking inline images in
ein:notebook-mode (#6438).

Fix: #6438
Ref: 29277c9b02
2024-07-29 02:03:25 -04:00
Henrik Lissner
6edb9dfc77
tweak(indent-guides): default to bitmap in GUI 2024-01-24 12:40:05 -05:00
Henrik Lissner
9d4689de5f
fix(indent-guides): face init in tty Emacs
Ensure that highlight-indent-guides-auto-set-faces is called when the
active theme and frame has been initialized (particularly tricky in
daemon sessions). With this assurance, we don't need to suppress its
errors anymore.

Close: #6900
Co-authored-by: Sleepful <Sleepful@users.noreply.github.com>
2022-10-29 01:57:39 +02:00
Henrik Lissner
f989bf60f0 Rewrite how themes are loaded, and fonts reloaded
A follow-up to 578dddd, which wasn't sufficient.

Fixes #5000 (again)
2021-05-08 00:42:06 -04:00
daanturo
11e06427fa Suppress highlight-indent-guides's auto errors
Otherwise it constantly spams the echo area in tty
2021-04-14 17:37:45 +07:00
Henrik Lissner
3907e75c82
Fix #3604: wrong indent-guide color in daemon frames 2020-10-21 17:16:59 -04:00
Henrik Lissner
4c1ad04e7f
Fix 'void-variable: org-indent-mode' error 2020-07-31 02:45:57 -04:00
Henrik Lissner
2c158a4112
Disable highlight-indent-guides-mode in org-indent-mode 2020-07-31 01:25:20 -04:00
Henrik Lissner
cc772adc38
Revert 68815a6a3
Fixes #3320
2020-06-07 14:00:13 -04:00
Henrik Lissner
68815a6a37
Use (supposedly) faster indent-guides glyph 2020-06-05 15:18:03 -04:00
Henrik Lissner
5775714506
Fix #2666: init indent-guides faces on first GUI frame 2020-03-31 16:30:30 -04:00
Henrik Lissner
bf85a03f5e
Don't disable indent-guides in visual-line-mode 2020-01-20 01:52:21 -05: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
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
6dcbaef570
ui/indent-guides: don't omit first level of guides 2019-05-29 23:46:18 -04:00
Henrik Lissner
754dd75624
Update highlight-indent-guides faces on focus-in
The faces may go out of sync if you spawn a tty frame via the server.
Updating it when you switch frames is a workaround for this.
2019-05-19 02:18:26 -04:00
Henrik Lissner
f1ea7de76d
Fix color of indent guides in daemon sessions 2019-05-13 19:34:44 -04:00
Henrik Lissner
7443669b1e
Minor refactors & comment revision 2019-05-13 14:37:00 -04:00
Henrik Lissner
f7f96d3abb
ui/indent-guides: disable responsive guides
It substantially slows down Emacs, so I cannot endorse it as a default.
2019-05-12 00:56:14 -04:00
xhcoding
c6daca8e94
fix typo
fix Symbol’s value as variable is void: highlight-indent-guides
2019-03-25 10:01:54 +08:00
Henrik Lissner
29277c9b02
Disable indent guides in incompatible modes
e.g. visual-line-mode & org-indent-mode
2019-03-13 01:29:05 -04:00
Henrik Lissner
c5c3bdaa61
ui/indent-guides: set variables sooner
So you don't need after! to change them.
2019-03-11 16:46:55 -04:00
Henrik Lissner
8392c9dcf6
Add new :ui indent-guides module
Replaces old highlight-indentation-mode with new highlight-indent-guides
plugin.
2019-03-11 12:39:38 -04:00