Commit Graph

163 Commits

Author SHA1 Message Date
a4d2e873ab Bump :ui doom
hlissner/emacs-doom-themes@4199e74 -> hlissner/emacs-doom-themes@4d24728
hlissner/emacs-solaire-mode@9d143db -> hlissner/emacs-solaire-mode@186f97d

Rewrite solaire-mode usage to adapt to upstream changes. This will yield
a new class of edge cases, but I'll tackle those as I encounter them.

Closes #5063
2021-05-21 23:13:14 -04:00
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
35185b2175 Split doom-reload-hook into before/after hooks 2020-10-16 22:28:08 -04:00
8fc82cacdb Bump :ui doom
hlissner/emacs-doom-themes@e803fc4 -> hlissner/emacs-doom-themes@8a5538e
hlissner/emacs-solaire-mode@d3e8f9e -> hlissner/emacs-solaire-mode@380e01c
2020-08-12 00:33:48 -04:00
6a64f37435 Minor refactors & revision across the board 2020-07-31 01:39:24 -04:00
6fc3be6165 Remove unneeded hook on org-capture-mode-hook
This was corrected upstream in hlissner/emacs-solaire-mode@e077c28
2020-06-12 12:26:55 -04:00
c2ea4c90d9 "Fix" hl-line bleeding into buffer bg (part 2)
At least highlight up to n-1's character in 2nd-to-last line, as
promised.
2020-06-01 19:36:52 -04:00
86625d3d42 "Fix" hl-line bleeding into buffer bg
When its face is remapped (e.g. by solaire-mode).

Unfortunately, this means highlighting on the 2nd-to-last line becomes
janky, but this is the lesser evil of the two. Upgrade to 27 people!

Also, don't do anything if solaire-mode isn't enabled.
2020-06-01 19:28:58 -04:00
e00bfc7612 Minor refactors & reformatting 2020-05-25 03:43:40 -04:00
98f69ee3cf Fix solaire-mode auto-disabler for daemon users
Hopefully.
2020-05-18 14:38:27 -04:00
096803e2fe Don't trigger redraw on every frame switch 2020-04-25 02:40:20 -04:00
71e23fb250 Refactor how solaire-mode is activated
Otherwise we are swapping bg faces even if the user removes
solaire-global-mode from doom-load-theme-hook.
2020-04-24 18:47:10 -04:00
efa599f076 Fix run-hooks: wrong-number-of-args error for daemon users 2020-04-23 13:08:08 -04:00
279ca195d5 Auto-disable solaire-global-mode in tty daemon frames
Or try, at least. This is very flimsy.
2020-04-23 03:44:42 -04:00
6c7bd1a94a Bump :ui doom
hlissner/emacs-solaire-mode@4ac324c -> hlissner/emacs-solaire-mode@adc8c0c
2020-04-23 03:44:23 -04:00
b78fc4eb76 Minor refactor & reformatting across the board 2020-04-08 15:30:10 -04:00
169f9a6121 General, minor refactor & reformatting 2020-03-27 01:25:30 -04:00
4170b72d91 ui/doom: remove +doom-solaire-themes var
We'll simply activate solaire-mode and swap the bg faces for any doom-*
theme.

Also: add doom-themes extensions for org, treemacs and neotree sooner,
so an `after!` block isn't necessary to disable them.
2020-03-06 15:26:37 -05:00
431cd38e83 Update +doom-solaire-themes to include all doom-themes 2020-02-06 17:28:45 -05:00
d8bd262fcc fix: gruvbox theme with solaire-mode 2019-12-18 16:47:42 +01:00
62aa608254 ui/doom: only load solaire-mode in daemon or gui sessions
Why daemon? Because we can't be sure if the user will open graphical or
tty frames. Detecting this is a messy affair, so I leave it to the user
to deal with. This'll have to be documented somewhere...
2019-12-12 03:39:34 -05:00
bfdd09b5c2 ui/doom: swap solaire bg for doom-challenger-deep 2019-12-06 13:59:13 -05:00
c13b8df5df Minor refactors & reformatting 2019-12-05 14:56:16 -05:00
6bb597564b ui/doom: swap bg for doom-tomorrow-day
Fix hlissner/emacs-doom-themes#362
2019-12-04 21:51:59 -05:00
2326379d68 ui/doom: swap bg for doom-{snazzy,spacegrey,tomorrow-night} 2019-12-01 15:42:05 -05:00
99cd52e70f 💥 Drop Emacs 25.x support
Emacs 26.1 is Doom's new minimum supported version

Closes #2026
2019-11-08 16:02:06 -05:00
d297dc6934 Minor refactor & comment revision across the board 2019-10-03 23:33:59 -04:00
16007d44f3 Add doom-solarized-dark to +doom-solaire-themes 2019-10-01 10:52:46 +13:00
e10cd8cf2e Insult byte-compiler's mom
Yeah, that shut him up.
2019-09-20 23:10:53 -04:00
96e2a7726d ui/doom: remove 'append in doom-load-theme-hook 2019-08-28 00:40:50 -04:00
a3e262c7ac 💥 Refactor add-hook! macro & change arg order
This update may potentially break your usage of add-hook! if you pass
the :local or :append properties to it. This is how they used to work:

  (add-hook! :append 'some-mode-hook #'do-something)

Thsoe properties must now follow the hooks, e.g.

  (add-hook! 'some-mode-hook :append #'do-something)

Other changes:
- Various add-hook calls have been renamed to add-hook! because I
  incorrectly assumed `defun` always returned its definition's symbol,
  when in fact, its return value is "undefined" (so sayeth the
  documentation). This should fix #1597.
- This update adds the ability to add multiple functions to hooks
  without a list:

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

- The indentation logic has been changed so that consecutive function
  symbols at indented at the same level as the first argument, but forms
  are indent like a defun.

    (add-hook! 'some-mode-hook
               #'do-something
               #'do-something-else)

    (add-hook! 'some-mode-hook
      (message "Hello"))
2019-07-26 20:17:29 +02:00
82ae3a73f3 def-advice!->defadvice! & conform to new advice conventions
This commit does two things:

- Renames def-advice! to defadvice!, in the spirit of naming convenience
  macros after the function/macro they enhance or replace.
- Correct the names of advice functions to indicate visibility and
  intent. A public advice function like doom-set-jump-a is meant to be
  used elsewhere. A private one like +dired--cleanup-header-line-a
  shouldn't -- it likely won't work anywhere but the function(s) it was
  made to advise.
2019-07-23 17:24:56 +02:00
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
20e2aa0b18 ui/doom: only load solaire-mode for supported themes 2019-07-23 02:06:35 +02:00
99e23adec1 ui/doom: simplify solaire init 2019-07-22 02:30:38 +02:00
8c41093fae ui/doom: update doom-themes config for treemacs/neotree 2019-07-22 02:30:38 +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
51d3b1b424 💥 revise advice naming convention (1/2)
This is first of three big naming convention updates that have been a
long time coming. With 2.1 on the horizon, all the breaking updates will
batched together in preparation for the long haul.

In this commit, we do away with the asterix to communicate that a
function is an advice function, and we replace it with the '-a' suffix.
e.g.

  doom*shut-up -> doom-shut-up-a
  doom*recenter -> doom-recenter-a
  +evil*static-reindent -> +evil--static-reindent-a

The rationale behind this change is:

1. Elisp's own formatting/indenting tools would occasionally struggle
   with | and * (particularly pp and cl-prettyprint). They have no
   problem with / and :, fortunately.
2. External syntax highlighters (like pygmentize, discord markdown or
   github markdown) struggle with it, sometimes refusing to highlight
   code beyond these symbols.
3. * and | are less expressive than - and -- in communicating the
   intended visibility, versatility and stability of a function.
4. It complicated the regexps we must use to search for them.
5. They were arbitrary and over-complicated to begin with, decided
   on haphazardly way back when Doom was simply "my private config".

Anyhow, like how predicate functions have the -p suffix, we'll adopt the
-a suffix for advice functions, -h for hook functions and -fn for
variable functions.

Other noteable changes:
- Replaces advice-{add,remove}! macro with new def-advice!
  macro. The old pair weren't as useful. The new def-advice! saves on a
  lot of space.
- Removed "stage" assertions to make sure you were using the right
  macros in the right place. Turned out to not be necessary, we'll
  employ better checks later.
2019-07-22 02:27:45 +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
3240238a18 tools/vterm: improve UI/UX
- Don't prompt about processes when killing buffer
- Hide modeline in vterm buffers (doesn't do anything useful and would
  be consistent with settings for eshell and term modules).
- Refactor +vterm/open & +vterm/open-popup
- Add Emacs window redraw hack to force vterm to redraw, fixing
  artefacting in some edge cases.
- Fix ansi-color-names-vector when solaire-mode is present, otherwise
  you get a mismatched background in vterm (and other terms).
2019-05-17 01:58:42 -04:00
949d5ab343 Defer added hooks until doom-themes is loaded
Fixes an issue where doom-themes-{org,neotree,treemacs}-config are
called before doom-themes is loaded (which may never happen if you
aren't using a doom-themes theme).
2019-03-17 23:19:55 -04:00
1ec9f5b2e9 Move hl-line-range-function fix to ui/doom
Remapping the hl-line face is what causes the bug that this fix
addresses.
2019-03-05 03:01:59 -05:00
99f65cba79 Don't swap-bg for doom-molokai
The lighter background should be used for file-visiting buffers, and
darker for sidebars and such.
2019-03-04 04:57:07 -05:00
9f1a0ee81e ui/doom: remove mixed-pitch-mode compat hack
Made obsolete by changes upstream in solaire-mode.
2019-03-02 12:48:08 -05:00
c033bfaca2 Fix mixed-pitch affecting all buffers
Both solaire-mode and mixed-pitch-mode use face-remap to do their thang.
We ensure the order by ensuring activation order.
2019-02-12 00:37:00 -05:00
6992e27884 ui/doom: use solaire-global-mode #1070 2018-12-26 17:36:52 -05:00
4e81605463 ui/doom: set load-theme hooks sooner
Allows users to remove them without after! blocks.
2018-10-16 02:49:21 -04:00
0c39e73a1e Refactor/reformat core-ui
+ Move minibuffer fringe disabler to ui/doom
+ Disable blink-cursor-mode (too distracting, causes other issues e.g.
  #892)
2018-09-18 15:19:50 -04:00
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
0cf9d1f2f2 Minor refactor & revision across the board 2018-08-31 02:53:50 +02:00