aboutsummaryrefslogtreecommitdiff
path: root/lisp/ui/init-modeline.el
blob: f78f0f584c5decb7a3ee376454ecfd7bb7a664b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
;;; init-modeline.el --- Mode line configuration -*- lexical-binding: t; -*-

;; Copyright (C) 2026 Richard Qin
;; SPDX-License-Identifier: GPL-3.0-or-later

;; Author: Richard Qin
;; This file is not part of GNU Emacs.

;;; Commentary:

;; Configure the Emacs mode line using doom-modeline.
;; Display buffer, file, project, and editing information.

;;; Code:

;; ------------------------------------------------------------
;; Doom Modeline
;; ------------------------------------------------------------

(use-package doom-modeline
  :ensure t
  :demand t

  :custom
  ;; Mode line height in graphical Emacs.
  (doom-modeline-height 28)

  ;; Disable icons until Nerd Fonts are configured.
  (doom-modeline-icon nil)

  ;; Display file encoding information.
  (doom-modeline-buffer-encoding t)

  ;; Display project information.
  (doom-modeline-project-name t)

  ;; Display buffer modification status.
  (doom-modeline-highlight-modified-buffer-name t)

  :config
  (doom-modeline-mode 1))


(provide 'init-modeline)

;;; init-modeline.el ends here