From 378e380cde0bfbaaf29732a4c5ce3f9bcda9cb80 Mon Sep 17 00:00:00 2001 From: pupbrained Date: Sat, 5 Oct 2024 00:40:51 -0400 Subject: [PATCH] i forgot to commit --- config.org | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/config.org b/config.org index 31576af..065eccc 100644 --- a/config.org +++ b/config.org @@ -12,16 +12,16 @@ (unless (server-running-p) (server-start)) #+end_src -** Disable Auto-Save and Backup +** Auto-Save -*** (I don't like having ~#file#~ and ~file~~ everywhere in my directories) +*** Disable Built-In Auto-Save and Backup #+begin_src emacs-lisp (setq auto-save-default nil make-backup-files nil) #+end_src -** Enable Real Auto Save +*** Enable Real Auto-Save #+begin_src emacs-lisp (use-package real-auto-save @@ -143,7 +143,11 @@ (electric-indent-mode 1) (electric-pair-mode 1) (setq c-basic-offset 2) + + (setq-default tab-width 2) (setq-default indent-tabs-mode nil) + (setq-default standard-indent 2) + (global-set-key (kbd "TAB") 'indent-for-tab-command) (use-package evil :ensure t @@ -157,7 +161,8 @@ evil-want-integration t evil-want-keybinding nil) :config - (evil-mode 1)) + (evil-mode 1) + (evil-define-key 'normal 'global (kbd "K") #'eldoc-box-help-at-point)) (use-package evil-collection :ensure t @@ -192,7 +197,7 @@ (use-package eglot :hook (prog-mode . eglot-ensure) - :config + :config (add-hook 'emacs-lisp-mode-hook 'eglot-ensure) (add-hook 'c-mode-hook 'hide-ifdef-mode) (add-hook 'c++-mode-hook 'hide-ifdef-mode)) @@ -209,6 +214,9 @@ (eglot-format-buffer))) (add-hook 'before-save-hook #'my/eglot-format-buffer-on-save) + + ;; Load posframe for popups + (use-package eldoc-box :ensure t) #+end_src *** TreeSitter @@ -276,11 +284,11 @@ (set-face-attribute 'variable-pitch nil :font "Iosevka Comfy Motion Duo-16") (setq default-frame-alist '((font . "Iosevka Comfy-14")))) ((eq system-type 'gnu/linux) - (set-face-attribute 'default nil :font "Iosevka Comfy-12") - (set-face-attribute 'fixed-pitch nil :font "Iosevka Comfy-12") + (set-face-attribute 'default nil :font "Iosevka Comfy Medium-12") + (set-face-attribute 'fixed-pitch nil :font "Iosevka Comfy Medium-12") (set-face-attribute 'variable-pitch nil :font "Iosevka Comfy Motion Duo-14") (setq default-frame-alist - '((font . "Iosevka Comfy-12") + '((font . "Iosevka Comfy Medium-12") (undecorated . t))))) #+end_src