Added emacs config
This commit is contained in:
21
.emacs.d/lsp.org
Normal file
21
.emacs.d/lsp.org
Normal 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
|
||||
Reference in New Issue
Block a user