aboutsummaryrefslogtreecommitdiff
path: root/lisp/ui/init-modeline.el
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-29 02:03:06 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-29 02:03:06 +0800
commitfcd1c99d5973baa71794d09bde16d37c322ac86f (patch)
treeccd0e8821e79a32e528117a7354ceb265122acc7 /lisp/ui/init-modeline.el
parentd2b8f0cdf59e00e1e6d239fd08b2d3ae4d9a4455 (diff)
downloademacs.d-master.tar.gz
emacs.d-master.tar.xz
Configure Emacs user interfaceHEADmaster
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
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