From 80efc418b968346414e9d9e4712040964e41e885 Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Mon, 3 Feb 2025 09:56:21 -0500 Subject: [PATCH] Add a buffer section --- init.el | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/init.el b/init.el index 911a19e..b698e9e 100644 --- a/init.el +++ b/init.el @@ -78,9 +78,6 @@ ;;; Misc -;; switch-to-buffer runs pop-to-buffer-same-window instead -(setq switch-to-buffer-obey-display-actions t) - (setq show-paren-delay 0.1 show-paren-highlight-openparen t show-paren-when-point-inside-paren t @@ -98,9 +95,6 @@ (setq-default display-line-numbers-width 3) (setq-default display-line-numbers-widen t) -(setq comint-prompt-read-only t) -(setq comint-buffer-maximum-size 2048) - (setq compilation-always-kill t compilation-ask-about-save nil compilation-scroll-output 'first-error) @@ -137,11 +131,6 @@ (setq find-file-visit-truename t vc-follow-symlinks t) -;; Skip confirmation prompts when creating a new file or buffer -(setq confirm-nonexistent-file-or-buffer nil) - -(setq uniquify-buffer-name-style 'forward) - (setq mouse-yank-at-point t) ;; Prefer vertical splits over horizontal ones @@ -154,6 +143,19 @@ window-divider-default-places t window-divider-default-right-width 1) +;;; 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 comint-prompt-read-only t) +(setq comint-buffer-maximum-size 2048) + +;; Skip confirmation prompts when creating a new file or buffer +(setq confirm-nonexistent-file-or-buffer nil) + ;;; Backup files ;; Avoid generating backups or lockfiles to prevent creating world-readable @@ -286,11 +288,11 @@ (setq hscroll-margin 2 hscroll-step 1) +;;; Mouse + (setq mouse-wheel-scroll-amount '(2 ((shift) . hscroll)) mouse-wheel-scroll-amount-horizontal 2) -;;; Mouse Scroll - ;; Emacs 29 (when (memq 'context-menu minimal-emacs-ui-features) (when (and (display-graphic-p) (fboundp 'context-menu-mode))