Add window-divider-mode

This commit is contained in:
James Cherti
2025-02-09 08:11:40 -05:00
parent 469e6533e0
commit a432bbba52

26
init.el
View File

@@ -132,17 +132,8 @@
(setq split-width-threshold 170 (setq split-width-threshold 170
split-height-threshold nil) split-height-threshold nil)
;; The native border "uses" a pixel of the fringe on the rightmost
;; splits, whereas `window-divider` does not.
(setq window-divider-default-bottom-width 1
window-divider-default-places t
window-divider-default-right-width 1)
;;; Buffers ;;; Buffers
;; switch-to-buffer runs pop-to-buffer-same-window instead
(setq switch-to-buffer-obey-display-actions t)
(setq uniquify-buffer-name-style 'forward) (setq uniquify-buffer-name-style 'forward)
(setq comint-prompt-read-only t) (setq comint-prompt-read-only t)
@@ -212,6 +203,7 @@
(setq recentf-max-saved-items 300) ; default is 20 (setq recentf-max-saved-items 300) ; default is 20
(setq recentf-max-menu-items 15) (setq recentf-max-menu-items 15)
(setq recentf-auto-cleanup (if (daemonp) 300 'never)) (setq recentf-auto-cleanup (if (daemonp) 300 'never))
(defun minimal-emacs--cleanup-hook () (defun minimal-emacs--cleanup-hook ()
"Run `recentf-cleanup' if `recentf' is loaded and `recentf-mode' is enabled." "Run `recentf-cleanup' if `recentf' is loaded and `recentf-mode' is enabled."
(when (and (featurep 'recentf) (when (and (featurep 'recentf)
@@ -233,10 +225,10 @@
;;; savehist ;;; savehist
;; `savehist' is an Emacs feature that preserves the minibuffer history between ;; `savehist-mode' is an Emacs feature that preserves the minibuffer history
;; sessions. It saves the history of inputs in the minibuffer, such as commands, ;; between sessions. It saves the history of inputs in the minibuffer, such as
;; search strings, and other prompts, to a file. This allows users to retain ;; commands, search strings, and other prompts, to a file. This allows users to
;; their minibuffer history across Emacs restarts. ;; retain their minibuffer history across Emacs restarts.
(setq history-length 300) (setq history-length 300)
(setq savehist-save-minibuffer-history t) ;; Default (setq savehist-save-minibuffer-history t) ;; Default
@@ -252,6 +244,14 @@
(setq resize-mini-windows 'grow-only) (setq resize-mini-windows 'grow-only)
;; The native border "uses" a pixel of the fringe on the rightmost
;; splits, whereas `window-divider-mode' does not.
(setq window-divider-default-bottom-width 1
window-divider-default-places t
window-divider-default-right-width 1)
(add-hook 'after-init-hook #'window-divider-mode)
;;; Scrolling ;;; Scrolling
;; Enables faster scrolling through unfontified regions. This may result in ;; Enables faster scrolling through unfontified regions. This may result in