diff options
author | venomade <venomade@venomade.com> | 2025-02-27 17:06:42 +0000 |
---|---|---|
committer | venomade <venomade@venomade.com> | 2025-02-27 17:06:42 +0000 |
commit | 1cace80e4832a5d250ef4b7ccd687996563fb01b (patch) | |
tree | db1ced91d1382ca3cabe37dbae00da51231d6a99 /emacs-elisp/languages |
Add old dotfiles
Diffstat (limited to 'emacs-elisp/languages')
-rw-r--r-- | emacs-elisp/languages/c-cpp.el | 4 | ||||
-rw-r--r-- | emacs-elisp/languages/clojure.el | 5 | ||||
-rw-r--r-- | emacs-elisp/languages/rust.el | 11 | ||||
-rw-r--r-- | emacs-elisp/languages/scheme.el | 10 |
4 files changed, 30 insertions, 0 deletions
diff --git a/emacs-elisp/languages/c-cpp.el b/emacs-elisp/languages/c-cpp.el new file mode 100644 index 0000000..f99c948 --- /dev/null +++ b/emacs-elisp/languages/c-cpp.el @@ -0,0 +1,4 @@ +(add-hook 'c++-mode-hook #'lsp) +(add-hook 'c-mode-hook #'lsp) +(setq c-default-style "linux" + c-basic-offset 2) diff --git a/emacs-elisp/languages/clojure.el b/emacs-elisp/languages/clojure.el new file mode 100644 index 0000000..7e0e5d0 --- /dev/null +++ b/emacs-elisp/languages/clojure.el @@ -0,0 +1,5 @@ +;; Clojure +(use-package clojure-mode) +(use-package cider) +(use-package flycheck-clj-kondo) +(use-package clj-refactor) diff --git a/emacs-elisp/languages/rust.el b/emacs-elisp/languages/rust.el new file mode 100644 index 0000000..212a575 --- /dev/null +++ b/emacs-elisp/languages/rust.el @@ -0,0 +1,11 @@ +(use-package rust-mode) +(setq rust-mode-treesitter-derive t) + +(setenv "PATH" (concat (concat + (concat (expand-file-name "~/.cargo/bin") ":") + (getenv "PATH")))) + +(setq exec-path (append exec-path (list (expand-file-name "~/.cargo/bin")))) + +(use-package flycheck-rust) +(add-hook 'flycheck-mode-hook #'flycheck-rust-setup) diff --git a/emacs-elisp/languages/scheme.el b/emacs-elisp/languages/scheme.el new file mode 100644 index 0000000..7fdcd5d --- /dev/null +++ b/emacs-elisp/languages/scheme.el @@ -0,0 +1,10 @@ +;; TODO: Write this header + +(use-package geiser) +(use-package geiser-guile) +(use-package flycheck-guile) + +(setq geiser-default-implementation 'guile) +(setq geiser-active-implementations '(guile)) + (setq geiser-implementations-alist '(((regexp "\\.scm$") guile))) +(setq geiser-guile-binary "guile3.0") |