adding yuck and rust

This commit is contained in:
Chris Cochrun 2022-12-08 12:15:58 -06:00
parent 199936d7d5
commit 88b47875d7
3 changed files with 60 additions and 5 deletions

35
init.el
View file

@ -148,6 +148,8 @@
(which-key-mode)
:defer 1)
(setenv "WAYLAND_DISPLAY" "wayland-1")
(executable-find "ssh")
(setq ispell-program-name "hunspell"
ispell-local-dictionary "en_US"
@ -1376,6 +1378,8 @@ targets."
(add-hook 'prog-mode-hook 'hl-line-mode)
(add-hook 'prog-mode-hook 'hs-minor-mode)
(add-to-list 'auto-mode-alist '("\\.yuck?\\'" . lisp-data-mode))
(use-package tree-sitter
:config
(global-tree-sitter-mode +1)
@ -1413,6 +1417,12 @@ targets."
(add-hook 'c-mode-common-hook (lambda () (add-hook 'before-save-hook 'astyle-before-save)))
(use-package rustic
:config
;; comment to disable rustfmt on save
(setq rustic-format-on-save t
rustic-lsp-client 'eglot))
(use-package web-mode
:config
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
@ -1445,9 +1455,13 @@ targets."
(use-package eglot
:commands eglot
:hook
(c++-mode . eglot-ensure))
(c++-mode . eglot-ensure)
(rust-mode . eglot-ensure))
(use-package consult-eglot)
(use-package consult-eglot
:general
(general-def 'normal eglot-mode-map
"gs" 'consult-eglot-symbols))
(use-package cmake-mode
:mode ("\\CMakeLists.txt\\'" . cmake-mode))
@ -2441,3 +2455,20 @@ interfere with the default `bongo-playlist-buffer'."
gcmh-verbose nil))
(setq warning-suppress-types '((comp)))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; 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.
'(pdf-misc-print-program "/usr/bin/lpr")
'(pdf-misc-print-program-args '("-o media=Letter" "-o fitplot"))
'(safe-local-variable-values
'((aggressive-indent-mode)
(projectile-project-run-cmd . "./bld/bin/presenter")
(projectile-project-compilation-cmd . "cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Debug -B bld/ . && make -j8 --dir bld/ && rm -rf ~/.cache/librepresenter/LibrePresenter/qmlcache/"))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; 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.
'(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))