Update Emacs config

This commit is contained in:
2025-06-27 01:03:48 -04:00
parent e58a33b54e
commit cb7d690890
3 changed files with 12 additions and 21 deletions

View File

@@ -40,7 +40,7 @@
(load custom-file))
;; backup directory instead of loose files
(setq backup-directory-alist '(("." . "~/.config/emacs/backups")))
(setq backup-directory-alist '(("." . (expand-file-name "backups/" user-emacs-directory))))
(setq backup-by-copying t)
;; defer package initialize
@@ -49,11 +49,6 @@
;; prevent resizing of the frame
(setq frame-inhibit-implied-resize t)
;; no bars
;;(menu-bar-mode -1)
;;(tool-bar-mode -1)
;;(scroll-bar-mode -1)
;; no startup screen
(setq inhibit-startup-screen t)

View File

@@ -261,27 +261,23 @@
:config
(treemacs-load-theme "nerd-icons"))
;; company
;; (use-package company
;; :bind (:map company-active-map
;; ("C-n" . company-select-next)
;; ("C-p" . company-select-previous))
;; :init
;; (global-company-mode)
;; :config
;; (setq company-idle-delay 0.1)) ;; faster autocomplete
;; corfu
(use-package corfu
:custom
(corfu-cycle t)
(corfu-auto t)
(corfu-auto-prefix 2)
(corfu-auto-delay 0.2)
(corfu-quit-at-boundary 'separator)
(corfu-echo-documentation 0.25)
:init
(when (> emacs-major-version 30)
;; this mode is only available in Emacs version 30.1 and
;; greater.
(when (>= emacs-major-version 30)
(global-completion-preview-mode 1))
(unless (display-graphic-p)
(when (require 'corfu-terminal nil :noerror)
(corfu-terminal-mode +1)))
(global-corfu-mode 1))
(global-corfu-mode 1)
(corfu-history-mode 1))
;; yasnippet config
(use-package yasnippet