![]() ![]() Use which-key to label prefixes and bindings.Ĭ-c w t, then keep pressing single hydra keys to switch among themes. So for example window-related commands have a Use bind-keys (from use-package) to put commands onĬ-c prefixes, with an additional prefix key to group related commands. gh/themes-hydra/body ))Ĭ-c w t following an idea I saw in lunaryorn’s init file: ( defhydra gh/themes-hydra ( :hint nil :color pink ) " Themes ^Solarized^ ^Material^ ^Other^ - _s_: Dark _m_: Dark _z_: Zenburn _DEL_: none _S_: Light _M_: Light " ( "s" ( load-theme 'solarized-dark t )) ( "S" ( load-theme 'solarized-light t )) ( "m" ( load-theme 'material t )) ( "M" ( load-theme 'material-light t )) ( "z" ( load-theme 'zenburn t )) ( "DEL" ( gh/disable-all-themes )) ( "RET" nil "done" :color blue )) ( bind-keys ( "C-c w t". If want just one theme at a time? I must first disable-theme each currently-enabled theme. As a result, load-theme doesn’t mean “use this one theme” - it means, “layer this theme on top of those already enabled”. The variable custom-enabled-themes is plural, a list. What I didn’t understand at first is that Emacs supports many themes enabled simultaneously. Here’s what I’m doing to address both issues. ![]() So for example I might switch to Material then back to Solarized, and get a weird mix of mostly Solarized but with Material org headings. For many years I kept trying other themes, both light and dark, and always the same thing happened: after a few days I would go back to the default theme (and the fg/bg-swapped dark. Switching between the Solarized and Material themes using load-theme definitely did not work well: If the old theme defined a face, but the new theme did not, the old face would remain in effect. The default theme that comes with Emacs is seriously underrated And if you just swap the foreground and background it makes for a pretty good dark theme, too. I didn’t love the 3D “button” look it gives org-mode headings. Although too high-contrast to use full-time, it works well in certain situations.Īfter I installed it I had two annoyances: A custom-set-faces form in my init file gradually accumulated face specs like a lint-roller. Until a few months ago I didn’t use Emacs themes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |