Minor tweaks and fixes
Some checks failed
/ Test config on 20 (push) Failing after 13s

- ensure certain variables are copied from .zprofile
- shorten which-key delay
- increase garbage collection threshold
This commit is contained in:
Maciej 2024-09-09 08:04:58 +03:00
parent c85cd624f1
commit 5cf9984226
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
2 changed files with 12 additions and 8 deletions

View file

@ -78,7 +78,7 @@
(setq large-file-warning-threshold 50000000)
;; Numbers are arbitrary, but work on a large screen. Default is 160
(setq split-width-threshold 180)
(setq split-width-threshold 200)
;;;;;;;;;;;;;;;;;;;;;; Shell stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)
@ -87,10 +87,12 @@
;; Allow to execute path from shell
(use-package exec-path-from-shell
:if (memq window-system '(x mac ns))
:straight t
:config (add-to-list 'exec-path "/usr/local/bin")
(exec-path-from-shell-initialize))
:if (memq window-system '(x mac ns))
:straight t
:config (add-to-list 'exec-path "/usr/local/bin")
(dolist (var '("DEFT_PATH" "LANG" "LC_CTYPE"))
(add-to-list 'exec-path-from-shell-variables var))
(exec-path-from-shell-initialize))
(use-package direnv :straight t :config (direnv-mode))
@ -125,7 +127,9 @@
;;;;;;;;;;;;;;;;; Show hints about key combinations
(use-package which-key
:straight t
:config (which-key-mode t))
:config
(setq which-key-idle-delay 0.5)
(which-key-mode t))
;;;;;;;;;;;;;;;;; Use C-n to create a new line
(setq next-line-add-newlines t)

View file

@ -93,8 +93,8 @@
(require 'icejam-diminish)
;; Restore GC to normal, but still high
(setq gc-cons-threshold 100000000)
(setq gc-cons-percentage 0.1)
(setq gc-cons-threshold 200000000)
(setq gc-cons-percentage 0.2)
(provide 'icejam-custom-init)
;;; icejam-custom-init.el ends here