From fcd1c99d5973baa71794d09bde16d37c322ac86f Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Thu, 29 Oct 2026 02:03:06 +0800 Subject: Configure Emacs user interface Signed-off-by: Richard Qin --- lisp/ui/init-modeline.el | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 lisp/ui/init-modeline.el (limited to 'lisp/ui/init-modeline.el') 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 -- cgit v1.2.3