]> git.earman.xyz Git - emacsinit.git/commitdiff
Cleanup, reorganize
authorrearman <rearman@r717.net>
Thu, 2 Oct 2025 17:13:56 +0000 (13:13 -0400)
committerrearman <rearman@r717.net>
Thu, 2 Oct 2025 17:13:56 +0000 (13:13 -0400)
init.el

diff --git a/init.el b/init.el
index c6687c3d74bf92ba02bf3eb6fe6c42c6b66c5080..ebeb16cc7048dbf3d999fabc6b765b1c2caab41c 100644 (file)
--- a/init.el
+++ b/init.el
 (add-hook 'c-mode-hook (lambda () (require 're-c-style)))
 \f
 ;; Tabs
-(setq-default indent-tabs-mode 'only
+(setq-default indent-tabs-mode t
              tab-width 8)
+
 (defvaralias 'c-basic-offset 'tab-width)
 (defvaralias 'cperl-indent-level 'tab-width)
 
 (add-hook 'prog-mode-hook
-         (lambda () (keymap-local-set "<TAB>" #'tab-to-tab-stop)))
+         (lambda () (keymap-local-set "<TAB>" #'self-insert-command)))
 
 (add-hook 'text-mode-hook
          (lambda ()
            (keymap-set text-mode-map "<TAB>" 'self-insert-command)))
-
 \f
 ;; Buffer dealiŋ
 (setq-default indicate-empty-lines t
 (size-indication-mode t)
 
 (setq delete-by-moving-to-trash t
-      delete-pair-blink-delay 0
-      delete-active-region nil
-      next-line-add-newlines t
-      scroll-conservatively 101)
-
-(setq disabled-command-function nil
-      save-interprogram-paste-before-kill t
-      confirm-kill-processes nil)
+         delete-pair-blink-delay 0
+         delete-active-region nil
+         next-line-add-newlines t
+         scroll-conservatively 101
+         ring-bell-function 'ignore
+         use-short-answers t
+         use-file-dialog nil
+         echo-keystrokes 0.1
+         eldoc-idle-delay 0
+         read-buffer-completion-ignore-case t
+         history-delete-duplicates t
+         disabled-command-function nil
+         save-interprogram-paste-before-kill t
+         confirm-kill-processes nil)
 \f
 ;; Recent Files/Buffers
 (midnight-mode t)
 \f
 ;; Bookmarks
 (setq bookmark-save-flag 1)
-
-(setq ring-bell-function 'ignore
-      use-short-answers t
-      use-file-dialog nil
-      echo-keystrokes 0.1
-      eldoc-idle-delay 0
-      eldoc-echo-area-use-multiline-p nil
-      read-buffer-completion-ignore-case t
-      history-delete-duplicates t)
 \f
 ;; GUI Settings
 (load-theme 'wobow-bow t)
       focus-follows-mouse t
       mouse-autoselect-window -0.25)
 
-(setq prettify-symbols-alist
-      '(("lambda" . 955)
-       ("delta" . 120517)
-       ("epsilon" . 120518)
-       ("->" . 8594)
-       ("<=" . 8804)
-       (">=" . 8805)))
+(setq prettify-symbols-alist '(("lambda" . 955)
+                              ("delta" . 120517)
+                              ("epsilon" . 120518)
+                              ("->" . 8594)
+                              ("<=" . 8804)
+                              (">=" . 8805)))
 
 (global-prettify-symbols-mode t)
 \f
 (setq show-paren-delay 0
       show-paren-style 'expression)
 
-(setq electric-pair-pairs '((?\" . ?\")
-                           (?\‘ . ?\’)
-                           (?\“ . ?\”)
-                           (?\{ . ?\})
-                           (?\< . ?\>)))
-
 (set-face-attribute 'show-paren-match
                    nil
                    :foreground
                    'unspecified
                    :underline
                    t)
+
+(setq electric-pair-pairs '((?\" . ?\")
+                           (?\‘ . ?\’)
+                           (?\“ . ?\”)
+                           (?\{ . ?\})
+                           (?\< . ?\>)))
 \f
 ;; Transient mark mode temp enabling
 (setq transient-mark-mode nil)
       vc-git-log-switches '("--oneline" "--all" "--graph")
       vc-git-log-edit-summary-target-len 50
       vc-git-log-edit-summary-max-len 70
-      vc-find-revision-no-save t
-      backup-by-copying t
-      backup-directory-alist `((".*" . "~/emacs-backups/")))
+      vc-find-revision-no-save t)
 
 (setq vc-git-root-log-format
       `("%d %h %ai %an: %s"
         (3 'change-log-name)
         (4 'change-log-date))))
 
-(setq delete-old-versions t
+(setq backup-directory-alist `((".*" . "~/emacs-backups/"))
+      backup-by-copying t
+      delete-old-versions t
       kept-new-versions 5
       kept-old-versions 5)
 \f