40 lines
1.7 KiB
EmacsLisp
40 lines
1.7 KiB
EmacsLisp
(let ((minver "25.1"))
|
|
(when (version< emacs-version minver)
|
|
(error "Your Emacs is too old -- this config requires v%s or higher" minver)))
|
|
(when (version< emacs-version "26.1")
|
|
(message "Your Emacs is old, and some functionality in this config will be disabled. Please upgrade if possible."))
|
|
|
|
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)) ; 设定源码加载路径
|
|
;; (require 'init-benchmarking) ;; Measure startup time
|
|
|
|
(defconst *spell-check-support-enabled* nil) ;; Enable with t if you prefer
|
|
(defconst *is-a-mac* (eq system-type 'darwin))
|
|
|
|
;; Adjust garbage collection thresholds during startup, and thereafter
|
|
|
|
(let ((normal-gc-cons-threshold (* 20 1024 1024))
|
|
(init-gc-cons-threshold (* 128 1024 1024)))
|
|
(setq gc-cons-threshold init-gc-cons-threshold)
|
|
(add-hook 'emacs-startup-hook
|
|
(lambda () (setq gc-cons-threshold normal-gc-cons-threshold))))
|
|
|
|
|
|
(require 'settings)
|
|
(require 'packages)
|
|
(custom-set-variables
|
|
;; custom-set-variables was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
'(custom-enabled-themes '(catppuccin))
|
|
'(custom-safe-themes
|
|
'("d77d6ba33442dd3121b44e20af28f1fae8eeda413b2c3d3b9f1315fbda021992" default))
|
|
'(package-selected-packages
|
|
'(markdown-preview-mode catppuccin-theme lsp-treemacs treemacs-projectile treemacs magit lsp-ivy lsp-ui lsp-mode flycheck yasnippet-snippets yasnippet company counsel)))
|
|
(custom-set-faces
|
|
;; custom-set-faces was added by Custom.
|
|
;; If you edit it by hand, you could mess it up, so be careful.
|
|
;; Your init file should contain only one such instance.
|
|
;; If there is more than one, they won't work right.
|
|
)
|