Optimize emacs

This commit is contained in:
Zelong Kuang
2025-12-14 21:09:42 +11:00
parent 9c5544192f
commit 2fc108d853
6 changed files with 125 additions and 73 deletions

View File

@@ -1,6 +1,5 @@
;; -*- lexical-binding: t -*-
(tool-bar-mode -1)
(scroll-bar-mode -1)
(add-hook 'prog-mode-hook #'display-line-numbers-mode)
(add-hook 'org-mode-hook #'display-line-numbers-mode)
(setq-default cursor-type 'bar)
@@ -32,4 +31,11 @@
:config
(ultra-scroll-mode 1))
(use-package benchmark-init
:ensure t
:demand t
:config
;; To disable collection of benchmark data after init is done.
(add-hook 'after-init-hook 'benchmark-init/deactivate))
(provide 'init-better-default)