[emacs] I don't know I've been living with it for a while
This commit is contained in:
parent
81f0b75fad
commit
12f22cab24
2 changed files with 27 additions and 11 deletions
|
|
@ -58,7 +58,7 @@
|
||||||
'(org-odd-levels-only t)
|
'(org-odd-levels-only t)
|
||||||
'(org-todo-keywords '((sequence "TODO" "|" "DONE" "ABANDONED" "DEFERRED")))
|
'(org-todo-keywords '((sequence "TODO" "|" "DONE" "ABANDONED" "DEFERRED")))
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(vterm lsp-pyright blacken nyan-mode earthfile-mode compat adaptive-wrap terraform-mode deadgrep 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 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 color-theme-monokai auto-complete auto-complete-nxml flymake flyspell json-mode popup ruby-mode company-jedi elm-mode monky color-theme-sanityinc-tomorrow))
|
'(sql-indent eglot-java vterm lsp-pyright blacken nyan-mode earthfile-mode compat adaptive-wrap terraform-mode deadgrep 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 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 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)
|
'(reb-re-syntax 'string)
|
||||||
'(rmail-mail-new-frame t)
|
'(rmail-mail-new-frame t)
|
||||||
'(safe-local-variable-values
|
'(safe-local-variable-values
|
||||||
|
|
|
||||||
|
|
@ -323,6 +323,7 @@
|
||||||
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
(elisp "https://github.com/Wilfred/tree-sitter-elisp")
|
||||||
(go "https://github.com/tree-sitter/tree-sitter-go")
|
(go "https://github.com/tree-sitter/tree-sitter-go")
|
||||||
(html "https://github.com/tree-sitter/tree-sitter-html")
|
(html "https://github.com/tree-sitter/tree-sitter-html")
|
||||||
|
(java "https://github.com/tree-sitter/tree-sitter-java" "master" "src")
|
||||||
(javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")
|
(javascript "https://github.com/tree-sitter/tree-sitter-javascript" "master" "src")
|
||||||
(json "https://github.com/tree-sitter/tree-sitter-json")
|
(json "https://github.com/tree-sitter/tree-sitter-json")
|
||||||
(make "https://github.com/alemuller/tree-sitter-make")
|
(make "https://github.com/alemuller/tree-sitter-make")
|
||||||
|
|
@ -334,7 +335,7 @@
|
||||||
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
(typescript "https://github.com/tree-sitter/tree-sitter-typescript" "master" "typescript/src")
|
||||||
(yaml "https://github.com/ikatyang/tree-sitter-yaml")))
|
(yaml "https://github.com/ikatyang/tree-sitter-yaml")))
|
||||||
|
|
||||||
;; (add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
|
(add-to-list 'major-mode-remap-alist '(rust-mode . rust-ts-mode))
|
||||||
)
|
)
|
||||||
|
|
||||||
(defun install-known-tree-sitter-grammars ()
|
(defun install-known-tree-sitter-grammars ()
|
||||||
|
|
@ -414,6 +415,7 @@
|
||||||
:commands (eglot-ensure eglot)
|
:commands (eglot-ensure eglot)
|
||||||
:hook
|
:hook
|
||||||
(python-mode . eglot-ensure)
|
(python-mode . eglot-ensure)
|
||||||
|
(python-ts-mode . eglot-ensure)
|
||||||
(rust-mode . eglot-ensure)
|
(rust-mode . eglot-ensure)
|
||||||
(rust-ts-mode . eglot-ensure) ;; 2023-08-26 Add eglot for tree-sitter rust?
|
(rust-ts-mode . eglot-ensure) ;; 2023-08-26 Add eglot for tree-sitter rust?
|
||||||
(c++-mode . eglot-ensure)
|
(c++-mode . eglot-ensure)
|
||||||
|
|
@ -547,7 +549,7 @@ Or, uh, Objective C, I guess."
|
||||||
|
|
||||||
(add-hook 'c-mode-hook 'my-c-mode-hook)
|
(add-hook 'c-mode-hook 'my-c-mode-hook)
|
||||||
(add-hook 'c++-mode-hook 'my-c-mode-hook)
|
(add-hook 'c++-mode-hook 'my-c-mode-hook)
|
||||||
(add-hook 'java-mode-hook 'my-c-mode-hook)
|
;; (add-hook 'java-mode-hook 'my-c-mode-hook)
|
||||||
(add-hook 'objc-mode-hook 'my-c-mode-hook)
|
(add-hook 'objc-mode-hook 'my-c-mode-hook)
|
||||||
|
|
||||||
(defconst jd-more-keywords
|
(defconst jd-more-keywords
|
||||||
|
|
@ -790,14 +792,14 @@ Or, uh, Objective C, I guess."
|
||||||
(string-match-p "TARGETS" (buffer-file-name)))
|
(string-match-p "TARGETS" (buffer-file-name)))
|
||||||
(blacken-mode)))
|
(blacken-mode)))
|
||||||
|
|
||||||
(use-package python-mode :ensure
|
;; (use-package python-mode :ensure
|
||||||
:init
|
;; :init
|
||||||
;; NOTE: Not using :mode here because it implies :defer which... doesn't
|
;; ;; NOTE: Not using :mode here because it implies :defer which... doesn't
|
||||||
;; work with python-mode because it fights the built-in python mode.
|
;; ;; work with python-mode because it fights the built-in python mode.
|
||||||
(add-to-list 'auto-mode-alist '("\\.py$" . python-mode))
|
;; (add-to-list 'auto-mode-alist '("\\.py$" . python-mode))
|
||||||
:config
|
;; :config
|
||||||
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
|
;; (add-to-list 'interpreter-mode-alist '("python" . python-mode))
|
||||||
(add-hook 'python-mode-hook 'my-python-mode-hook))
|
;; (add-hook 'python-mode-hook 'my-python-mode-hook))
|
||||||
|
|
||||||
(use-package blacken :ensure
|
(use-package blacken :ensure
|
||||||
:commands (blacken-mode)
|
:commands (blacken-mode)
|
||||||
|
|
@ -1283,4 +1285,18 @@ Or, uh, Objective C, I guess."
|
||||||
(use-package earthfile-mode :ensure
|
(use-package earthfile-mode :ensure
|
||||||
:mode ("\\.earth\\'" "Earthfile\\'"))
|
:mode ("\\.earth\\'" "Earthfile\\'"))
|
||||||
|
|
||||||
|
;; =================================================================
|
||||||
|
;; Java
|
||||||
|
;; =================================================================
|
||||||
|
(use-package eglot-java :ensure
|
||||||
|
:after (eglot)
|
||||||
|
:hook
|
||||||
|
(java-mode . eglot-java-mode))
|
||||||
|
|
||||||
|
;; =================================================================
|
||||||
|
;; SQL?
|
||||||
|
;; =================================================================
|
||||||
|
(use-package sql-indent :ensure)
|
||||||
|
|
||||||
|
|
||||||
;;; init.el ends here
|
;;; init.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue