Added emacs config

This commit is contained in:
Random936
2025-08-01 21:22:01 -07:00
commit 5ec5e4613b
9 changed files with 946 additions and 0 deletions

21
.emacs.d/lsp.org Normal file
View File

@@ -0,0 +1,21 @@
* Eglot
~eglot~ is the Emacs built-in package for LSP integration.
#+begin_src elisp
(use-package eglot)
#+end_src
* Language Servers
** Rust
#+begin_src emacs-lisp
(use-package rustic
:defer t
:init
(let ((brew-prefix (string-trim (shell-command-to-string "brew --prefix"))))
(when (and (memq window-system '(mac ns x)) brew-prefix (f-directory-p brew-prefix))
(setenv "YARA_LIBRARY_PATH" (expand-file-name "lib" brew-prefix))
(setenv "YARA_INCLUDE_DIR" (expand-file-name "include" brew-prefix)))))
#+end_src