Back to Noctalia

Emacs

v5-templates-official-emacs.md

latest2.1 KB
Original Source

Emacs

Emacs can be themed using the Noctalia color scheme through the built-in theme system.

Setup

Section titled “Setup”

  1. Enable Emacs theming in Noctalia:
  • Open Settings → Color Scheme → Templates → Programs
  • Toggle on Emacs
  1. Add the theme to your Emacs configuration: Add the following line to your Emacs configuration file (typically ~/.emacs.d/config.el, or ~/.config/doom/config.el):

  2. Reload your configuration:

  • Restart Emacs, or
  • Evaluate the expression: M-x eval-buffer or C-x C-e after the line

Configuration Example

Section titled “Configuration Example”

Here’s a complete example of how to add it to your config.el:

;; Load Noctalia theme(load-theme 'noctalia t)

You can also add it conditionally or after other configurations:

;; Load Noctalia theme after startup(add-hook 'after-init-hook (lambda () (load-theme 'noctalia t)))

Troubleshooting

Section titled “Troubleshooting”

  • Theme not found: Ensure that Emacs theming is enabled in Noctalia settings and that the theme files are being generated correctly. If the files exist but aren’t found, add (add-to-list 'custom-theme-load-path "~/.config/emacs/themes/") before (load-theme 'noctalia t).
  • Theme not applying: Make sure you’ve added (load-theme 'noctalia t) to your Emacs configuration file
  • Colors not updating: Restart Emacs or reload your configuration after changing color schemes in Noctalia
  • Theme conflicts: The t argument in load-theme disables other themes. If you want to keep other themes, you may need to adjust your configuration

Additional Notes

Section titled “Additional Notes”

The Noctalia theme for Emacs integrates with Noctalia’s color scheme system. When you change color schemes in Noctalia, the Emacs theme will be regenerated to match. You’ll need to reload the theme in Emacs to see the changes:

(load-theme 'noctalia t)

Or use M-x load-theme and select noctalia from the list.