diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-19 19:42:52 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-19 19:42:52 -0700 |
commit | f2d3bf702965028fb3c325fd812a425d0efcf33d (patch) | |
tree | 0c0f6d25e5f4916eee995313c26c0a1547a2b4c8 /emacs | |
parent | start to install packages without use-package (diff) | |
download | emacs.d-f2d3bf702965028fb3c325fd812a425d0efcf33d.tar.gz |
UI: remove completely `use-package'
The modus themes are part of emacs now.
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/my-ui.el | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/emacs/custom/my-ui.el b/emacs/custom/my-ui.el index 35bcc6b..698cc54 100644 --- a/emacs/custom/my-ui.el +++ b/emacs/custom/my-ui.el @@ -4,9 +4,6 @@ ;;; Code: -(eval-and-compile - (require 'use-package)) - ;; cleaning up the UI (scroll-bar-mode -1) (tool-bar-mode -1) @@ -33,26 +30,20 @@ ;; rendered correctly 😇 😀 and 🤢 (set-fontset-font t 'symbol "Noto Color Emoji" nil 'append)) -(use-package modus-themes - :ensure t - :init - ;; Load the theme files before enabling a theme (else you get an error). - (modus-themes-load-themes) - :config - (modus-themes-load-operandi) - :custom - (modus-themes-syntax '(yellow-comments)) - (modus-themes-links '(bold)) - (modus-themes-markup '(bold intense background)) - (modus-themes-org-blocks 'gray-background) - (modus-themes-headings - '((1 . (background 1)) - (2 . (rainbow semibold 1)) - (t . (bold)))) - (modus-themes-completions - '((matches . (extrabold intense)) - (selection . (semibold intense)) - (popup . (extrabold intense))))) +;; Load a custom theme +(eval-and-compile + (require 'modus-themes nil t) + (setq modus-themes-syntax '(yellow-comments) + modus-themes-links '(bold) + modus-themes-markup '(bold intense background) + modus-themes-org-blocks 'gray-background + modus-themes-headings '((1 . (background 1)) + (2 . (rainbow semibold 1)) + (t . (bold))) + modus-themes-completions '((matches . (extrabold intense)) + (selection . (semibold intense)) + (popup . (extrabold intense)))) + (load-theme 'modus-operandi t)) (require 'time) (setq display-time-24hr-format t) @@ -76,6 +67,8 @@ (setq world-clock-list t)) (when (boundp 'world-clock-time-format) + ;; UTC => 02:42 +0000 Wednesday 20 April + ;; Berkeley => 19:42 -0700 Tuesday 19 April (setq world-clock-time-format "%R %z %A %d %B")) (when (boundp 'world-clock-timer-enable) |