Compare commits
3 commits
7321bf20fa
...
b8133c7971
Author | SHA1 | Date | |
---|---|---|---|
Evie Litherland-Smith | b8133c7971 | ||
Evie Litherland-Smith | d8cb9b526b | ||
Evie Litherland-Smith | 8752c19241 |
|
@ -20,12 +20,52 @@
|
||||||
withImageMagick = true;
|
withImageMagick = true;
|
||||||
withPgtk = true;
|
withPgtk = true;
|
||||||
};
|
};
|
||||||
extraConfig = builtins.readFile ./extraConfig.el;
|
extraConfig = builtins.readFile ./init.el;
|
||||||
extraPackages =
|
extraPackages =
|
||||||
epkgs: with epkgs; [
|
epkgs: with epkgs; [
|
||||||
treesit-grammars.with-all-grammars
|
# UI and Appearance
|
||||||
emacsql-sqlite
|
delight
|
||||||
|
nerd-icons
|
||||||
|
nerd-icons-dired
|
||||||
|
nerd-icons-ibuffer
|
||||||
|
nerd-icons-corfu
|
||||||
|
visual-fill-column
|
||||||
|
# Email and Calendar
|
||||||
|
khalel
|
||||||
mu4e
|
mu4e
|
||||||
|
# Other (TODO sort)
|
||||||
|
ligature
|
||||||
|
which-key
|
||||||
|
diff-hl
|
||||||
|
org-roam
|
||||||
|
org-noter
|
||||||
|
citar
|
||||||
|
vertico
|
||||||
|
marginalia
|
||||||
|
orderless
|
||||||
|
corfu
|
||||||
|
corfu-terminal
|
||||||
|
cape
|
||||||
|
consult
|
||||||
|
consult-eglot
|
||||||
|
tempel
|
||||||
|
rainbow-delimiters
|
||||||
|
envrc
|
||||||
|
treesit-grammars.with-all-grammars
|
||||||
|
treesit-auto
|
||||||
|
apheleia
|
||||||
|
flymake-shellcheck
|
||||||
|
flymake-yamllint
|
||||||
|
flymake-clippy
|
||||||
|
flymake-eslint
|
||||||
|
magit
|
||||||
|
forge
|
||||||
|
nix-mode
|
||||||
|
lua-mode
|
||||||
|
auctex
|
||||||
|
markdown-mode
|
||||||
|
pandoc-mode
|
||||||
|
scad-mode
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
|
@ -1,42 +0,0 @@
|
||||||
(defun my/configure-theme ()
|
|
||||||
"Load theme and configure some faces."
|
|
||||||
(interactive)
|
|
||||||
|
|
||||||
;; Set some font-lock faces to be italic
|
|
||||||
(set-face-attribute 'font-lock-doc-face nil :slant 'italic)
|
|
||||||
(set-face-attribute 'font-lock-comment-face nil :slant 'italic)
|
|
||||||
(set-face-attribute 'font-lock-comment-delimiter-face nil :slant 'italic)
|
|
||||||
|
|
||||||
;; Change outline headers to follow rainbow order
|
|
||||||
(require 'outline)
|
|
||||||
(when (boundp 'base16-stylix-theme-colors)
|
|
||||||
(dolist (pairing '((outline-1 . :base08)
|
|
||||||
(outline-2 . :base09)
|
|
||||||
(outline-3 . :base0A)
|
|
||||||
(outline-4 . :base0B)
|
|
||||||
(outline-5 . :base0C)
|
|
||||||
(outline-6 . :base0D)
|
|
||||||
(outline-7 . :base0E)
|
|
||||||
(outline-8 . :base0F)))
|
|
||||||
(set-face-attribute (car pairing) nil
|
|
||||||
:foreground
|
|
||||||
(plist-get base16-stylix-theme-colors (cdr pairing))))
|
|
||||||
|
|
||||||
(require 'org-faces)
|
|
||||||
;; Lighten `org-agenda-clocking' background to be more legible.
|
|
||||||
(set-face-attribute 'org-agenda-clocking nil :background
|
|
||||||
(plist-get base16-stylix-theme-colors :base01))
|
|
||||||
;; Set `org-hide' face to actually match background colour
|
|
||||||
(set-face-attribute 'org-hide nil :foreground
|
|
||||||
(plist-get base16-stylix-theme-colors :base00))
|
|
||||||
(with-eval-after-load 'org-noter
|
|
||||||
(set-face-attribute 'org-noter-no-notes-exist-face nil :foreground
|
|
||||||
(plist-get base16-stylix-theme-colors :base08))
|
|
||||||
(set-face-attribute 'org-noter-notes-exist-face nil :foreground
|
|
||||||
(plist-get base16-stylix-theme-colors :base0B))))
|
|
||||||
)
|
|
||||||
|
|
||||||
(with-eval-after-load 'base16-theme
|
|
||||||
(require 'server)
|
|
||||||
(add-hook 'after-init-hook (lambda () (my/configure-theme)))
|
|
||||||
(add-hook 'server-after-make-frame-hook (lambda () (my/configure-theme))))
|
|
1453
system/home/emacs/init.el
Normal file
1453
system/home/emacs/init.el
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,7 +2,6 @@
|
||||||
{
|
{
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.writeShellScriptBin "sync-git" (builtins.readFile ./shell/sync-git.sh))
|
(pkgs.writeShellScriptBin "sync-git" (builtins.readFile ./shell/sync-git.sh))
|
||||||
(pkgs.writeShellScriptBin "sync-emacs" (builtins.readFile ./shell/sync-emacs.sh))
|
|
||||||
(pkgs.writeShellScriptBin "ensure-pass" (builtins.readFile ./shell/ensure-pass.sh))
|
(pkgs.writeShellScriptBin "ensure-pass" (builtins.readFile ./shell/ensure-pass.sh))
|
||||||
(pkgs.writeShellScriptBin "clean-config" (builtins.readFile ./shell/clean-config.sh))
|
(pkgs.writeShellScriptBin "clean-config" (builtins.readFile ./shell/clean-config.sh))
|
||||||
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
|
(pkgs.writeShellScriptBin "rsync-local-config" (builtins.readFile ./shell/rsync-local-config.sh))
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
# Clone ~/.config/emacs/ if it doesn't exist
|
|
||||||
EMACS_DIR="$HOME/.emacs.d"
|
|
||||||
if [ ! -d "$EMACS_DIR" ]; then
|
|
||||||
git clone "https://git.xenia.me.uk/pixelifytica/emacs.git" "$EMACS_DIR"
|
|
||||||
fi
|
|
||||||
(
|
|
||||||
cd "$EMACS_DIR" || exit 1
|
|
||||||
# Pull changes by fast-forwarding only
|
|
||||||
git pull --ff --ff-only
|
|
||||||
# Update submodules for local packages
|
|
||||||
git submodule update --init --recursive
|
|
||||||
# Install and update extensions
|
|
||||||
make install
|
|
||||||
)
|
|
|
@ -8,8 +8,8 @@
|
||||||
./cava.nix
|
./cava.nix
|
||||||
];
|
];
|
||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
sync-all = "sync-git; sync-emacs";
|
sync-all = "sync-git; vdirsyncer sync; mbsync -a";
|
||||||
sync-and-shutdown = "sync-git && vdirsyncer sync && mbsync -a && shutdown now";
|
sync-and-shutdown = "sync-all && shutdown now";
|
||||||
protonup = "sudo wg-quick up protonvpn && sudo wg";
|
protonup = "sudo wg-quick up protonvpn && sudo wg";
|
||||||
protondown = "sudo wg-quick down protonvpn";
|
protondown = "sudo wg-quick down protonvpn";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue