Files
.emacs.d/lisp/init-terminal-ui.el
andsy10 f55f775139 feat: Add multiple keyboard bindings and UI improvements
- Add `my-denote-open-metanote` function and keybinding
- Add `discomfort` and `xdg-launcher-run-app` bindings for Linux
- Add `mc/add-cursor-on-click` binding
- Add `guix` package
- Fix pixel-scroll-precision
- Add terminal UI theme improvements for xref and match faces
- Rename functions to `my-` prefix for consistency
- Reorganize org agenda priority grouping
- Switch EMMS default player to VLC
2026-06-17 09:23:37 +08:00

84 lines
3.6 KiB
EmacsLisp

;;; init-terminal-ui.el --- ui and other style customization cofig -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;; 显示文件大小
(size-indication-mode t)
;; 显示行号列号
(column-number-mode t)
;; 高亮
(global-hl-line-mode t)
;; 主题
(if (>= (display-color-cells) 16777216)
(progn
(defvar base03 "#062624")
(defvar base02 "#0c2b29")
(defvar base01 "#4d6967")
(defvar base00 "#728e8c")
(defvar base1 "#7f9b99")
(defvar cyan "#01928d")
(defvar blue "#2570cd")
(defvar green "#3a9c36")
(defvar magenta "#d33682")
(defvar yellow "#a87c04")
(defvar orange "#c24713")
(defvar red "#ce2825")
(custom-set-faces
`(default ((t (:foreground ,base00 :background ,base03))))
`(cursor ((t (:inverse t))))
`(region ((t (:exdend t :foreground ,base03 :background ,base00))))
`(shadow ((t (:foreground ,base01))))
`(error ((t (:foreground ,orange))))
`(warning ((t (:foreground ,yellow))))
`(font-lock-builtin-face ((t (:foreground ,base00 :weight bold :slant normal))))
`(font-lock-comment-face ((t (:foreground ,base01))))
`(font-lock-keyword-face ((t (:foreground ,cyan :weight bold))))
`(font-lock-variable-name-face ((t (:foreground ,blue))))
`(font-lock-constant-face ((t (:foreground ,blue :weight bold))))
`(font-lock-string-face ((t (:foreground ,green))))
`(font-lock-type-face ((t (:foreground ,yellow))))
`(font-lock-function-name-face ((t (:foreground ,blue))))
`(hl-line ((t (:background ,base02 :extend t))))
`(show-paren-match ((t (:foreground ,magenta :weight bold))))
`(show-paren-mismatch ((t (:foreground ,base03 :background ,red))))
`(icomplete-first-match ((t (:foreground ,yellow :weight bold))))
`(completions-common-part ((t (:foreground ,blue))))
`(minibuffer-prompt ((t (:foreground ,base01 :weight bold))))
`(line-number ((t (:foreground ,base01 :weight extra-light))))
`(button ((t (:foreground ,base00 :underline t))))
`(mode-line ((t (:background ,base00 :foreground ,base03))))
`(mode-line-inactive ((t (:background ,base02 :foreground ,base00))))
`(dired-header ((t (:foreground ,green))))
`(dired-directory ((t (:foreground ,blue))))
`(dired-ignored ((t (:foreground ,base01))))
`(isearch ((t (:background ,magenta :foreground ,base03))))
`(lazy-highlight ((t (:background ,yellow :foreground ,base03))))
`(isearch-fail ((t (:foreground ,red))))
`(org-block ((t (:inhert default))))
`(org-document-title ((t (:inhert default :weight bold))))
`(org-document-info ((t (:inhert org-document-title))))
`(eshell-prompt ((t (:foreground ,yellow :weight bold))))
`(diff-header ((t (:foreground ,base00 :background ,base02))))
`(diff-file-header ((t (:inherit: diff-header :weight bold))))
`(diff-hunk-header ((t (:foreground "#c1a059" :background "#253224"))))
`(diff-added ((t (:foreground "#73b971" :background "#103628"))))
`(diff-refine-added ((t (:foreground "#8cc78d" :background "#1d522e"))))
`(diff-removed ((t (:foreground "#e17360" :background "#2d2c25"))))
`(diff-refine-removed ((t (:foreground "#e7917f" :background "#5c3225"))))
`(xref-file-header ((t (:foreground ,base01))))
`(xref-line-number ((t (:foreground ,green))))
`(match ((t (:foreground ,base1 :background ,base02 :weight bold))))))
(progn
(global-hl-line-mode nil)))
(provide 'init-terminal-ui)
;;; init-terminal-ui.el ends here