vefad.blogg.se

Emacs themes
Emacs themes












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:

emacs themes

( 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. 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. 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:

emacs themes emacs themes

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. Use the customize-themes framework, accessible through the menu bar -> options -> customize emacs -> custom-themes.














Emacs themes