blob: aac576e5fd57c0cb7d5949f4e48fcbd32a853280 (
plain) (
tree)
|
|
;;; init-ui.el --- User interface config. -*- lexical-binding: t -*-
;;; Commentary:
;; User interface settings.
;;; Code:
(require 'time)
;; Don't say anything on mode-line mouseover.
(setq mode-line-default-help-echo nil)
;; Keep cursors and highlights in current window only.
(setq cursor-in-non-selected-windows nil)
;; Don't highlight inactive windows.
(setq highlight-nonselected-windows nil)
(use-package fringe
:demand t
:config
;; no fringe on the right side
(fringe-mode '(8 . 0)))
;; Disable bidirectional text support for slight performance bonus.
(setq bidi-display-reordering nil)
;; show column number in the mode line
(setq column-number-mode t)
(setq display-time-24hr-format t
display-time-interval 60
display-time-mode t
display-time-format "%H:%M %d.%m"
display-time-day-and-date t
display-time-default-load-average nil)
(setq world-clock-list t
world-clock-timer-enable t
world-clock-timer-second 60
world-clock-time-format "%R %z %A %d %B")
;; UTC => 02:42 +0000 Wednesday 20 April
;; Berkeley => 19:42 -0700 Tuesday 19 April
(setq zoneinfo-style-world-list '(("UTC" "UTC")
("America/Los_Angeles" "Berkeley")
("America/Denver" "Mountain Time")
("America/Chicago" "Central Time")
("America/New_York" "New York")
("Europe/London" "London")
("Europe/Paris" "Paris")))
;; use various monaspace fonts
;; https://monaspace.githubnext.com
(set-face-attribute 'default nil
:font "Monaspace Argon"
:height 160)
(set-face-attribute 'fixed-pitch nil
:font "Monaspace Argon"
:height 160)
(set-face-attribute 'variable-pitch nil
:font "Monaspace Radon"
:height 160)
(use-package ef-themes
:ensure t
:custom
(ef-themes-region '(intense no-extend neutral))
(ef-themes-variable-pitch-ui t)
(ef-themes-mixed-fonts t)
(ef-themes-disable-other-themes t)
:config
(ef-themes-select 'ef-light)
(setq ef-themes-to-toggle '(ef-cyprus ef-deuteranopia-light))
(setq ef-themes-headings ; read the manual's entry or the doc string
'((0 . (variable-pitch light 1.3))
(1 . (variable-pitch light 1.2))
(2 . (variable-pitch regular 1.1))
(t . (variable-pitch 1.0)))))
(provide 'init-ui)
;;; init-ui.el ends here
|