1.7 KiB
1.7 KiB
Emacs Configuration
Basic Setup
Server
(require 'bind-key)
(load "server")
(unless (server-running-p) (server-start))
Disable Auto-Save and Backup
(I don't like having #file#
and file~
everywhere in my directories)
(setq auto-save-default nil)
(setq make-backup-files nil)
Enable Real Auto Save
(use-package real-auto-save
:ensure t
:config
(setq real-auto-save-interval 1)
(add-hook 'prog-mode-hook 'real-auto-save-mode))
No Scratch On Open
(setq initial-scratch-message nil)
(setq initial-buffer-choice nil)
(add-hook 'emacs-startup-hook
(lambda ()
(when (and (get-buffer "*scratch*")
(not (eq (current-buffer) (get-buffer "*scratch*"))))
(kill-buffer "*scratch*"))))
Fix Indents + Enable Autopairs
(electric-indent-mode 1)
(electric-pair-mode 1)
(setq c-basic-offset 2)
(setq-default indent-tabs-mode nil)
(use-package evil
:ensure t
:init
(setq evil-split-window-below t)
(setq evil-undo-system 'undo-tree)
(setq evil-vsplit-window-right t)
(setq evil-want-C-i-jump nil)
(setq evil-want-C-u-scroll t)
(setq evil-want-integration t)
(setq evil-want-integration t)
(setq evil-want-keybinding nil)
:config
(evil-mode 1))
(use-package eglot
:hook (emacs-lisp-mode . eglot-ensure))
(use-package catppuccin-theme
:ensure t
:demand t
:config
(load-theme 'catppuccin t))
(setq auto-save-default nil)
(setq make-backup-files nil)