Extra formatting, removal of whitespaces

This commit is contained in:
Curt Spark 2026-03-08 21:54:29 +00:00
parent d13f9d431d
commit ed93fdfd94
1 changed files with 31 additions and 31 deletions

62
init.el
View File

@ -78,7 +78,7 @@
;; Package management setup
; Elpaca
(unload-feature 'tramp t)
;(unload-feature 'tramp t)
(defvar elpaca-installer-version 0.11)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
@ -133,14 +133,14 @@
:ensure t
:init
(gcmh-mode 1)
;; Ensure garbage collector does not run TOO frequently which causes random freezes
(defun gcmh-mode-optimisation-setup-hook ()
(setq gc-cons-threshold most-positive-fixnum))
(defun gcmh-mode-optimisation-exit-hook ()
(setq gc-cons-threshold 800000))
(add-hook 'minibuffer-setup-hook 'gcmh-mode-optimisation-setup-hook)
(add-hook 'minibuffer-exit-hook 'gcmh-mode-optimisation-exit-hook))
@ -153,10 +153,10 @@
(setq jit-lock-defer-time 0)
(with-eval-after-load 'evil
(add-hook 'evil-insert-state-entry-hook
(add-hook 'evil-insert-state-entry-hook
(lambda ()
(setq jit-lock-defer-time 0.25)) nil t)
(add-hook 'evil-insert-state-exit-hook
(add-hook 'evil-insert-state-exit-hook
(lambda ()
(setq jit-lock-defer-time 0)) nil t))
@ -316,7 +316,7 @@
:ensure nil
:custom
(tab-always-indent 'complete)
;; Enable context menu. `vertico-multiform-mode' adds a menu in the minibuffer
;; to switch display modes.
(context-menu-mode t)
@ -329,7 +329,7 @@
;; Do not allow the cursor in the minibuffer prompt
(minibuffer-prompt-properties
'(read-only t cursor-intangible t face minibuffer-prompt)))
;; Doom Theme
@ -337,10 +337,10 @@
:ensure t
:config
;; Global settings (defaults)
(setq
(setq
doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(load-theme 'doom-gruvbox-light t))
@ -392,17 +392,17 @@
;; Corfu Autocomplete in buffer
(use-package corfu
:ensure t
:hook
:hook
(prog-mode . corfu-mode)
(html-ts-mode . corfu-mode)
(css-ts-mode . corfu-mode)
;; (shell-mode . corfu-mode)
;; (eshell-mode . corfu-mode))
:config
(setq
(setq
auto nil
corfu-preselect 'first))
;;(global-corfu-mode)
@ -431,7 +431,7 @@
(use-package eshell-z
:ensure t
:after tramp
:config
:config
(add-hook 'eshell-mode-hook
(defun my-eshell-mode-hook ()
(require 'eshell-z))))
@ -458,7 +458,7 @@
(with-temp-buffer
(call-process "bash" nil '(t nil) nil "-ci" "alias")
(goto-char (point-min))
; Bash aliases to exclude
(flush-lines "^alias magit\\|^alias oc\\|^alias z\\|^alias zi\\|^alias cd\\|^alias cdi\\|^alias sudo")
@ -475,7 +475,7 @@
:init
;; For `eat-eshell-mode'.
(add-hook 'eshell-load-hook #'eat-eshell-mode)
;; For `eat-eshell-visual-command-mode'.
(add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode))
@ -505,10 +505,10 @@
:ensure nil
:config
(setq mu4e-mu-binary (executable-find "mu"))
;; This is set to 't' to avoid mail syncing issues when using mbsync
(setq mu4e-change-filenames-when-moving t)
;; Refresh mail using isync every 10 minutes
;(setq mu4e-update-interval (* 10 60))
(setq mu4e-get-mail-command "mbsync -a")
@ -520,7 +520,7 @@
;; Make sure plain text mails flow correctly for recipients
(setq mu4e-compose-format-flowed t)
;; Use completing read AKA vertico
;; Use completing read AKA vertico
(setq mu4e-completing-read-function 'completing-read)
(setq mu4e-contexts
@ -542,7 +542,7 @@
(mu4e-drafts-folder . "/work-cspark/Drafts")
(mu4e-sent-folder . "/work-cspark/Sent Mail")
(mu4e-trash-folder . "/work-cspark/Trash")))
;; Services account
(make-mu4e-context
:name "B CSpark Services"
@ -560,7 +560,7 @@
(mu4e-drafts-folder . "/services-cspark/Drafts")
(mu4e-sent-folder . "/services-cspark/Sent Mail")
(mu4e-trash-folder . "/services-cspark/Trash")))
;; Personal account
(make-mu4e-context
:name "C CSpark Personal"
@ -578,7 +578,7 @@
(mu4e-drafts-folder . "/personal-cspark/Drafts")
(mu4e-sent-folder . "/personal-cspark/Sent Mail")
(mu4e-trash-folder . "/personal-cspark/Trash")))
;; Tuxtank Services account
(make-mu4e-context
:name "D Tuxtank Services"
@ -596,15 +596,15 @@
(mu4e-drafts-folder . "/personal-tuxtank/Drafts")
(mu4e-sent-folder . "/personal-tuxtank/Sent Mail")
(mu4e-trash-folder . "/personal-tuxtank/Trash")))))))
;(setq mu4e-maildir-shortcuts
; '(("/Gmail/Inbox" . ?i)
; ("/Gmail/[Gmail]/Sent Mail" . ?s)
; ("/Gmail/[Gmail]/Trash" . ?t)
; ("/Gmail/[Gmail]/Drafts" . ?d)
; ("/Gmail/[Gmail]/All Mail" . ?a)))
;; Emacs everywhere - Use emacs for any text input
@ -614,7 +614,7 @@
;; Parinfer mode - We will use conventional 2 spaces instead of tabs for lisp
(use-package parinfer-rust-mode
:ensure (:host github :repo "justinbarclay/parinfer-rust-mode")
:hook (emacs-lisp-mode . (lambda()
:hook (emacs-lisp-mode . (lambda()
(setq-local tab-width 2)
(indent-tabs-mode -1)
(parinfer-rust-mode))))
@ -653,7 +653,7 @@
(sql . ("https://github.com/m-novikov/tree-sitter-sql"))
(toml . ("https://github.com/tree-sitter/tree-sitter-toml"))
(zig . ("https://github.com/GrayJack/tree-sitter-zig"))))
:config ;; Credit to https://github.com/Nathan-Furnal/dotemacs/blob/df9b845563a84a927ff762e172334cf772253a44/init.el#L1154
(defun nf/treesit-install-all-languages ()
"Install all languages specified by `treesit-language-source-alist'."
@ -711,7 +711,7 @@
(css-mode . css-ts-mode)
(js-mode . js-ts-mode)
(javascript-mode . js-ts-mode)))
;; Programming treesit style config
@ -757,7 +757,7 @@
;; LSP Configuration
(use-package eglot
:hook
:hook
(((
bash-ts-mode
c-ts-mode
@ -777,7 +777,7 @@
;; HTML Emmet Snippets
(use-package emmet-mode
:ensure t
:hook
:hook
(typescript-ts-mode . emmet-mode)
(tsx-ts-mode . emmet-mode)
(html-ts-mode . emmet-mode)
@ -811,4 +811,4 @@
;; 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.