summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-17 09:11:23 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-17 09:11:23 -0700
commitdf712a1d88c675702f5f2272def7e4c6e69b3925 (patch)
tree8d06253617ec001c4817d59cbc3fdb3fc0e0fb88
parentconfiguration related to rust (diff)
downloademacs.d-df712a1d88c675702f5f2272def7e4c6e69b3925.tar.gz
minor configuration tweaks
Change-Id: I7f0d8d0070360245c072cff8daa8760ddc4ea743
-rw-r--r--config/init-file.el17
-rw-r--r--config/init-rg.el19
2 files changed, 16 insertions, 20 deletions
diff --git a/config/init-file.el b/config/init-file.el
index f8dadb1..d0e6da3 100644
--- a/config/init-file.el
+++ b/config/init-file.el
@@ -11,20 +11,15 @@
 
 (require 'init-util)
 
-(setq require-final-newline t)
+(use-package files
+  :custom
+  (require-final-newline t)
+  (auto-save-default nil)
+  (auto-save-list-file-prefix nil)
+  (backup-inhibited t))
 
 (setq bookmark-default-file (user-data "bookmarks"))
 
-;; Disable backup.
-(setq backup-inhibited t)
-
-;; Disable auto save.
-(setq auto-save-default nil)
-(setq auto-save-list-file-prefix nil)
-
-;; Really, no backups
-(setq make-backup-files nil)
-
 (use-package recentf
   :custom
   (recentf-max-saved-items 2000)
diff --git a/config/init-rg.el b/config/init-rg.el
index df7cdfe..8700fb2 100644
--- a/config/init-rg.el
+++ b/config/init-rg.el
@@ -9,15 +9,16 @@
 
 (use-package rg
   :ensure t
-  :custom ((rg-group-result t)
-           (rg-show-columns t)
-           (rg-align-line-number-field-length 3)
-           (rg-align-column-number-field-length 3)
-           (rg-align-line-column-separator "#")
-           (rg-align-position-content-separator "|")
-           (rg-hide-command nil)
-           (rg-align-position-numbers t)
-           (rg-command-line-flags '("--follow"))))
+  :custom
+  (rg-group-result t)
+  (rg-show-columns t)
+  (rg-align-line-number-field-length 3)
+  (rg-align-column-number-field-length 3)
+  (rg-align-line-column-separator "#")
+  (rg-align-position-content-separator "|")
+  (rg-hide-command nil)
+  (rg-align-position-numbers t)
+  (rg-command-line-flags '("--follow")))
 
 (provide 'init-rg)