Add optimization for file-name-handler-alist and file-name-handler-alist

This commit is contained in:
James Cherti
2024-06-22 06:14:52 -04:00
parent 1b2e67713b
commit 21c6a6b3aa
2 changed files with 92 additions and 39 deletions

39
init.el
View File

@@ -14,7 +14,7 @@
;;; Code:
;;; Load user-pre-init.el
;;; Load user-pre-init.el and init packages
(minimal-emacs-load-user-init "pre-init.el")
(use-package auto-compile
@@ -30,6 +30,18 @@
:hook
(emacs-startup . gcmh-mode))
;;; Performance
;; Don't ping things that look like domain names.
(setq ffap-machine-p-known 'reject)
;; By default, Emacs "updates" its ui more often than it needs to
(setq idle-update-delay 1.0)
;; Font compacting can be very resource-intensive, especially when rendering
;; icon fonts on Windows. This will increase memory usage.
(setq inhibit-compacting-font-caches t)
;;; Uniquify - Unique buffer name
(progn
(setq uniquify-buffer-name-style 'reverse)
@@ -133,30 +145,9 @@
(setq visible-bell nil)
(setq ring-bell-function #'ignore)
;;; Minimal UI
;; Disable GUIs because theyr are inconsistent across systems, desktop
;; environments, and themes, and they don't match the look of Emacs.
(setq use-file-dialog nil)
(setq use-dialog-box nil)
(when (bound-and-true-p tooltip-mode)
(tooltip-mode -1))
;;; Performance
;; Don't ping things that look like domain names.
(setq ffap-machine-p-known 'reject)
;; By default, Emacs "updates" its ui more often than it needs to
(setq idle-update-delay 1.0)
;; Font compacting can be very resource-intensive, especially when rendering
;; icon fonts on Windows. This will increase memory usage.
(setq inhibit-compacting-font-caches t)
(provide 'init)
;;; Load user-pre-init.el
(minimal-emacs-load-user-init "post-init.el")
(provide 'init)
;;; init.el ends here