This commit is contained in:
Zelong Kuang
2026-02-25 22:18:53 +11:00
parent b7832a60d1
commit 097cfc4d82
5 changed files with 20 additions and 10 deletions

View File

@@ -1,15 +1,20 @@
;; -*- lexical-binding: t -*-
(setq gc-cons-threshold most-positive-fixnum)
(setq gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.6)
;; After init, use gcmh
(add-hook 'emacs-startup-hook
(lambda ()
(setq gc-cons-threshold #x6400000
gc-cons-percentage 0.1)))
(setq package-enable-at-startup nil)
(add-to-list 'load-path (expand-file-name "lisp/" user-emacs-directory))
(setq use-package-enable-imenu-support t)
(setq load-prefer-newer noninteractive)
(require 'init-elpaca)
(require 'init-gc)
(prefer-coding-system 'utf-8)
;; Inhibit resizing frame
(setq frame-inhibit-implied-resize t)

View File

@@ -2,6 +2,8 @@
;;; Commentary:
;;; blablabla
(require 'init-elpaca)
(require 'init-gc)
(require 'init-better-default)
(require 'init-hydra)

View File

@@ -7,17 +7,18 @@
(unless (derived-mode-p
'emacs-lisp-mode 'lisp-mode
'makefile-mode 'snippet-mode
'lisp-interaction-mode
'ron-mode)
(eglot-ensure))))
((markdown-mode yaml-mode yaml-ts-mode) . eglot-ensure))
:init
:bind (:map eglot-mode-map
("C-c c a" . eglot-code-actions))
:config
(setq completion-category-defaults nil)
(setq eglot-autoshutdown t
eglot-events-buffer-config 0
eglot-send-changes-idle-time 0.5
eglot-code-action-indications '(eldoc-hint))
:bind (:map eglot-mode-map
("C-c c a" . eglot-code-actions))
:config (setq completion-category-defaults nil))
eglot-code-action-indications '(eldoc-hint)))
(use-package eglot-booster
:ensure (eglot-booster :type git :host nil :repo "https://github.com/jdtsmith/eglot-booster")

View File

@@ -3,6 +3,7 @@
(use-package gcmh
:diminish
:ensure (:wait t) ;; what does this do in elpaca
:init
(gcmh-mode 1)
:config

View File

@@ -62,7 +62,8 @@
(use-package beframe
:hook elpaca-after-init
:bind (("C-x b" . beframe-switch-buffer)
("C-x C-b" . beframe-buffer-menu)))
("C-x C-b" . beframe-buffer-menu)
("C-x f" . other-frame-prefix)))
;; :config
;; (setq beframe-functions-in-frames '(project-prompt-project-dir)))