update main init

This commit is contained in:
2025-08-12 17:19:27 +02:00
parent 02d21bd761
commit 3c5abef2a6
5 changed files with 245 additions and 20 deletions

View File

@@ -136,23 +136,9 @@ already exists in the home directory."
;; overwrite selected text
(delete-selection-mode t)
;; always use spaces, not tabs, when indenting
(setq-default indent-tabs-mode nil)
;; width for tabs
(setq-default tab-width 2)
;; ignore case when searching
(setq case-fold-search t)
;; require final newlines in files when they are saved
(setq require-final-newline t)
;; each line of text gets one line on the screen (i.e., text will run
;; off the right instead of wrapping around onto a new line)
(setq-default truncate-lines t)
;; truncate lines even in partial-width windows
;;(setq truncate-partial-width-windows t)
(defun my-unfill-paragraph ()
"Replace newline chars in current paragraph by single spaces.
This command does the inverse of `fill-paragraph'.