Add font size to konsole config
Set Emacs font size programatically instead of fixed
This commit is contained in:
parent
ab7790b983
commit
d339e45fc7
|
@ -6,7 +6,10 @@
|
|||
profiles.onelight = {
|
||||
name = "One-Light";
|
||||
colorScheme = "onelight";
|
||||
font.name = fonts.monospace.name;
|
||||
font = {
|
||||
name = fonts.monospace.name;
|
||||
size = fonts.sizes.terminal;
|
||||
};
|
||||
extraConfig = {
|
||||
"Interaction Options" = {
|
||||
"TextEditorCmd" = 6;
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
extraConfig = let
|
||||
fixed-font-family = "${fonts.monospace.name}";
|
||||
variable-font-family = "${fonts.sansSerif.name}";
|
||||
font-height = builtins.toString (builtins.floor (builtins.mul fonts.sizes.applications 10));
|
||||
custom-theme-name = "nix";
|
||||
custom-theme = pkgs.writeTextFile {
|
||||
name = "custom-emacs-theme";
|
||||
|
@ -35,7 +36,7 @@
|
|||
|
||||
(custom-theme-set-faces
|
||||
'${custom-theme-name}
|
||||
'(default ((t (:family "${fixed-font-family}" :height 120))))
|
||||
'(default ((t (:family "${fixed-font-family}" :height ${font-height}))))
|
||||
'(fixed-pitch ((t (:family "${fixed-font-family}"))))
|
||||
'(fixed-pitch-serif ((t (:family "${fixed-font-family}"))))
|
||||
'(variable-pitch ((t (:family "${variable-font-family}")))))
|
||||
|
|
Reference in a new issue