diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-08 17:16:29 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-08 17:16:29 -0500 |
| commit | a55a5248bd2dae5f849476d0f7b5dcd8d91cf929 (patch) | |
| tree | 834a7b012f6823b53ee2f516384b7bc4c4ec819b /modules/prog-go.el | |
| parent | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (diff) | |
fit and finish work
- gptel: added gptel-send-region with global keybinding
- projectile: made project-switch-actions more efficient with regexp
- prog-go: removed disabled code
- mu4e: capture template captures region if selected
- system utils: merged bury alive with other killing buffer code
- org-capture: renamed *website-clipper to org-webpage-clipper
- rg: auto switch to ripgrep-results window when ripgrep search completes
- dashboard: remove dashboard banner custom face
General
- moved abbrev_defs to assets
- removed gitmodules file
- updated packages
- fixed docstring and formatting throughout
Custom-Functions
- move cj/merge-list-to-list to custom-functions
- add remove leading trailing whitespace function
- corrected arrayify prompt
Font-Config
- added font point sizes in fontaine menu
- make default font point size 11
Python
- adding back python poetry support
- added cj/python-setup method
- merge python and python-mode configurations
(they are the same built-in package)
Show-Kill-Ring
- show-kill-ring displays in another read-only buffer
- show-kill-ring exits with q
Elfeed
- moved elfeed-feeds.org to assets
- removed Wired from elfeed feeds
- moved ElfeedDB to user-emacs-directory/.elfeed-db
- moved elfeed-dashboard.org to assets
Diffstat (limited to 'modules/prog-go.el')
| -rw-r--r-- | modules/prog-go.el | 52 |
1 files changed, 4 insertions, 48 deletions
diff --git a/modules/prog-go.el b/modules/prog-go.el index 617fceaa..70e1f832 100644 --- a/modules/prog-go.el +++ b/modules/prog-go.el @@ -5,6 +5,8 @@ ;;; Code: +;; ---------------------------------- Go Setup --------------------------------- +;; golang preferences (defun cj/go-setup () "My default code preferences for Golang." @@ -20,7 +22,8 @@ (electric-pair-mode t)) ;; match delimiters automatically (add-hook 'go-mode-hook 'cj/go-setup) -;;;; ---------------------------- Go Mode ---------------------------- +;; ---------------------------------- Go Mode ---------------------------------- +;; go mode configuration (use-package go-mode :bind (:map go-mode-map @@ -34,52 +37,5 @@ ;; go install golang.org/x/tools/cmd/goimports@latest (setq gofmt-command "goimports")) -;; (use-package go-mode -;; :config -;; (general-define-key -;; :keymaps 'go-mode-map -;; :states '(normal) -;; "K" #'godoc-at-point -;; "C-]" #'godef-jump) - -;; (general-define-key -;; :keymaps 'go-mode-map -;; :states '(normal) -;; :prefix mpereira/leader -;; "tt" #'go-test-current-test -;; "tT" #'go-test-current-file -;; "pt" #'go-test-current-project)) - -;; ------------- Configure Emacs To Find Go Project Root ------------- - -;; Note: This appears to interfere with tramp. Before re-enabling, this -;; should have a toggle and turned off when working in tramp. - -;; (require 'project) - -;; (defun project-find-go-module (dir) -;; (when-let ((root (locate-dominating-file dir "go.mod"))) -;; (cons 'go-module root))) - -;; (cl-defmethod project-root ((project (head go-module))) -;; (cdr project)) - -;; (add-hook 'project-find-functions #'project-find-go-module) - -;; -------------------- Enable Eglot Integrations -------------------- - -;; The depth of -10 places this before eglot's willSave notification, -;; so that that notification reports the actual contents that will be saved. -;; (defun eglot-format-buffer-on-save () -;; (add-hook 'before-save-hook #'eglot-format-buffer -10 t)) -;; (add-hook 'go-mode-hook #'eglot-format-buffer-on-save) - -;; -------------------- Configure Gopls Via Eglot -------------------- - -;; (setq-default eglot-workspace-configuration -;; '((:gopls . -;; ((staticcheck . t) -;; (matcher . "CaseSensitive"))))) - (provide 'prog-go) ;;; prog-go.el ends here |
