From 0ede1d3686ebd00a785d76b6eded1b739724e249 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 13 May 2025 19:44:41 +0000 Subject: [PATCH 1/5] [emacs] flycheck-elisp should inherit path It's what I always want --- .emacs.d/custom.el | 1 + 1 file changed, 1 insertion(+) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index c011901..9bebb88 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -27,6 +27,7 @@ '(fast-lock-minimum-size nil) '(fill-column 77) '(find-file-run-dired t) + '(flycheck-emacs-lisp-load-path 'inherit) '(flycheck-gcc-language-standard "c++11") '(flycheck-javascript-flow-args nil) '(flycheck-python-flake8-executable "python3") From e112e686fcd82784055391c51f61b7fea1f2a597 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 13 May 2025 19:45:13 +0000 Subject: [PATCH 2/5] [emacs] Garbage package wrapping --- .emacs.d/custom.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index 9bebb88..fe9d4a8 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -61,9 +61,10 @@ '(org-todo-keywords '((sequence "TODO" "|" "DONE" "ABANDONED" "DEFERRED"))) '(package-check-signature nil) '(package-selected-packages - '(adaptive-wrap add-node-modules-path ag auto-complete auto-complete-nxml - bazel blacken cider clang-format clipetty clojure-mode - color-theme-monokai color-theme-sanityinc-solarized + '(adaptive-wrap add-node-modules-path ag async auto-complete + auto-complete-nxml bazel blacken cider clang-format + clipetty clojure-mode color-theme-monokai + color-theme-sanityinc-solarized color-theme-sanityinc-tomorrow company company-jedi company-lsp compat cquery dap-mode dap-netcore dash-functional deadgrep dockerfile-mode doom-themes @@ -76,8 +77,8 @@ lsp-pyright lsp-ui lua-mode magit markdown-mode merlin mocha modus-themes monky monokai-theme multi-term mustache-mode nyan-mode paredit popup prettier-js - projectile protobuf-mode python-mode request rjsx-mode ruby-mode - rust-mode scala-ts-mode sql-indent swift-mode + projectile protobuf-mode python-mode request rjsx-mode + ruby-mode rust-mode scala-ts-mode sql-indent swift-mode switch-window terraform-mode thrift tide tree-sitter tss tuareg typescript-mode use-package vterm web-mode wgrep wgsl-mode xref-js2 xterm-color yaml-mode zig-mode)) From e5b297962a221c7fe13bd2d4b683b349fd5fc754 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 13 May 2025 19:45:37 +0000 Subject: [PATCH 3/5] [emacs] Keywords as italics is nice --- .emacs.d/custom.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.emacs.d/custom.el b/.emacs.d/custom.el index fe9d4a8..9be2dd7 100644 --- a/.emacs.d/custom.el +++ b/.emacs.d/custom.el @@ -119,3 +119,9 @@ '(which-func-mode-global t nil (which-func)) '(widget-editable-list-gui t) '(x-stretch-cursor nil)) +(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. + '(font-lock-keyword-face ((t (:slant italic))))) From 798d5ae05abe7b70fdde2dfb6d2ee0a3eb649a0b Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 13 May 2025 19:46:09 +0000 Subject: [PATCH 4/5] [emacs] Enable thinking for claude --- .emacs.d/init.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f29aa8d..757f073 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1427,8 +1427,11 @@ Do this when you edit your project view." (setq gptel-model 'claude-3-7-sonnet-20250219 ; "claude-3-opus-20240229" also available gptel-backend (gptel-make-anthropic "Claude" - :stream t :key #'claude-get-api-key)) - ) + :stream t + :key #'claude-get-api-key + :request-params '(:thinking (:type "enabled" :budget_tokens 2048) + :max_tokens 4096)))) + ;; ================================================================= ;; Debugging From 5de8ebdfe3e9caf07040efe733136c80e578a802 Mon Sep 17 00:00:00 2001 From: John Doty Date: Tue, 13 May 2025 19:46:27 +0000 Subject: [PATCH 5/5] [emacs] Keybindings for deadgrep --- .emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 757f073..88b316a 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1341,8 +1341,8 @@ Or, uh, Objective C, I guess." ;; ================================================================= ;; Deadgrep for searching ;; ================================================================= -(use-package deadgrep :ensure t) -;; TODO: AUTOLOADS HERE +(use-package deadgrep :ensure t + :bind ("C-c d" . deadgrep)) ;; ================================================================= ;; Terraform