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

@@ -80,7 +80,7 @@
"Nix Packages" = { "Nix Packages" = {
urls = [ urls = [
{ {
template = "https://search.nixos.org/packages"; template = "https://search.nixos.org/packages?channel=unstable";
params = [ params = [
{ {
name = "type"; name = "type";

View File

@@ -40,7 +40,7 @@
(load custom-file)) (load custom-file))
;; backup directory instead of loose files ;; 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) (setq backup-by-copying t)
;; defer package initialize ;; defer package initialize
@@ -49,11 +49,6 @@
;; prevent resizing of the frame ;; prevent resizing of the frame
(setq frame-inhibit-implied-resize t) (setq frame-inhibit-implied-resize t)
;; no bars
;;(menu-bar-mode -1)
;;(tool-bar-mode -1)
;;(scroll-bar-mode -1)
;; no startup screen ;; no startup screen
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)

View File

@@ -261,27 +261,23 @@
:config :config
(treemacs-load-theme "nerd-icons")) (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 ;; corfu
(use-package 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 :init
(when (> emacs-major-version 30) (when (>= emacs-major-version 30)
;; this mode is only available in Emacs version 30.1 and
;; greater.
(global-completion-preview-mode 1)) (global-completion-preview-mode 1))
(unless (display-graphic-p) (unless (display-graphic-p)
(when (require 'corfu-terminal nil :noerror) (when (require 'corfu-terminal nil :noerror)
(corfu-terminal-mode +1))) (corfu-terminal-mode +1)))
(global-corfu-mode 1)) (global-corfu-mode 1)
(corfu-history-mode 1))
;; yasnippet config ;; yasnippet config
(use-package yasnippet (use-package yasnippet