A bunch of changes

This commit is contained in:
John Doty 2022-08-04 15:34:03 -07:00
parent 76a4600814
commit 506703932d
7 changed files with 52 additions and 5 deletions

View file

@ -58,7 +58,7 @@
'(org-odd-levels-only t)
'(org-todo-keywords '((sequence "TODO" "|" "DONE" "ABANDONED" "DEFERRED")))
'(package-selected-packages
'(bazel howm python-mode color-theme-sanityinc-solarized monokai-theme rust-mode tide typescript-mode modus-themes tree-sitter flycheck-rust eglot ink-mode prettier-js zig-mode esup gnu-elpa-keyring-update lsp-hack hack-mode filladapt lsp-ui yaml-mode wgrep fsharp-mode company-lsp cquery mustache-mode clang-format projectile dash-functional mocha add-node-modules-path rjsx-mode xref-js2 js2-refactor company omnisharp geiser cider clojure-mode graphviz-dot-mode multi-term xterm-color thrift markdown-mode tuareg merlin ag use-package flycheck dockerfile-mode js2-mode web-mode tss switch-window paredit magit lua-mode go-mode go-autocomplete exec-path-from-shell csharp-mode color-theme-monokai auto-complete auto-complete-nxml flymake flyspell json-mode popup ruby-mode company-jedi elm-mode monky color-theme-sanityinc-tomorrow))
'(protobuf-mode bazel howm python-mode color-theme-sanityinc-solarized monokai-theme rust-mode tide typescript-mode modus-themes tree-sitter flycheck-rust eglot ink-mode prettier-js zig-mode esup gnu-elpa-keyring-update lsp-hack hack-mode filladapt lsp-ui yaml-mode wgrep fsharp-mode company-lsp cquery mustache-mode clang-format projectile dash-functional mocha add-node-modules-path rjsx-mode xref-js2 js2-refactor company omnisharp geiser cider clojure-mode graphviz-dot-mode multi-term xterm-color thrift markdown-mode tuareg merlin ag use-package flycheck dockerfile-mode js2-mode web-mode tss switch-window paredit magit lua-mode go-mode go-autocomplete exec-path-from-shell csharp-mode color-theme-monokai auto-complete auto-complete-nxml flymake flyspell json-mode popup ruby-mode company-jedi elm-mode monky color-theme-sanityinc-tomorrow))
'(reb-re-syntax 'string)
'(rmail-mail-new-frame t)
'(safe-local-variable-values

View file

@ -363,6 +363,9 @@
(rust-mode . eglot-ensure)
(c++-mode . eglot-ensure)
(c-mode . eglot-ensure)
(go-mode . eglot-ensure) ;; 2022-07-29 Add eglot for go
:bind
("C-c \\" . eglot-code-actions) ;; 2022-07-29 I want to make code actions easier.
:config
(let ((cpp-executable (or my-cppls-fbcode-executable
my-clangd-executable)))
@ -819,6 +822,24 @@ Or, uh, Objective C, I guess."
;; =================================================================
;; Go (#golang) Mode
;; =================================================================
(require 'project)
;;-----
;; 2022-07-28 Forgot why I added this configuration; disabling it because it
;; makes it very slow, and .git is accurate anyways.
;;
;; (defun project-find-go-module (dir)
;; "A function for finding the dominating go.mod file in DIR for a go project."
;; (when-let ((root (locate-dominating-file dir "go.mod")))
;; (cons 'go-module root)))
;; (cl-defmethod project-root ((project (head go-module)))
;; "Shrug PROJECT."
;; (cdr project))
;; (add-hook 'project-find-functions #'project-find-go-module)
;;-----
(use-package go-mode :ensure t
:mode "\\.go\\'"
:config
@ -1146,5 +1167,9 @@ Or, uh, Objective C, I guess."
(add-hook 'after-save-hook 'howm-mode-set-buffer-name)
)
;; =================================================================
;; Protocol Buffers
;; =================================================================
(use-package protobuf-mode :ensure)
;;; init.el ends here