aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules/bard-emacs-ui.el
diff options
context:
space:
mode:
authorbard <[email protected]>2024-03-19 07:28:22 -0400
committerbard <[email protected]>2024-03-19 07:28:22 -0400
commitb14c5d0bb8ef91d51d525437d7dc7571a0f7cac0 (patch)
tree7cc33f7d59357e9f88ae720632388f7e389ca1d2 /bard-emacs-modules/bard-emacs-ui.el
parentcd7b761aedefc317173b7e5b500aa1bbef26589f (diff)
moved font and theme settings
Diffstat (limited to 'bard-emacs-modules/bard-emacs-ui.el')
-rw-r--r--bard-emacs-modules/bard-emacs-ui.el55
1 files changed, 0 insertions, 55 deletions
diff --git a/bard-emacs-modules/bard-emacs-ui.el b/bard-emacs-modules/bard-emacs-ui.el
index de86254..1e992c8 100644
--- a/bard-emacs-modules/bard-emacs-ui.el
+++ b/bard-emacs-modules/bard-emacs-ui.el
@@ -59,61 +59,6 @@
(setq whitespace-style '(face tabs spaces trailing space-before-tab newline indentation empty space-after-tab space-mark tab-mark))
-;; Fonts
-
-;; Removed in favour of fontaine package
-;; (set-face-attribute 'default nil :font "Iosevka Comfy" :height 140)
-;; (set-face-attribute 'fixed-pitch nil :font "Iosevka Comfy" :height 140)
-;; (set-face-attribute 'variable-pitch nil :font "Iosevka Comfy Motion" :height 140)
-
-;; (add-to-list 'default-frame-alist '(font . "Iosevka Comfy-14.5"))
-(setq fontaine-presets
- '((regular
- :default-height 140
- :default-family "Iosevka Comfy"
- :variable-pitch-family "Iosevka Comfy Motion"
- :variable-pitch-height 1.0
- :fixed-pitch-family "Iosevka Comfy"
- :fixed-pitch-height 1.0
- :bold-weight bold
- )
- (large
- :inherit regular
- :default-height 170
- )
- (small
- :inherit regular
- :default-height 130)
- (t
- :default-family "Monospace"
- )))
-
-;; save file
-(setq fontaine-latest-state-file
- (locate-user-emacs-file "fontaine-latest-state.eld"))
-
-;; Set last preset or fall back to desired style from `fontaine-presets'.
-(fontaine-set-preset (or (fontaine-restore-latest-preset) 'small))
-
-;; The other side of `fontaine-restore-latest-preset'.
-(add-hook 'kill-emacs-hook #'fontaine-store-latest-preset)
-
-;; Mixed pitch on modus and ef themes
-(setq modus-themes-mixed-fonts t)
-(setq ef-themes-mixed-fonts t)
-;; preserve fonts when switching themes
-(dolist (hook '(modus-themes-after-load-theme-hook ef-themes-post-load-hook))
- (add-hook hook #'fontaine-apply-current-preset))
-
-(define-key global-map (kbd "C-c f") #'fontaine-set-preset)
-
-;; Switching themes
-(defun bard/disable-all-themes ()
- "disable all active themes."
- (interactive)
- (dolist (i custom-enabled-themes)
- (disable-theme i)))
-
(provide 'bard-emacs-ui)
;;; bard-emacs-ui.el ends here