Skip to content

🎨 Apply your Emacs theme to the rest of Linux, using magic. Also works on Mac.

License

Notifications You must be signed in to change notification settings

jcaw/theme-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

theme-magic logo

What's the point in an Emacs theme if the rest of Linux looks different?

Apply your Emacs theme to the rest of Linux, using magic. Also works on Mac.


Demonstration of applying the theme to Linux with theme-magic

Usage

Just call M-x theme-magic-from-emacs. theme-magic will extract the colors from your Emacs theme and apply them to the rest of Linux with Pywal.

If you want the Linux theme to update automatically whenever the Emacs theme is changed, enable the global minor mode theme-magic-export-theme-mode. For example:

(require 'theme-magic)
(theme-magic-export-theme-mode)

You can disable auto-updating by disabling the minor mode.

Installation

Dependencies

First, you must install Pywal as a dependency. Check if it's installed by calling wal in a shell. Make sure Python is installed too.

Installing theme-magic from MELPA

theme-magic is available on MELPA. Follow the instructions to set up MELPA.

Install theme-magic with M-x package-install RET theme-magic RET.

Footnotes

Restoring Your Theme

Pywal only applies your theme to the current session. See its documentation for details. To restore the last theme, call wal -R in the shell. To restore your theme automatically, add the following to your .xprofile (or whichever dotfile is loaded automatically once your desktop starts up):

wal -R

Setting Your Wallpaper

Pywal was designed to generate a color scheme that matches your wallpaper. Because of some quirks in how Pywal works, you have to set the wallpaper before exporting a theme from Emacs, or it will not be saved. Call this command in a shell:

wal -i "path/to/wallpaper.png"

Pywal will set your wallpaper and save it in its cache. Now, you can apply your Emacs theme:

M-x theme-magic-from-emacs

Now, when you call wal -R, both the wallpaper and the theme will be set.

MacOS

theme-magic also works on MacOS. iTerm2 should inherit from the exported Emacs theme. You will need to call wal -R to refresh when the terminal restarts.

About

🎨 Apply your Emacs theme to the rest of Linux, using magic. Also works on Mac.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published