aboutsummaryrefslogtreecommitdiff
path: root/lisp/ui/init-modeline.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ui/init-modeline.el')
-rw-r--r--lisp/ui/init-modeline.el46
1 files changed, 46 insertions, 0 deletions
diff --git a/lisp/ui/init-modeline.el b/lisp/ui/init-modeline.el
new file mode 100644
index 0000000..f78f0f5
--- /dev/null
+++ b/lisp/ui/init-modeline.el
@@ -0,0 +1,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