From 3ff9a1915179b6c494b999edabde63dbbf48906e Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Sun, 1 Jun 2025 15:08:51 -0400 Subject: [PATCH] Update README.md --- README.md | 4 +++- init.el | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 6051fb8..23c59b3 100644 --- a/README.md +++ b/README.md @@ -1120,7 +1120,9 @@ fc-list : family | sed 's/,/\n/g' | sort -u (setq mode-line-position-column-line-format '("%l:%C")) ;; Display of line numbers in the buffer: -;; (display-line-numbers-mode 1) +(setq-default display-line-numbers-type 'relative) +(dolist (hook '(prog-mode-hook text-mode-hook conf-mode-hook)) + (add-hook hook #'display-line-numbers-mode)) (use-package which-key :ensure nil ; builtin diff --git a/init.el b/init.el index 9aa23b7..24bd740 100644 --- a/init.el +++ b/init.el @@ -43,6 +43,12 @@ ;; Disable warnings from the legacy advice API. They aren't useful. (setq ad-redefinition-action 'accept) +;;; Undo/redo + +(setq undo-limit (* 13 160000) + undo-strong-limit (* 13 240000) + undo-outer-limit (* 13 24000000)) + ;;; package.el (when (bound-and-true-p minimal-emacs-package-initialize-and-refresh) @@ -57,12 +63,6 @@ ;; Ensure use-package is available (require 'use-package)) -;;; Undo/redo - -(setq undo-limit (* 13 160000) - undo-strong-limit (* 13 240000) - undo-outer-limit (* 13 24000000)) - ;;; Minibuffer ;; Allow nested minibuffers @@ -462,8 +462,8 @@ (setq flyspell-issue-welcome-flag nil) -;; Greatly improves flyspell performance by preventing messages from being -;; displayed for each word when checking the entire buffer. +;; Improves flyspell performance by preventing messages from being displayed for +;; each word when checking the entire buffer. (setq flyspell-issue-message-flag nil) ;;; ispell