Catppuccin for Emacs
This Emacs theme was made with the Dracula theme as a base.
catppuccin-theme
is available on the MELPA package repository.
- Make sure to have MELPA enabled by adding it to the
package-archives
, or that your package manager of choice has MELPA as a repository. - You can then install the package from the
list-packages
interface, accessible fromM-x list-packages
. - Alternatively, you can install the package using your package manager of choice, such as straight
(straight-use-package 'catppuccin-theme)
- Then, you can enable it by adding the following to your
init.el
file
(load-theme 'catppuccin :no-confirm)
- Add the following to your
package.el
(package! catppuccin-theme)
- Add the following to your
config.el
(setq doom-theme 'catppuccin)
The default flavour is Mocha, to change the flavor, place the following in your init.el
or config.el
after loading the theme
(setq catppuccin-flavor 'frappe) ;; or 'latte, 'macchiato, or 'mocha
(catppuccin-reload)
The theme can also be customzied further by changing individual colors.
Doom users must call (load-theme 'catppuccin t t)
before being able to call any of the catppuccin-*
functions.
(catppuccin-set-color 'base "#000000") ;; change base to #000000 for the currently active flavor
(catppuccin-set-color 'crust "#222222" 'frappe) ;; change crust to #222222 for frappe
(catppuccin-reload)
Note
If you are using emacsclient and rustic, you should add (add-hook 'server-after-make-frame-hook #'catppuccin-reload)
to your config to avoid this issue
Note
If you are using doom emacs and want to customize the catppuccin-flavor
, calling (catppuccin-reload)
after load-theme
may slow emacs startup time. To change the flavor, it is sufficient to setq
the desired flavor before loading the theme. Then, calling (catppuccin-reload)
can be omitted because catppuccin will be loaded with the desired flavor directly.
Copyright © 2021-present Catppuccin Org