summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-08-12 18:52:12 -0500
committerCraig Jennings <c@cjennings.net>2025-08-12 18:52:12 -0500
commit1946bb85d352ddf36b1c2a4fc6f19e0f06eb812d (patch)
tree123ced81a308ef1aff408744f4613542a3aa1484 /modules
parent456087e3f0f6c7f646da08cb66fec9b63b27a09d (diff)
downloaddotemacs-1946bb85d352ddf36b1c2a4fc6f19e0f06eb812d.tar.gz
dotemacs-1946bb85d352ddf36b1c2a4fc6f19e0f06eb812d.zip
move disable mouse to system-defaults and reformat for readability
Diffstat (limited to 'modules')
-rw-r--r--modules/system-defaults.el45
-rw-r--r--modules/system-utils.el6
2 files changed, 25 insertions, 26 deletions
diff --git a/modules/system-defaults.el b/modules/system-defaults.el
index 99c21b55..cf0d1041 100644
--- a/modules/system-defaults.el
+++ b/modules/system-defaults.el
@@ -36,39 +36,39 @@
;; CUSTOMIZATIONS
;; All customizations should be declared in Emacs init files.
-;; any customizations go into a temp file that's never read.
+;; Add accidental customizations via the customization interface to a temp file that's never read.
(setq custom-file (make-temp-file
"emacs-customizations-trashbin"))
;; ------------------------- Re-Enabling Functionality -------------------------
-(put 'narrow-to-region 'disabled nil) ;; narrow-to-region is extremely useful!
-(put 'upcase-region 'disabled nil) ;; upcase region is useful
-(put 'erase-buffer 'disabled nil) ;; and so is erase-buffer
+(put 'narrow-to-region 'disabled nil) ;; narrow-to-region is extremely useful!
+(put 'upcase-region 'disabled nil) ;; upcase region is useful
+(put 'erase-buffer 'disabled nil) ;; and so is erase-buffer
;; ------------------------------ Non UI Settings ------------------------------
-(setq ring-bell-function 'ignore) ;; disable the bell ring.
-(setq default-directory user-home-dir) ;; consider user home the default directory
+(setq ring-bell-function 'ignore) ;; disable the bell ring.
+(setq default-directory user-home-dir) ;; consider user home the default directory
-(global-auto-revert-mode) ;; update the buffer when the associated file has changed
-(setq global-auto-revert-non-file-buffers t) ;; do so for all buffer types (e.g., ibuffer)
-(setq bidi-display-reordering nil) ;; don't reorder bidirectional text for display
-(setq bidi-paragraph-direction t) ;; forces directionality of text for performance.
+(global-auto-revert-mode) ;; update the buffer when the associated file has changed
+(setq global-auto-revert-non-file-buffers t) ;; do so for all buffer types (e.g., ibuffer)
+(setq bidi-display-reordering nil) ;; don't reorder bidirectional text for display
+(setq bidi-paragraph-direction t) ;; forces directionality of text for performance.
-(setq system-time-locale "C") ;; use en_US locale to format time.
+(setq system-time-locale "C") ;; use en_US locale to format time.
;; --------------------------------- Clipboard ---------------------------------
-(setq select-enable-clipboard t) ;; cut and paste using clipboard
-(setq yank-pop-change-selection t) ;; update system clipboard when yanking in emacs
-(setq save-interprogram-paste-before-kill t) ;; saves existing clipboard to kill ring before replacing
+(setq select-enable-clipboard t) ;; cut and paste using clipboard
+(setq yank-pop-change-selection t) ;; update system clipboard when yanking in emacs
+(setq save-interprogram-paste-before-kill t) ;; saves existing clipboard to kill ring before replacing
;; -------------------------------- Tab Settings -------------------------------
-;; use spaces, not tabs
+ ;; use spaces, not tabs
-(setq-default tab-width 4) ;; if tab, make them 4 spaces default
-(setq-default indent-tabs-mode nil) ;; but turn off tabs by default
+(setq-default tab-width 4) ;; if tab, make them 4 spaces default
+(setq-default indent-tabs-mode nil) ;; but turn off tabs by default
;; ------------------------------ Scroll Settings ------------------------------
@@ -78,9 +78,9 @@
;; ----------------------------- Case Insensitivity ----------------------------
;; make user interfaces case insensitive
-(setq case-fold-search t) ;; case-insensitive searches
-(setq completion-ignore-case t) ;; case-insensitive completion
-(setq read-file-name-completion-ignore-case t) ;; case-insensitive file completion
+(setq case-fold-search t) ;; case-insensitive searches
+(setq completion-ignore-case t) ;; case-insensitive completion
+(setq read-file-name-completion-ignore-case t) ;; case-insensitive file completion
;; ------------------------------- Async Commands ------------------------------
;; always create new async command buffers silently
@@ -106,6 +106,11 @@
(global-unset-key (kbd "<pinch>"))
(global-set-key [remap mouse-wheel-text-scale] 'cj/disabled)
+;; disabling mouse prevents accidental mouse moves modifying text
+(use-package disable-mouse
+ :config
+ (global-disable-mouse-mode))
+
;; ------------------------------- Be Quiet(er)! -------------------------------
;; reduces "helpful" instructions that distract Emacs power users.
diff --git a/modules/system-utils.el b/modules/system-utils.el
index e25f8f03..e0121f0f 100644
--- a/modules/system-utils.el
+++ b/modules/system-utils.el
@@ -4,12 +4,6 @@
;;; Code:
-;; ------------------------------- Disable Mouse -------------------------------
-;; prevents accidental mouse moves resulting in accidentally modifying text
-
-(use-package disable-mouse
- :config
- (global-disable-mouse-mode))
;; ---------------------------------- Xdg-Open ---------------------------------
;; open specific file extensions with the system's default mime-type handler