;;; init-theme.el --- -*- lexical-binding: t -*- ;; ;; Filename: init-theme.el ;; Description: Initialize Doom Themes and Modeline ;; Author: Mingde (Matthew) Zeng ;; Copyright (C) 2019 Mingde (Matthew) Zeng ;; Created: Thu Mar 14 17:11:56 2019 (-0400) ;; Version: 2.0.0 ;; Last-Updated: Tue Jan 7 10:15:29 2020 (+0100) ;; By: Mikaƫl Capelle ;; URL: https://github.com/MatthewZMD/.emacs.d ;; Keywords: M-EMACS .emacs.d doom-themes doom-modeline ;; Compatibility: emacs-version >= 26.1 ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Commentary: ;; ;; This initializes doom-themes and doom-modeline ;; This is NOT Doom, but doom-themes and doom-modeine ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or (at ;; your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, but ;; WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with GNU Emacs. If not, see . ;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;;; Code: (eval-when-compile (require 'init-const)) ;; DoomThemes (use-package doom-themes :custom-face (cursor ((t (:background "BlanchedAlmond")))) :config (setq doom-themes-treemacs-enable-variable-pitch nil) (setq doom-themes-treemacs-theme "doom-colors") (doom-themes-treemacs-config) (with-eval-after-load 'treemacs (remove-hook 'treemacs-mode-hook #'doom-themes-hide-modeline)) ;; flashing mode-line on errors (doom-themes-visual-bell-config) ;; Corrects (and improves) org-mode's native fontification. (doom-themes-org-config) (load-theme 'doom-one t)) ;; -DoomThemes ;; DoomModeline (use-package doom-modeline :hook (after-init . doom-modeline-mode) :custom ;; Don't compact font caches during GC. Windows Laggy Issue (inhibit-compacting-font-caches t) (doom-modeline-minor-modes t) (doom-modeline-icon t) (doom-modeline-major-mode-color-icon t) (doom-modeline-height 15)) ;; -DoomModeline (use-package hide-mode-line :hook (((completion-list-mode completion-in-region-mode) . hide-mode-line-mode))) (provide 'init-theme) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; init-theme.el ends here