chore: change colour scheme to catppuccin

This commit is contained in:
Artur Manuel 2024-09-22 15:04:36 +01:00
commit 63f584846e
Failed to generate hash of commit
2 changed files with 51 additions and 48 deletions

View file

@ -4,11 +4,12 @@
* Emacs window stuff * Emacs window stuff
Things like turning off the menubar, etc. Things like turning off the menubar, etc.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package emacs (use-package emacs
:init :init
(setq frame-resize-pixelwise t (setq frame-resize-pixelwise t
frame-inhibit-implied-resize t) frame-inhibit-implied-resize t
x-gtk-resize-child-frames 'resize-mode)
(menu-bar-mode -1) (menu-bar-mode -1)
(scroll-bar-mode -1) (scroll-bar-mode -1)
(tool-bar-mode -1) (tool-bar-mode -1)
@ -27,44 +28,45 @@ Things like turning off the menubar, etc.
* Theming * Theming
** Spacious Padding ** Spacious Padding
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package spacious-padding :ensure t (use-package spacious-padding :ensure t
:hook (after-init . spacious-padding-mode) :hook (after-init . spacious-padding-mode)
:bind ("<f8>" . spacious-padding-mode)) :bind ("<f8>" . spacious-padding-mode))
#+END_SRC #+END_SRC
** Mood-line ** Mood-line
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package mood-line :ensure t (use-package mood-line :ensure t
:hook (after-init . mood-line-mode)) :hook (after-init . mood-line-mode))
#+END_SRC #+END_SRC
** Nerd Fonts ** Nerd Fonts
May or may not need nerd fonts for some of the below packages. 8) May or may not need nerd fonts for some of the below packages. 8)
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package nerd-icons (use-package nerd-icons
:custom :custom
(nerd-icons-font-family "Symbols Nerd Font Mono")) (nerd-icons-font-family "Symbols Nerd Font Mono"))
#+END_SRC #+END_SRC
** Theme ** Theme
Using oxocarbon-theme because it reflects my colour scheme. Using Catppuccin as that reflects my current colour scheme.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package oxocarbon-theme) (use-package catppuccin-theme
(use-package autothemer
:after (oxocarbon-theme)
:init :init
(load-theme 'oxocarbon t)) (load-theme 'catppuccin t)
:config
(setq catppuccin-flavor 'mocha)
(catppuccin-reload))
#+END_SRC #+END_SRC
** Mood-line ** Mood-line
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package mood-line :ensure t (use-package mood-line :ensure t
:custom (mood-line-glyph-alist mood-line-glyphs-fira-code) :custom (mood-line-glyph-alist mood-line-glyphs-fira-code)
:hooks (after-init . mood-line-mode)) :hooks (after-init . mood-line-mode))
#+END_SRC emacs-lisp #+END_SRC elisp
* Vertico, Orderless, and more stuff * Vertico, Orderless, and more stuff
Personal favourite emacs completer, and my computer can run it! 8) Personal favourite emacs completer, and my computer can run it! 8)
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package vertico (use-package vertico
:custom :custom
(vertico-count 5) (vertico-count 5)
@ -253,7 +255,7 @@ Personal favourite emacs completer, and my computer can run it! 8)
** GENERAL LANGUAGES ** GENERAL LANGUAGES
*** Flycheck *** Flycheck
I will of course need flycheck for syntax checking stuff, also used for LSPS and whatnot. I will of course need flycheck for syntax checking stuff, also used for LSPS and whatnot.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package flycheck (use-package flycheck
:ensure t :ensure t
:config :config
@ -262,7 +264,7 @@ I will of course need flycheck for syntax checking stuff, also used for LSPS and
#+END_SRC #+END_SRC
*** LSP *** LSP
Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now. :( Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now. :(
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package lsp-mode (use-package lsp-mode
:custom :custom
(lsp-keymap-prefix "C-c l") (lsp-keymap-prefix "C-c l")
@ -276,7 +278,7 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now.
#+END_SRC #+END_SRC
** SPECIFIC LANGUAGES ** SPECIFIC LANGUAGES
*** Nix *** Nix
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package nix-mode (use-package nix-mode
:mode "\\.nix\\'") :mode "\\.nix\\'")
(use-package lsp-mode (use-package lsp-mode
@ -284,14 +286,14 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now.
(lsp-nix-nil-auto-eval-inputs nil)) (lsp-nix-nil-auto-eval-inputs nil))
#+END_SRC #+END_SRC
*** Rust *** Rust
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package rustic (use-package rustic
:custom :custom
(rustic-format-on-save t) (rustic-format-on-save t)
(rustic-cargo-use-last-stored-arguments t)) (rustic-cargo-use-last-stored-arguments t))
#+END_SRC #+END_SRC
*** Haskell *** Haskell
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package lsp-haskell (use-package lsp-haskell
:hook (haskell-mode . lsp)) :hook (haskell-mode . lsp))
@ -299,7 +301,7 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now.
:mode "\\.hs\\'") :mode "\\.hs\\'")
#+END_SRC #+END_SRC
*** Python *** Python
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package lsp-pyright (use-package lsp-pyright
:ensure t :ensure t
:hook (python-mode . (lambda () :hook (python-mode . (lambda ()
@ -307,20 +309,20 @@ Enabling Emacs-LSP to use LSPs, I am very dry on syntax highlighters right now.
(lsp)))) ; or lsp-deferred (lsp)))) ; or lsp-deferred
#+END_SRC #+END_SRC
*** C++ *** C++
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package ccls (use-package ccls
:hook ((c-mode c++-mode objc-mode cuda-mode) . :hook ((c-mode c++-mode objc-mode cuda-mode) .
(lambda () (require 'ccls) (lsp)))) (lambda () (require 'ccls) (lsp))))
#+END_SRC #+END_SRC
* Which-key * Which-key
Amazing tool, love it a bunch. Amazing tool, love it a bunch.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package which-key (use-package which-key
:config :config
(which-key-mode)) (which-key-mode))
#+END_SRC #+END_SRC
* Treemacs * Treemacs
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package all-the-icons (use-package all-the-icons
:if (display-graphic-p)) :if (display-graphic-p))
@ -440,7 +442,7 @@ Amazing tool, love it a bunch.
#+END_SRC #+END_SRC
* Magit * Magit
Git in Emacs, it saves a fuck ton of time later down the road Git in Emacs, it saves a fuck ton of time later down the road
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package magit (use-package magit
:ensure t :ensure t
:bind (("C-x C-g" . magit-status) :bind (("C-x C-g" . magit-status)
@ -449,7 +451,7 @@ Git in Emacs, it saves a fuck ton of time later down the road
#+END_SRC #+END_SRC
* Projectile * Projectile
This makes stuff a lot easier I hope. This makes stuff a lot easier I hope.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package projectile (use-package projectile
:ensure t :ensure t
:init :init
@ -469,12 +471,12 @@ This makes stuff a lot easier I hope.
#+END_SRC #+END_SRC
* envrc * envrc
Automatically sets up files so I can use an LSP and more. Automatically sets up files so I can use an LSP and more.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package envrc (use-package envrc
:hook (after-init . envrc-global-mode)) :hook (after-init . envrc-global-mode))
#+END_SRC #+END_SRC
* Org-mode * Org-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC elisp
(use-package org-roam (use-package org-roam
:ensure t :ensure t
:custom :custom

View file

@ -60,15 +60,16 @@ in
autothemer autothemer
geiser-guile geiser-guile
lsp-haskell lsp-haskell
catppuccin-theme
; ;
treesit-grammars = e.treesit-grammars.with-all-grammars; treesit-grammars = e.treesit-grammars.with-all-grammars;
inherit (pkgs) python3; inherit (pkgs) python3;
oxocarbon-theme = mkEmacsPackage e "oxocarbon-theme" "0.1.0" (pkgs.fetchurl { # oxocarbon-theme = mkEmacsPackage e "oxocarbon-theme" "0.1.0" (pkgs.fetchurl {
url = "https://raw.githubusercontent.com/konrad1977/emacs/main/themes/oxocarbon-theme.el"; # url = "https://raw.githubusercontent.com/konrad1977/emacs/main/themes/oxocarbon-theme.el";
hash = "sha256-jD4DYc7aePuAF3m323YAi7jzE6ZpsSWb/zdmEgjFCns="; # hash = "sha256-jD4DYc7aePuAF3m323YAi7jzE6ZpsSWb/zdmEgjFCns=";
}) [ e.autothemer ]; # }) [ e.autothemer ];
}; };
override = _: prev: { use-package = prev.emacs; }; override = _: prev: { use-package = prev.emacs; };
}; };