summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2022-09-14 08:11:27 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2022-11-20 18:29:33 +0100
commit9d67e091af367154d3346d845cdc8a44f42d29d5 (patch)
tree5421dd2559c152bb796753e4451f4f0c23f73231
parent32d1bb352c6f6be3b503de7fa62a58abff3b7dbc (diff)
downloaddotfiles-9d67e091af367154d3346d845cdc8a44f42d29d5.tar.xz
Port modus config to use-package
Following the advice from (modus-themes) Sample configuration with and without use-package.
-rw-r--r--.emacs39
1 files changed, 20 insertions, 19 deletions
diff --git a/.emacs b/.emacs
index 64a2264..0841f43 100644
--- a/.emacs
+++ b/.emacs
@@ -27,25 +27,6 @@
(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.
;; C-h is a special snowflake in many situations; this is the most
@@ -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)