Appearance
This commit is contained in:
parent
20b49d74ea
commit
445e7db5e4
3 changed files with 61 additions and 62 deletions
|
|
@ -12,22 +12,8 @@
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
||||||
(set-face-attribute 'default nil :font "Iosevka Comfy" :height 140)
|
|
||||||
(set-face-attribute 'variable-pitch nil :font "Iosevka" :height 140)
|
|
||||||
(setq-default line-spacing 0.2)
|
|
||||||
|
|
||||||
(add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache/" user-emacs-directory))
|
(add-to-list 'native-comp-eln-load-path (expand-file-name "eln-cache/" user-emacs-directory))
|
||||||
|
|
||||||
(setq modus-themes-variable-pitch-headings t
|
|
||||||
modus-themes-org-blocks 'tinted-background
|
|
||||||
modus-themes-bold-constructs t
|
|
||||||
modus-themes-italic-constructs t
|
|
||||||
modus-themes-scale-headings t
|
|
||||||
modus-themes-completions 'opinionated
|
|
||||||
modus-themes-mode-line '(accented borderless))
|
|
||||||
|
|
||||||
(load-theme 'modus-vivendi)
|
|
||||||
|
|
||||||
(setq package-archives
|
(setq package-archives
|
||||||
'(("elpa" . "https://elpa.gnu.org/packages/")
|
'(("elpa" . "https://elpa.gnu.org/packages/")
|
||||||
("elpa-devel" . "https://elpa.gnu.org/devel/")
|
("elpa-devel" . "https://elpa.gnu.org/devel/")
|
||||||
|
|
@ -53,8 +39,10 @@
|
||||||
(when (memq window-system '(mac ns x))
|
(when (memq window-system '(mac ns x))
|
||||||
(exec-path-from-shell-initialize))
|
(exec-path-from-shell-initialize))
|
||||||
|
|
||||||
|
(require 'tobmacs-appearance)
|
||||||
(require 'tobmacs-completion)
|
(require 'tobmacs-completion)
|
||||||
(require 'tobmacs-editor)
|
(require 'tobmacs-editor)
|
||||||
(require 'tobmacs-languages)
|
(require 'tobmacs-languages)
|
||||||
(require 'tobmacs-org)
|
(require 'tobmacs-org)
|
||||||
(require 'tobmacs-vc)
|
(require 'tobmacs-vc)
|
||||||
|
|
||||||
|
|
|
||||||
59
.emacs.d/modules/tobmacs-appearance.el
Normal file
59
.emacs.d/modules/tobmacs-appearance.el
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
(use-package fontaine
|
||||||
|
:config
|
||||||
|
(setq fontaine-presets
|
||||||
|
'((tiny
|
||||||
|
:default-family "Iosevka Comfy Wide Fixed"
|
||||||
|
:default-height 70)
|
||||||
|
(small
|
||||||
|
:default-family "Iosevka Comfy Fixed"
|
||||||
|
:default-height 90)
|
||||||
|
(regular
|
||||||
|
:default-height 130)
|
||||||
|
(medium
|
||||||
|
:default-height 170)
|
||||||
|
(large
|
||||||
|
:default-weight semilight
|
||||||
|
:default-height 250
|
||||||
|
:bold-weight extrabold)
|
||||||
|
(presentation
|
||||||
|
:default-weight semilight
|
||||||
|
:default-height 250
|
||||||
|
:bold-weight extrabold)
|
||||||
|
(jumbo
|
||||||
|
:default-weight semilight
|
||||||
|
:default-height 300
|
||||||
|
:bold-weight extrabold)
|
||||||
|
(t
|
||||||
|
:default-family "Iosevka Comfy"
|
||||||
|
:default-weight regular
|
||||||
|
:default-height 130
|
||||||
|
:variable-pitch-family "Iosevka Comfy Duo"
|
||||||
|
:bold-weight bold
|
||||||
|
:italic-slant italic
|
||||||
|
:line-spacing 0.2)))
|
||||||
|
(fontaine-set-preset 'regular))
|
||||||
|
|
||||||
|
(use-package ef-themes
|
||||||
|
:config
|
||||||
|
(setq ef-themes-headings
|
||||||
|
'((0 . (variable-pitch light 2.0))
|
||||||
|
(1 . (variable-pitch light 1.5))
|
||||||
|
(2 . (variable-pitch semibold 1.2))
|
||||||
|
(t . (variable-pitch semibold 1.0))))
|
||||||
|
(setq ef-themes-mixed-fonts t
|
||||||
|
ef-themes-variable-pitch-ui t)
|
||||||
|
(mapc #'disable-theme custom-enabled-themes)
|
||||||
|
(load-theme 'ef-winter :no-confirm))
|
||||||
|
|
||||||
|
(use-package modus-themes
|
||||||
|
:config
|
||||||
|
(setq modus-themes-variable-pitch-headings t
|
||||||
|
modus-themes-org-blocks 'tinted-background
|
||||||
|
modus-themes-bold-constructs t
|
||||||
|
modus-themes-italic-constructs t
|
||||||
|
modus-themes-scale-headings t
|
||||||
|
modus-themes-completions 'opinionated
|
||||||
|
modus-themes-mode-line '(accented borderless)))
|
||||||
|
|
||||||
|
(provide 'tobmacs-appearance)
|
||||||
|
|
||||||
|
|
@ -1,48 +0,0 @@
|
||||||
inq(setq-default indent-tabs-mode nil)
|
|
||||||
|
|
||||||
(add-hook 'prog-mode-hook 'mac-auto-operator-composition-mode)
|
|
||||||
|
|
||||||
(use-package emacs
|
|
||||||
:config
|
|
||||||
(global-auto-revert-mode)
|
|
||||||
(minibuffer-electric-default-mode 1)
|
|
||||||
|
|
||||||
(setq isearch-allow-motion t
|
|
||||||
sentence-end-double-space nil
|
|
||||||
backup-directory-alist `((".*" . ,temporary-file-directory))
|
|
||||||
auto-save-file-name-transforms `((".*" ,temporary-file-directory t))
|
|
||||||
delete-by-moving-to-trash t
|
|
||||||
tab-bar-show nil
|
|
||||||
tab-bar-new-tab-choice "*scratch*"))
|
|
||||||
|
|
||||||
|
|
||||||
(use-package ef-themes)
|
|
||||||
|
|
||||||
(use-package parinfer-rust-mode
|
|
||||||
:hook (emacs-lisp-mode clojure-mode)
|
|
||||||
:init
|
|
||||||
(setq parinfer-rust-library (expand-file-name
|
|
||||||
"parinfer-rust/parinfer-rust-darwin.so"
|
|
||||||
user-emacs-directory)))
|
|
||||||
|
|
||||||
(use-package electric
|
|
||||||
:hook swift-mode)
|
|
||||||
|
|
||||||
(use-package rainbow-delimiters)
|
|
||||||
|
|
||||||
(use-package flycheck
|
|
||||||
:init
|
|
||||||
(global-flycheck-mode))
|
|
||||||
|
|
||||||
(use-package avy
|
|
||||||
:bind
|
|
||||||
("M-j" . 'avy-goto-char-timer))
|
|
||||||
|
|
||||||
(use-package dumb-jump
|
|
||||||
:config
|
|
||||||
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)
|
|
||||||
(setq xref-show-definitions-function #'xref-show-definitions-completing-read))
|
|
||||||
|
|
||||||
(provide 'tobmacs-editor)
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue