;;; OS-specific settings
(pcase system-type
- ('darwin (setq default-frame-alist '((fullscreen . fullboth)))))
+ ('darwin
+ (setq default-frame-alist '((fullscreen . fullboth)))
+ (set-fontset-font t '(? . ?) "SF Pro Display")))
;;; Check for external programs
(with-eval-after-load 'elpaca-info
(set-face-attribute 'elpaca-info-package nil
- :height 'unspecified
+ :height nil
:inherit 'info-title-1)
(set-face-attribute 'elpaca-info-section nil
- :weight 'unspecified
+ :weight nil
:inherit 'bold))
;;; Install packages
-(elpaca (ef-themes
- :pre-build (("emacs" "--batch" "-l" "ox-texinfo" "README.org"
- "--eval" "(setq org-babel-confirm-evaluate-answer-no t)"
- "-f" "org-texinfo-export-to-texinfo"))))
(elpaca avy)
(elpaca (bbdb
:repo "https://git.savannah.nongnu.org/git/bbdb.git"
save-interprogram-paste-before-kill 2048
;; have C-u followed by repeated C-SPC keep popping
set-mark-command-repeat-pop t
- ;; fine-tune some theme settings
- ef-themes-mixed-fonts t
- ef-themes-variable-pitch-ui nil
- ef-themes-region nil
osm-copyright nil
;; follow links to version-controlled files without confirming
vc-follow-symlinks t
(setq-default indent-tabs-mode nil)
-;;; Load and enable a custom theme
-
-(require 'ef-themes)
-
-(defvar esy/ef-themes-ring (make-ring 16))
-
-(defun esy/ef-themes-load-previous ()
- (interactive)
- (when (< 0 (ring-length esy/ef-themes-ring))
- (let ((theme (ring-remove esy/ef-themes-ring 0)))
- (message "Loaded `%s'" theme)
- (ef-themes--load-theme theme))))
-
-(defun esy/ef-themes-load-random ()
- (interactive)
- (let* ((theme (ef-themes--current-theme))
- (themes (seq-filter
- (lambda (other-theme)
- (not (equal other-theme theme)))
- '(
- ef-autumn
- ef-bio
- ef-cherie
- ef-cyprus
- ef-dark
- ef-day
- ef-duo-dark
- ef-duo-light
- ef-elea-dark
- ef-elea-light
- ef-frost
- ef-kassio
- ef-light
- ef-maris-dark
- ef-maris-light
- ef-night
- ef-spring
- ef-summer
- ef-symbiosis
- ef-trio-dark
- ef-trio-light
- ef-winter
- )))
- (n (random (length themes)))
- (pick (nth n themes))
- (loaded (if (null pick) (car themes) pick)))
- (ring-insert esy/ef-themes-ring theme)
- (ef-themes--load-theme loaded)
- (message "Loaded `%s'" loaded)))
-
-(esy/ef-themes-load-random)
-
;;; Set up the Iosevka font family
(when (eq system-type 'darwin)
- (set-face-attribute 'default nil :height 130))
-(set-face-attribute 'default nil :family "Iosevka")
-(set-face-attribute 'fixed-pitch nil :family "Iosevka")
-(set-face-attribute 'variable-pitch nil :family "Iosevka Etoile")
+ (set-face-attribute 'default nil :height 130))
+(set-face-attribute 'default nil :family "Iosevka")
+(set-face-attribute 'fixed-pitch nil :family "Iosevka")
+(set-face-attribute 'variable-pitch nil :family "Iosevka Etoile")
+(set-face-attribute 'mode-line nil
+ :box nil
+ :background "pink")
+(set-face-attribute 'mode-line-inactive nil :box nil)
+(set-face-attribute 'fringe nil :background nil)
+(set-face-attribute 'line-number-current-line nil
+ :background "yellow"
+ :inherit nil)
+(set-face-attribute 'fill-column-indicator
+ nil :background nil
+ :foreground "orange"
+ :weight 'light)
+(set-face-attribute 'vertical-border nil
+ :foreground "grey")
+(set-face-attribute 'minibuffer-prompt nil
+ :weight 'bold :slant 'italic
+ :foreground "red")
+(set-face-attribute 'cursor nil
+ :background "salmon")
;;; Add custom code directory to `load-path'
(autoload 'esy-publish-local-server "esy-publish" nil t)
(autoload 'esy-publish-create-post "esy-publish" nil t)
-(with-eval-after-load 'gnus
- (require 'esy-comm))
+(require 'esy-comm)
(add-to-list 'savehist-additional-variables
'esy-o365-token-refresh-last-time)
(keymap-global-set "C-s-f" #'toggle-frame-fullscreen)
(keymap-global-set "C-s-l" #'esy/pulse-line)
(keymap-global-set "M-\"" #'insert-pair)
-(keymap-global-set "<f5>" #'esy/ef-themes-load-random)
-(keymap-global-set "s-]" #'esy/ef-themes-load-random)
-(keymap-global-set "s-[" #'esy/ef-themes-load-previous)
(keymap-set ctl-x-map "b" #'consult-buffer)
(keymap-set ctl-x-4-map "b" #'consult-buffer-other-window)
savehist-mode
show-paren-mode
transient-mark-mode
+ winner-mode
))
(funcall mode))
(setq
;; don't use bold face for unread Elfeed entries
- elfeed-search-face-alist '((unread (default)))
+ elfeed-search-face-alist '((unread default))
;; read feeds list from a separate file
elfeed-feeds (esy/feeds)))
+(with-eval-after-load 'elfeed-search
+ (set-face-attribute 'elfeed-search-title-face nil
+ :foreground "grey50"
+ :inherit nil))
+
;;; Disable some minor-mode mode-line lighters
(dolist (mm '((whitespace-cleanup-mode . whitespace-cleanup-mode)
" "
'display-time-string
'battery-mode-line-string
- (capitalize (substring (symbol-name (car custom-enabled-themes)) 3))
" ")))
"%5l"
(4 "|%c")
(setq-default mode-line-format esy/mode-line-format)
(force-mode-line-update t)))
+
(provide 'init)
;;; init.el ends here