Changed fonts
This commit is contained in:
parent
10e698fa42
commit
9c10750e8d
2 changed files with 67 additions and 31 deletions
75
config.org
75
config.org
|
|
@ -540,8 +540,10 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
|
||||||
(dashboard-modify-heading-icons '((recents . "nf-oct-file_text")
|
(dashboard-modify-heading-icons '((recents . "nf-oct-file_text")
|
||||||
(bookmarks . "nf-oct-book")))
|
(bookmarks . "nf-oct-book")))
|
||||||
:config
|
:config
|
||||||
(dashboard-setup-startup-hook))
|
(dashboard-setup-startup-hook)
|
||||||
(setq dashboard-startup-banner '("~/.emacs.d/nixmacs.xpm" 'logo))
|
(let ((banner-file "~/.emacs.d/nixmacs.xpm"))
|
||||||
|
(when (file-exists-p (expand-file-name banner-file))
|
||||||
|
(setq dashboard-startup-banner ,banner-file))))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Diminish
|
* Diminish
|
||||||
This package implements hiding or abbreviation of the modeline displays (lighters) of minor-modes. With this package installed, you can add ‘:diminish’ to any use-package block to hide that particular mode in the modeline.
|
This package implements hiding or abbreviation of the modeline displays (lighters) of minor-modes. With this package installed, you can add ‘:diminish’ to any use-package block to hide that particular mode in the modeline.
|
||||||
|
|
@ -650,34 +652,53 @@ Doesn't work on Hyprland (22.05.2025)
|
||||||
* Fonts
|
* Fonts
|
||||||
Defining the various fonts that Emacs will use.
|
Defining the various fonts that Emacs will use.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
(set-face-attribute 'variable-pitch nil
|
||||||
|
:family "DejaVu Sans";;"ET Bembo"
|
||||||
|
:height 220
|
||||||
|
:weight 'normal)
|
||||||
|
(set-face-attribute 'default nil
|
||||||
|
:family "Iosevka"
|
||||||
|
:height 210
|
||||||
|
:weight 'medium)
|
||||||
|
|
||||||
(set-face-attribute 'default nil
|
(set-face-attribute 'fixed-pitch nil
|
||||||
:font "JetBrains Mono"
|
:family "Iosevka"
|
||||||
:height 110
|
:height 210
|
||||||
:weight 'medium)
|
:weight 'medium)
|
||||||
(set-face-attribute 'variable-pitch nil
|
|
||||||
:font "Ubuntu"
|
|
||||||
:height 120
|
|
||||||
:weight 'medium)
|
|
||||||
(set-face-attribute 'fixed-pitch nil
|
|
||||||
:font "JetBrains Mono"
|
|
||||||
:height 110
|
|
||||||
:weight 'medium)
|
|
||||||
;; Makes commented text and keywords italics.
|
|
||||||
;; This is working in emacsclient but not emacs.
|
|
||||||
;; Your font must have an italic face available.
|
|
||||||
(set-face-attribute 'font-lock-comment-face nil
|
|
||||||
:slant 'italic)
|
|
||||||
(set-face-attribute 'font-lock-keyword-face nil
|
|
||||||
:slant 'italic)
|
|
||||||
|
|
||||||
;; This sets the default font on all graphical frames created after restarting Emacs.
|
;; Makes commented text and keywords italics.
|
||||||
;; Does the same thing as 'set-face-attribute default' above, but emacsclient fonts
|
;; This is working in emacsclient but not emacs.
|
||||||
;; are not right unless I also add this method of setting the default font.
|
;; Your font must have an italic face available.
|
||||||
(add-to-list 'default-frame-alist '(font . "JetBrains Mono-20"))
|
(set-face-attribute 'font-lock-comment-face nil
|
||||||
|
:slant 'italic)
|
||||||
|
(set-face-attribute 'font-lock-keyword-face nil
|
||||||
|
:slant 'italic)
|
||||||
|
|
||||||
;; Uncomment the following line if line spacing needs adjusting.
|
;; This sets the default font on all graphical frames created after restarting Emacs.
|
||||||
(setq-default line-spacing 0.12)
|
;; Does the same thing as 'set-face-attribute default' above, but emacsclient fonts
|
||||||
|
;; are not right unless I also add this method of setting the default font.
|
||||||
|
;;(add-to-list 'default-frame-alist '(font . "Iosevka Mono-20"))
|
||||||
|
|
||||||
|
;; Uncomment the following line if line spacing needs adjusting.
|
||||||
|
(setq-default line-spacing 0.12)
|
||||||
|
|
||||||
|
|
||||||
|
(add-hook 'text-mode-hook #'variable-pitch-mode)
|
||||||
|
;; Enable variable-pitch-mode in Org
|
||||||
|
(add-hook 'org-mode-hook #'variable-pitch-mode)
|
||||||
|
|
||||||
|
;; Ensure code blocks, tables, and special elements remain fixed-pitch
|
||||||
|
(custom-set-faces
|
||||||
|
;; Keep code blocks, src, and tables fixed-pitch (Iosevka)
|
||||||
|
'(org-block ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-block-begin-line ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-block-end-line ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-table ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-code ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-verbatim ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-meta-line ((t (:inherit fixed-pitch))))
|
||||||
|
'(org-checkbox ((t (:inherit fixed-pitch))))
|
||||||
|
)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Sane defaults
|
* Sane defaults
|
||||||
|
|
|
||||||
23
package.nix
23
package.nix
|
|
@ -4,10 +4,24 @@
|
||||||
native ? false,
|
native ? false,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
|
et-bembo = pkgs.stdenv.mkDerivation rec {
|
||||||
|
name = "Bembo Font";
|
||||||
|
pname = name;
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "DavidBarts";
|
||||||
|
repo = "ET_Bembo";
|
||||||
|
rev = "b1824ac5bee3f54ef1ce88c9d6c7850f6c869818";
|
||||||
|
hash = "sha256-9G0Umcu5dkwx+mh0k5vPS3nIBdStlR0wBkDVzahVBwg=";
|
||||||
|
};
|
||||||
|
buildPhase = ''
|
||||||
|
mkdir -p $out/share/fonts/truetype
|
||||||
|
cp $src/* $out/share/fonts/truetype
|
||||||
|
'';
|
||||||
|
};
|
||||||
preTangledFile = pkgs.writeText "config.org" ''
|
preTangledFile = pkgs.writeText "config.org" ''
|
||||||
${builtins.readFile ./config.org}
|
${builtins.readFile ./config.org}
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq dashboard-startup-banner '("${./nixmacs.xpm}" 'logo))
|
(setq dashboard-startup-banner "${./nixmacs.xpm}")
|
||||||
|
|
||||||
;;https://github.com/wbolster/emacs-direnv/issues/85
|
;;https://github.com/wbolster/emacs-direnv/issues/85
|
||||||
(setenv "PATH" (mapconcat 'identity exec-path ":")) ;;fixes direnv losing nix pkgs
|
(setenv "PATH" (mapconcat 'identity exec-path ":")) ;;fixes direnv losing nix pkgs
|
||||||
|
|
@ -110,9 +124,10 @@
|
||||||
};
|
};
|
||||||
fontConfig = pkgs.makeFontsConf {
|
fontConfig = pkgs.makeFontsConf {
|
||||||
fontDirectories = with pkgs; [
|
fontDirectories = with pkgs; [
|
||||||
nerd-fonts.jetbrains-mono
|
nerd-fonts.iosevka
|
||||||
jetbrains-mono
|
et-bembo
|
||||||
ubuntu-classic
|
dejavu_fonts
|
||||||
|
iosevka
|
||||||
nerd-fonts.symbols-only
|
nerd-fonts.symbols-only
|
||||||
hack-font
|
hack-font
|
||||||
noto-fonts-emoji
|
noto-fonts-emoji
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue