Improved emacs load time

This commit is contained in:
Random936 2023-09-24 20:23:31 -07:00
parent eeb1f21ad0
commit fe4262ae6a
2 changed files with 53 additions and 40 deletions

View File

@ -134,6 +134,7 @@ Install use package for easier installation of other packages.
(require 'use-package)
(setq use-package-always-ensure t)
(setq use-package-compute-statistics t)
#+end_src
Fixes path issue that occurs on mac.
@ -155,7 +156,7 @@ Command Log Mode creates a window that logs all commands and corresponding keybi
#+begin_src emacs-lisp
(use-package command-log-mode
:defer
:defer t
:config (global-command-log-mode))
#+end_src
@ -164,7 +165,8 @@ Command Log Mode creates a window that logs all commands and corresponding keybi
*Magit* adds several features to Emacs that make using git easier.
#+begin_src emacs-lisp
(use-package magit)
(use-package magit
:defer t)
#+end_src
*** Helpful

View File

@ -6,6 +6,7 @@ This will include any language server packages and configuration.
#+begin_src emacs-lisp
(use-package web-mode
:defer t
:mode "\\.html\\'"
:hook (web-mode . lsp-deferred))
#+end_src
@ -14,6 +15,7 @@ This will include any language server packages and configuration.
#+begin_src emacs-lisp
(use-package typescript-mode
:defer t
:mode ("\\.ts\\'" "\\.js\\'")
:hook (typescript-mode . lsp-deferred))
#+end_src
@ -28,6 +30,7 @@ Install the ~typescript-language-server~ through npm.
#+begin_src emacs-lisp
(use-package python-mode
:defer t
:mode ("\\.py\\'")
:hook (python-mode . lsp-deferred))
#+end_src
@ -42,6 +45,7 @@ Install the ~python-lsp-server~ though pip.
#+begin_src emacs-lisp
(use-package ccls
:defer t
:hook ((c-mode cc-mode c++-mode objc-mode cuda-mode) .
(lambda () (require 'ccls) (lsp)))
:config
@ -58,6 +62,7 @@ Install ~ccls~ with homebrew using the following command.
#+begin_src emacs-lisp
(use-package go-mode
:defer t
:hook (go-mode . lsp-deferred))
#+end_src
@ -65,6 +70,7 @@ Install ~ccls~ with homebrew using the following command.
#+begin_src emacs-lisp
(use-package rustic
:defer t
:hook (rust-mode . lsp-deferred))
#+end_src
@ -72,6 +78,7 @@ Install ~ccls~ with homebrew using the following command.
#+begin_src emacs-lisp
(use-package csharp-mode
:defer t
:hook (csharp-mode . lsp-deferred))
#+end_src
@ -79,6 +86,7 @@ Install ~ccls~ with homebrew using the following command.
#+begin_src emacs-lisp
(use-package json-mode
:defer t
:hook (json-mode . lsp-deferred))
#+end_src
@ -86,6 +94,7 @@ Install ~ccls~ with homebrew using the following command.
#+begin_src emacs-lisp
(use-package yaml-mode
:defer t
:hook (yaml-mode . lsp-deferred))
#+end_src
@ -95,6 +104,7 @@ To install the corresponding LSP, you need to install ~yls~. Using the command ~
#+begin_src emacs-lisp
(use-package yara-mode
:defer t
:hook (yara-mode . lsp-deferred)
:config
(with-eval-after-load 'lsp-mode
@ -111,5 +121,6 @@ To install the corresponding LSP, you need to install ~yls~. Using the command ~
#+begin_src emacs-lisp
(use-package ess
:defer t
:hook (R-mode . lsp-deferred))
#+end_src