;;; 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-package ef-themes :ensure t :init (add-hook 'ef-themes-post-load-hook #'my-ef-themes-mode-line) :preface (defun my-ef-themes-mode-line () "Tweak the style of the mode lines." (ef-themes-with-colors (custom-set-faces `(mode-line ((,c :background ,bg-active :foreground ,fg-main :box (:line-width 1 :color ,fg-dim)))) `(mode-line-inactive ((,c :box (:line-width 1 :color ,bg-active))))))) :custom (ef-themes-region '(intense no-extend neutral)) (ef-themes-disable-other-themes t) (ef-themes-to-toggle '(ef-melissa-light ef-owl)) :init (ef-themes-select 'ef-owl)) ;; | 数字 | アルファベット | 日本語 | 絵文字 | ;; | 0123 | abcdefghijklmn | あいう | 🍎🍎🍎 | (set-face-attribute 'default nil :family "Source Code Pro" :height 150) (set-fontset-font t 'japanese-jisx0208 '("Osaka")) (set-fontset-font t 'symbol '("Apple Color Emoji")) (setq face-font-rescale-alist '(("Osaka" . 1.2) ("Apple Color Emoji" . 0.8))) (provide 'init-ui) ;;; init-ui.el ends here