Skip to content

Commit 771c2dd

Browse files
authored
feat: overhaul theme (#416)
* feat: overhaul theme * chore: update screenshots
1 parent 3911b69 commit 771c2dd

13 files changed

+349
-409
lines changed

dev/flake-module.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
help = "generate new screenshots";
5454
category = "emacs";
5555
command = ''
56-
exec nix run $PRJ_ROOT/dev#updateScreenshots
56+
exec nix run $PRJ_ROOT#updateScreenshots
5757
'';
5858
}
5959
];
@@ -88,7 +88,7 @@
8888
text = ''
8989
EMACS_DIR="$(mktemp -td emacs.XXXXXXXXXX)"
9090
lndir -silent ${config.packages.emacs-config} "$EMACS_DIR"
91-
emacs -fs --init-directory "$EMACS_DIR" --load ${./screenshots.el} --eval '(kill-emacs)'
91+
emacs --fullscreen --init-directory "$EMACS_DIR" --load ${./screenshots.el} --eval '(kill-emacs)'
9292
'';
9393
};
9494
};

dev/screenshots.el

+18-15
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,29 @@
2424
(captures
2525
`((org-mode
2626
. ((find-file (expand-file-name "samples/sample.org" ,media-dir))
27-
(no-fringes)
27+
(goto-char 49)
2828
(follow-mode 1)
2929
(split-window-right)
30-
(goto-char 49)))
30+
(follow-redraw)))
3131
(markdown-mode
3232
. ((find-file (expand-file-name "samples/sample.md" ,media-dir))
33-
(no-fringes)
33+
(goto-char 51)
3434
(follow-mode 1)
3535
(split-window-right)
36-
(goto-char 51)))
36+
(follow-redraw)))
3737
(rst-mode
3838
. ((find-file (expand-file-name "samples/sample.rst" ,media-dir))
39-
(no-fringes)
39+
(goto-char 239)
4040
(follow-mode 1)
4141
(split-window-right)
42-
(goto-char 239)))
42+
(follow-redraw)))
4343
(emacs-lisp-mode
4444
. ((find-file (expand-file-name "../lisp/readable-mono-theme.el" ,media-dir))
45-
(no-fringes)
45+
(goto-char 1223)
4646
(follow-mode 1)
4747
(split-window-right)
48-
(goto-char 1443))))))
48+
(follow-redraw))))))
49+
(global-hide-fringes-mode 1)
4950
(blink-cursor-mode 0)
5051

5152
(dolist (capture captures)
@@ -55,17 +56,19 @@
5556

5657
(dolist (action actions) (eval action))
5758

59+
(font-lock-update)
60+
5861
(dolist (background-mode '(light dark))
5962
(customize-set-variable 'frame-background-mode background-mode)
6063
(customize-set-variable 'custom-enabled-themes custom-enabled-themes)
6164
(message nil)
62-
(unwind-protect (with-temp-file (expand-file-name
63-
(concat name
64-
"-"
65-
(symbol-name background-mode)
66-
".png")
67-
media-dir)
68-
(insert (x-export-frames nil 'png))))))))
65+
(with-temp-file (expand-file-name
66+
(concat name
67+
"-"
68+
(symbol-name background-mode)
69+
".png")
70+
media-dir)
71+
(insert (x-export-frames nil 'png)))))))
6972

7073
(provide 'screenshots)
7174
;;; screenshots.el ends here

flake.nix

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
partitionedAttrs = {
4646
checks = "dev";
4747
devShells = "dev";
48+
packages = "dev";
4849
};
4950

5051
partitions.dev = {

0 commit comments

Comments
 (0)