feat: add oxocarbon

This commit is contained in:
Artur Manuel 2024-09-06 15:56:42 +01:00
commit e0e44156e7
Failed to generate hash of commit
2 changed files with 72 additions and 65 deletions

View file

@ -46,25 +46,13 @@ May or may not need nerd fonts for some of the below packages. 8)
#+END_SRC #+END_SRC
** Theme ** Theme
Using doom-themes here because Tokyo Night isn't on MELPA. Using oxocarbon-theme because it reflects my colour scheme.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package oxocarbon-theme)
:ensure t (use-package autothemer
:config :after (oxocarbon-theme)
;; Global settings (defaults) :init
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled (load-theme 'oxocarbon t))
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(load-theme 'doom-tokyo-night t)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable custom neotree theme (all-the-icons must be installed!)
(doom-themes-neotree-config)
;; or for treemacs users
(setq doom-themes-treemacs-theme "doom-tokyo-night") ; use "doom-colors" for less minimal icon theme
(doom-themes-treemacs-config)
;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config))
#+END_SRC #+END_SRC
** Mood-line ** Mood-line

View file

@ -1,51 +1,70 @@
{ emacsWithPackagesFromUsePackage, emacs29-pgtk, python3 }: { emacsWithPackagesFromUsePackage, fetchurl, emacs29-pgtk, python3 }:
emacsWithPackagesFromUsePackage { emacsWithPackagesFromUsePackage {
package = emacs29-pgtk; package = emacs29-pgtk;
config = ./config.org; config = ./config.org;
defaultInitFile = true; defaultInitFile = true;
alwaysEnsure = true; alwaysEnsure = true;
alwaysTangle = true; alwaysTangle = true;
extraEmacsPackages = extraEmacsPackages = e:
e: (builtins.attrValues { let
inherit (e) mkEmacsPackage =
nix-mode pname:
doom-themes src:
vertico deps:
orderless e.callPackage
marginalia ({ trivialBuild }: trivialBuild {
embark inherit pname src;
consult version = "0.1.0";
embark-consult buildInputs = deps;
consult-dir propagatedUserEnvPkgs = deps;
doom-modeline })
flycheck { inherit (e) trivialBuild; };
which-key in
lsp-mode (builtins.attrValues {
lsp-ui inherit (e)
lsp-pyright nix-mode
treemacs vertico
lsp-treemacs orderless
consult-lsp marginalia
treemacs-icons-dired embark
treemacs-nerd-icons consult
nerd-icons embark-consult
all-the-icons consult-dir
projectile doom-modeline
treemacs-projectile flycheck
magit which-key
treemacs-magit lsp-mode
rustic lsp-ui
haskell-mode lsp-pyright
envrc treemacs
ccls lsp-treemacs
org-roam consult-lsp
spacious-padding treemacs-icons-dired
mood-line treemacs-nerd-icons
ement nerd-icons
; all-the-icons
}) ++ [ projectile
e.treesit-grammars.with-all-grammars treemacs-projectile
python3 magit
]; treemacs-magit
rustic
haskell-mode
envrc
ccls
org-roam
spacious-padding
mood-line
ement
autothemer
;
treesit-grammars = e.treesit-grammars.with-all-grammars;
inherit python3;
oxocarbon = mkEmacsPackage "oxocarbon-theme"
(fetchurl {
url = "https://raw.githubusercontent.com/konrad1977/emacs/main/themes/oxocarbon-theme.el";
hash = "sha256-jD4DYc7aePuAF3m323YAi7jzE6ZpsSWb/zdmEgjFCns=";
}) [ e.autothemer ];
});
override = _: prev: { use-package = prev.emacs; }; override = _: prev: { use-package = prev.emacs; };
} }