[emacs] Stuff
This commit is contained in:
parent
1fd66682e5
commit
804926e05b
2 changed files with 37 additions and 20 deletions
|
|
@ -12,7 +12,8 @@
|
||||||
'(c-label-minimum-indentation 0)
|
'(c-label-minimum-indentation 0)
|
||||||
'(c-label-offset -4)
|
'(c-label-offset -4)
|
||||||
'(clojure-build-tool-files
|
'(clojure-build-tool-files
|
||||||
'("project.clj" "build.boot" "build.gradle" "build.gradle.kts" "deps.edn" "shadow-cljs.edn" "TARGETS"))
|
'("project.clj" "build.boot" "build.gradle" "build.gradle.kts" "deps.edn"
|
||||||
|
"shadow-cljs.edn" "TARGETS"))
|
||||||
'(comint-input-ignoredups t)
|
'(comint-input-ignoredups t)
|
||||||
'(comint-prompt-read-only t)
|
'(comint-prompt-read-only t)
|
||||||
'(comint-scroll-to-bottom-on-input t)
|
'(comint-scroll-to-bottom-on-input t)
|
||||||
|
|
@ -63,35 +64,33 @@
|
||||||
bazel blacken cider clang-format clipetty clojure-mode
|
bazel blacken cider clang-format clipetty clojure-mode
|
||||||
color-theme-monokai color-theme-sanityinc-solarized
|
color-theme-monokai color-theme-sanityinc-solarized
|
||||||
color-theme-sanityinc-tomorrow company company-jedi
|
color-theme-sanityinc-tomorrow company company-jedi
|
||||||
company-lsp compat cquery dash-functional deadgrep
|
company-lsp compat cquery dap-mode dap-netcore
|
||||||
dockerfile-mode doom-themes earthfile-mode editorconfig
|
dash-functional deadgrep dockerfile-mode doom-themes
|
||||||
eglot eglot-java elm-mode esup exec-path-from-shell
|
earthfile-mode editorconfig eglot eglot-java elm-mode esup
|
||||||
filladapt fish-mode flycheck flycheck-elm flycheck-rust
|
exec-path-from-shell filladapt fish-mode flycheck
|
||||||
flymake flyspell fsharp-mode geiser
|
flycheck-elm flycheck-rust flymake flyspell fsharp-mode
|
||||||
gnu-elpa-keyring-update go-autocomplete go-mode gptel
|
geiser gnu-elpa-keyring-update go-autocomplete go-mode
|
||||||
graphviz-dot-mode hack-mode haxe-mode howm ink-mode
|
gptel graphviz-dot-mode hack-mode haxe-mode howm ink-mode
|
||||||
js2-mode js2-refactor json-mode jsonnet-mode lsp-hack
|
js2-mode js2-refactor json-mode jsonnet-mode lsp-hack
|
||||||
lsp-pyright lsp-ui lua-mode magit markdown-mode merlin
|
lsp-pyright lsp-ui lua-mode magit markdown-mode merlin
|
||||||
mocha modus-themes monky monokai-theme multi-term
|
mocha modus-themes monky monokai-theme multi-term
|
||||||
mustache-mode nyan-mode paredit popup prettier-js
|
mustache-mode nyan-mode paredit popup prettier-js
|
||||||
projectile protobuf-mode python-mode request rjsx-mode
|
projectile protobuf-mode python-mode request rjsx-mode ruby-mode
|
||||||
ruby-mode rust-mode scala-mode scala-ts-mode sql-indent
|
rust-mode scala-ts-mode sql-indent swift-mode
|
||||||
swift-mode switch-window terraform-mode thrift tide
|
switch-window terraform-mode thrift tide tree-sitter tss
|
||||||
tree-sitter tss tuareg typescript-mode use-package vterm
|
tuareg typescript-mode use-package vterm web-mode wgrep
|
||||||
web-mode wgrep xref-js2 xterm-color yaml-mode zig-mode))
|
wgsl-mode xref-js2 xterm-color yaml-mode zig-mode))
|
||||||
'(reb-re-syntax 'string)
|
'(reb-re-syntax 'string)
|
||||||
'(rmail-mail-new-frame t)
|
'(rmail-mail-new-frame t)
|
||||||
'(safe-local-variable-values
|
'(safe-local-variable-values
|
||||||
'((docker-image-name . "onceandfuture")
|
'((docker-image-name . "onceandfuture")
|
||||||
(eval ignore-errors "Write-contents-functions is a buffer-local alternative to before-save-hook"
|
(eval ignore-errors
|
||||||
|
"Write-contents-functions is a buffer-local alternative to before-save-hook"
|
||||||
(add-hook 'write-contents-functions
|
(add-hook 'write-contents-functions
|
||||||
(lambda nil
|
(lambda nil (delete-trailing-whitespace) nil))
|
||||||
(delete-trailing-whitespace)
|
|
||||||
nil))
|
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
"Sometimes the mode needs to be toggled off and on."
|
"Sometimes the mode needs to be toggled off and on."
|
||||||
(whitespace-mode 0)
|
(whitespace-mode 0) (whitespace-mode 1))
|
||||||
(whitespace-mode 1))
|
|
||||||
(whitespace-line-column . 80)
|
(whitespace-line-column . 80)
|
||||||
(whitespace-style face trailing lines-tail) (require-final-newline . t)))
|
(whitespace-style face trailing lines-tail) (require-final-newline . t)))
|
||||||
'(scala-indent:use-javadoc-style t)
|
'(scala-indent:use-javadoc-style t)
|
||||||
|
|
|
||||||
|
|
@ -870,7 +870,10 @@ Or, uh, Objective C, I guess."
|
||||||
("/\\(?:WORKSPACE\\(?:\\.bazel\\)?\\)\\'" . bazel-workspace-mode)
|
("/\\(?:WORKSPACE\\(?:\\.bazel\\)?\\)\\'" . bazel-workspace-mode)
|
||||||
("/\\(?:BUILD\\(?:\\.bazel\\)?\\)\\'" . bazel-build-mode)
|
("/\\(?:BUILD\\(?:\\.bazel\\)?\\)\\'" . bazel-build-mode)
|
||||||
("/.+\\.tilt\\'" . bazel-starlark-mode)
|
("/.+\\.tilt\\'" . bazel-starlark-mode)
|
||||||
("/Tiltfile$" . bazel-starlark-mode)))
|
("/Tiltfile$" . bazel-starlark-mode)
|
||||||
|
("BUCK" . bazel-build-mode)
|
||||||
|
("/..bxl\\'" . bazel-starlark-mode)
|
||||||
|
))
|
||||||
|
|
||||||
(defun my/open-bazel-build ()
|
(defun my/open-bazel-build ()
|
||||||
"Open the build.bazel file that dominates this source file."
|
"Open the build.bazel file that dominates this source file."
|
||||||
|
|
@ -1421,4 +1424,19 @@ Do this when you edit your project view."
|
||||||
gptel-backend (gptel-make-anthropic "Claude"
|
gptel-backend (gptel-make-anthropic "Claude"
|
||||||
:stream t :key #'claude-get-api-key))
|
:stream t :key #'claude-get-api-key))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; =================================================================
|
||||||
|
;; Debugging
|
||||||
|
;; =================================================================
|
||||||
|
(use-package dap-mode :ensure
|
||||||
|
:commands dap-debug
|
||||||
|
:config
|
||||||
|
(require 'dap-netcore))
|
||||||
|
|
||||||
|
;; =================================================================
|
||||||
|
;; WGSL
|
||||||
|
;; =================================================================
|
||||||
|
(use-package wgsl-mode :ensure
|
||||||
|
:mode "\\.wgsl\\'")
|
||||||
|
|
||||||
;;; init.el ends here
|
;;; init.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue