From 9d67e091af367154d3346d845cdc8a44f42d29d5 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Wed, 14 Sep 2022 08:11:27 +0200 Subject: Port modus config to use-package Following the advice from (modus-themes) Sample configuration with and without use-package. --- .emacs | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.emacs b/.emacs index 64a2264..0841f43 100644 --- a/.emacs +++ b/.emacs @@ -26,25 +26,6 @@ ;; Examples: erc-modules, git-commit-setup-hook, package-archives. (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) - -;;; Theming. - -(when (>= emacs-major-version 28) - (setq modus-themes-bold-constructs t - modus-themes-deuteranopia t - modus-themes-diffs 'bg-only - modus-themes-headings '((1 . (variable-pitch 1.2)) - (2 . (variable-pitch 1.15)) - (3 . (variable-pitch 1.1)) - (4 . (variable-pitch 1.05)) - (t . (variable-pitch))) - modus-themes-italic-constructs t - modus-themes-mixed-fonts t - modus-themes-org-blocks 'gray-background - modus-themes-prompts '(background) - modus-themes-region '(bg-only) - modus-themes-variable-pitch-ui t) - (load-theme 'modus-vivendi)) ;;; Key bindings. @@ -657,6 +638,26 @@ (defalias 'my/setopt 'setopt) (defalias 'my/setopt 'customize-set-variable)) +(use-package emacs + :when (>= emacs-major-version 28) + :init + (setq modus-themes-bold-constructs t + modus-themes-deuteranopia t + modus-themes-diffs 'bg-only + modus-themes-headings '((1 . (variable-pitch 1.2)) + (2 . (variable-pitch 1.15)) + (3 . (variable-pitch 1.1)) + (4 . (variable-pitch 1.05)) + (t . (variable-pitch))) + modus-themes-italic-constructs t + modus-themes-mixed-fonts t + modus-themes-org-blocks 'gray-background + modus-themes-prompts '(background) + modus-themes-region '(bg-only) + modus-themes-variable-pitch-ui t) + :config + (load-theme 'modus-vivendi)) + (use-package ediff :custom (ediff-merge-split-window-function 'split-window-vertically) -- cgit v1.2.3