adding yuck and rust
This commit is contained in:
parent
199936d7d5
commit
88b47875d7
3 changed files with 60 additions and 5 deletions
28
README.org
28
README.org
|
@ -341,6 +341,11 @@ I am currently using NixOS. In order for emacs to have access to certain program
|
|||
(setenv "CXX" "/run/current-system/sw/bin/g++")
|
||||
#+end_src
|
||||
|
||||
Also due to using greetd, emacs isn't started with the environment from the system, so let's make sure it knows which wayland display we are using
|
||||
#+begin_src emacs-lisp
|
||||
(setenv "WAYLAND_DISPLAY" "wayland-1")
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
: /nix/var/nix/profiles/per-user/%u
|
||||
|
||||
|
@ -1997,6 +2002,11 @@ Let's also set =hl-line-mode= to be on for comint and prog modes
|
|||
(add-hook 'prog-mode-hook 'hs-minor-mode)
|
||||
#+END_SRC
|
||||
|
||||
Finally, here are some auto modes I'd like to setup
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'auto-mode-alist '("\\.yuck?\\'" . lisp-data-mode))
|
||||
#+end_src
|
||||
|
||||
*** Tree Sitter
|
||||
I'm gonna try this to speed up emacs and make it nicer
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -2042,6 +2052,16 @@ In c++ I just want to make sure lsp is called when enter c++-mode
|
|||
(add-hook 'c-mode-common-hook (lambda () (add-hook 'before-save-hook 'astyle-before-save)))
|
||||
#+END_SRC
|
||||
|
||||
*** Rust
|
||||
I'd like to start learning and using rust if I can.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package rustic
|
||||
:config
|
||||
;; comment to disable rustfmt on save
|
||||
(setq rustic-format-on-save t
|
||||
rustic-lsp-client 'eglot))
|
||||
#+end_src
|
||||
|
||||
*** Web
|
||||
For developing websites, I like to use web-mode
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -2131,11 +2151,15 @@ Let's give eglot a try.
|
|||
(use-package eglot
|
||||
:commands eglot
|
||||
:hook
|
||||
(c++-mode . eglot-ensure))
|
||||
(c++-mode . eglot-ensure)
|
||||
(rust-mode . eglot-ensure))
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package consult-eglot)
|
||||
(use-package consult-eglot
|
||||
:general
|
||||
(general-def 'normal eglot-mode-map
|
||||
"gs" 'consult-eglot-symbols))
|
||||
#+end_src
|
||||
|
||||
*** CMAKE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue