From 4ec065bfa6e6b6fc9d0a195156c351f5dc89f25d Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Thu, 17 Nov 2022 21:54:06 +0000 Subject: [PATCH] feat: initial integration of custom theme --- graphite-theme.el | 23 +++++++++++++++++++++++ init.el | 2 +- lisp/editor.el | 2 +- lisp/interface.el | 3 --- 4 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 graphite-theme.el diff --git a/graphite-theme.el b/graphite-theme.el new file mode 100644 index 0000000..065ec2d --- /dev/null +++ b/graphite-theme.el @@ -0,0 +1,23 @@ +(use-package autothemer) + +(autothemer-deftheme + graphite + "A neon, shimmering theme for Emacs" + + ;; The color classes used by the theme. Theme supports GUI Emacs only. + ((((class color) (min-colors #xFFFFFF)) + + ;; Specify the color palette, color columns correspond to each of the classes above. + (red "#781210") + (green "#69f961") + (blue "#64c7fc") + (magenta "#e572c8") + (lilac "#7b6b97") + (yellow "#f9ef61") + (cyan "#50fcce")) + + ;; Specifications for Emacs faces. + ((default (:foreground example-cyan)) + (error (:foreground example-red)))) + +(provide-theme 'graphite) diff --git a/init.el b/init.el index 7e6dd62..4cb0584 100644 --- a/init.el +++ b/init.el @@ -52,7 +52,7 @@ ;; Load user configuration (add-to-list 'load-path (concat user-emacs-directory - (convert-standard-filename "user/"))) + (convert-standard-filename "user/"))) (load "init") ;;; init.el ends here diff --git a/lisp/editor.el b/lisp/editor.el index 7313ce4..fcdc6dd 100644 --- a/lisp/editor.el +++ b/lisp/editor.el @@ -56,7 +56,7 @@ (doom-themes-org-config) ; And org-mode ;; Set theme to doom-tokyo-night, Dianicemacs' default -(load-theme 'doom-tokyo-night t) +(load-theme 'graphite t) ;; rainbow-mode - Colourful colour codes! (use-package rainbow-mode diff --git a/lisp/interface.el b/lisp/interface.el index dc7c7d0..40fe71b 100644 --- a/lisp/interface.el +++ b/lisp/interface.el @@ -52,9 +52,6 @@ (use-package kaolin-themes :requires autothemer) -;; autothemer - conveniently create Emacs themes -(use-package autothemer) - ;; all-the-icons - Icons for various UI elements (use-package all-the-icons)