Skip to content

Commit

Permalink
Some changes for golang and copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
tmonck committed Oct 18, 2024
1 parent 2ee85a3 commit 89b4f00
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 9 deletions.
15 changes: 15 additions & 0 deletions .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,21 @@ if command -v podman >/dev/null; then
alias docker=podman
fi

alias setup_go_tools='
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/x-motemen/gore/cmd/gore@latest
go install github.com/stamblerre/gocode@latest
go install golang.org/x/tools/cmd/godoc@latest
go install golang.org/x/tools/cmd/goimports@latest
go install golang.org/x/tools/cmd/gorename@latest
go install golang.org/x/tools/cmd/guru@latest
go install github.com/cweill/gotests/gotests@latest
go install github.com/fatih/gomodifytags@latest
go install golang.org/x/tools/gopls@latest
go install mvdan.cc/sh/v3/cmd/shfmt@latest
go install github.com/jjuliano/godef@latest
'

#### Work Specific
alias aws_lab='AWS_PROFILE=lab-us-east-1'
alias aws_sbx_use1='AWS_PROFILE=sandbox-us-east-1'
Expand Down
6 changes: 3 additions & 3 deletions .doom.d/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@
(org-level-6 . 1.1)
(org-level-7 . 1.1)
(org-level-8 . 1.1)))
(set-face-attribute (car face) nil :font "DejaVu Sans" :weight 'medium :height (cdr face)))
(set-face-attribute (car face) nil :weight 'medium :height (cdr face)))
;; Make the document title a bit bigger
(set-face-attribute 'org-document-title nil :font "DejaVu Sans" :weight 'bold :height 1.3)
(set-face-attribute 'org-document-title nil :weight 'bold :height 1.3)

;; Make sure certain org faces use the fixed-pitch face when variable-pitch-mode is on
(set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch)
Expand Down Expand Up @@ -167,7 +167,7 @@
:desc "Next journal entry" "n" #'org-journal-open-next-entry)
:desc "Search journal entry" "s" #'org-journal-search-entry)))

(let ((roamdir '"~/dsmonckcrazy/toms_files/roamNotes"))
(let ((roamdir '"~/org/roamNotes"))
(use-package! org-roam
:init
(setq org-roam-directory roamdir)
Expand Down
15 changes: 12 additions & 3 deletions .doom.d/custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@
;; 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.
'(custom-safe-themes
'("47db50ff66e35d3a440485357fb6acb767c100e135ccdf459060407f8baea7b2" default)
'(package-selected-packages '(rainbow-mode)))
;; '(org-agenda-files
;; '("/Users/tmonck/org/journal/Bob.org" "/Users/tmonck/org/journal/Bruno.org" "/Users/tmonck/org/journal/CoCoaching.org" "/Users/tmonck/org/journal/Marshall.org" "/Users/tmonck/org/journal/Robert.org" "/Users/tmonck/org/journal/TeamPlan.org" "/Users/tmonck/org/journal/Tom.org" "/Users/tmonck/org/roamNotes/journals/2022-06-29.org" "/Users/tmonck/org/roamNotes/journals/2022-10-11.org" "/Users/tmonck/org/roamNotes/20220426163404-onboarding.org" "/Users/tmonck/org/roamNotes/20220428111848-bwi_alex.org" "/Users/tmonck/org/roamNotes/20220502103832-ux_forge_byoidp.org" "/Users/tmonck/org/roamNotes/20220509100620-oneidentitydomainlanguage.org" "/Users/tmonck/org/roamNotes/20220516093627-archsummit.org" "/Users/tmonck/org/roamNotes/20220520144834-releasestuff.org" "/Users/tmonck/org/roamNotes/20220527143650-coaching.org" "/Users/tmonck/org/roamNotes/20220622085745-irisenv.org" "/Users/tmonck/org/roamNotes/20220706101345-firewall_maintenance_2022_07_17.org" "/Users/tmonck/org/roamNotes/20220707144716-sox_audit.org" "/Users/tmonck/org/roamNotes/20220715135521-samlstuff.org" "/Users/tmonck/org/roamNotes/20221010093035-leadershipfundamentals.org" "/Users/tmonck/org/roamNotes/20221014083853-authenticationvsauthorization.org" "/Users/tmonck/org/roamNotes/20221020080915-engineeringmeetingsharedlibs.org" "/Users/tmonck/org/roamNotes/20221021145509-mfa_rom.org" "/Users/tmonck/org/roamNotes/20221024153359-openapispecforuserendpoints.org" "/Users/tmonck/org/roamNotes/20221026112434-coachingwithnoel.org" "/Users/tmonck/org/journal/20221027.org")))
(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.
)
(custom-set-variables
;; custom-set-variables 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.
'(custom-safe-themes
'("88f7ee5594021c60a4a6a1c275614103de8c1435d6d08cc58882f920e0cec65e" "bf948e3f55a8cd1f420373410911d0a50be5a04a8886cabe8d8e471ad8fdba8e" "dfb1c8b5bfa040b042b4ef660d0aab48ef2e89ee719a1f24a4629a0c5ed769e8" "680f62b751481cc5b5b44aeab824e5683cf13792c006aeba1c25ce2d89826426" "badd1a5e20bd0c29f4fe863f3b480992c65ef1fa63951f59aa5d6b129a3f9c4c" "13096a9a6e75c7330c1bc500f30a8f4407bd618431c94aeab55c9855731a95e1" "014cb63097fc7dbda3edf53eb09802237961cbb4c9e9abd705f23b86511b0a69" "9013233028d9798f901e5e8efb31841c24c12444d3b6e92580080505d56fd392" "4b6cc3b60871e2f4f9a026a5c86df27905fb1b0e96277ff18a76a39ca53b82e1" "c1d5759fcb18b20fd95357dcd63ff90780283b14023422765d531330a3d3cec2" "10e5d4cc0f67ed5cafac0f4252093d2119ee8b8cb449e7053273453c1a1eb7cc" "ffafb0e9f63935183713b204c11d22225008559fa62133a69848835f4f4a758c" "8c7e832be864674c220f9a9361c851917a93f921fedb7717b1b5ece47690c098" "631c52620e2953e744f2b56d102eae503017047fb43d65ce028e88ef5846ea3b" "aec7b55f2a13307a55517fdf08438863d694550565dee23181d2ebd973ebd6b8" "da75eceab6bea9298e04ce5b4b07349f8c02da305734f7c0c8c6af7b5eaa9738" "8d3ef5ff6273f2a552152c7febc40eabca26bae05bd12bc85062e2dc224cde9a" "b1acc21dcb556407306eccd73f90eb7d69664380483b18496d9c5ccc5968ab43" "c517e98fa036a0c21af481aadd2bdd6f44495be3d4ac2ce9d69201fcb2578533" "8b148cf8154d34917dfc794b5d0fe65f21e9155977a36a5985f89c09a9669aa0" "dccf4a8f1aaf5f24d2ab63af1aa75fd9d535c83377f8e26380162e888be0c6a9" default))
'(grep-find-ignored-directories
'("SCCS" "RCS" "CVS" "MCVS" ".src" ".svn" ".git" ".hg" ".bzr" "_MTN" "_darcs" "{arch}" "venv" "node_modules" "venv.bak"))
'(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'"))
Empty file modified bin/promote-doom-lab
100644 → 100755
Empty file.
16 changes: 14 additions & 2 deletions doom.org
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
- [[#me][Me]]
- [[#customize-the-look-and-feel][Customize the look and feel]]
- [[#fonts][Fonts]]
- [[#icons][Icons]]
- [[#theme][Theme]]
- [[#fullscreen][Fullscreen]]
- [[#opacity][Opacity]]
Expand Down Expand Up @@ -62,6 +61,8 @@
- [[#yaml][yaml]]
- [[#workspaces-and-projects][Workspaces and Projects]]
- [[#github-copilot][Github Copilot]]
- [[#copilot-completion][Copilot Completion]]
- [[#copilot-chat][Copilot Chat]]

* Acknowledgements
As the dwarfs can see further on the shoulders of giants. I am where I am because of those who came before me. There is some pieces borrowed and other inspired from many sources. Here are a few of them, this is by no means a comprehensive list.
Expand Down Expand Up @@ -1164,6 +1165,7 @@ Workspaces are nice for isolating work and projects are extremely helpful for de
(setq workspaces-on-switch-project-behavior 't)
#+end_src
* Github Copilot
** Copilot Completion
#+begin_src emacs-lisp :tangle lab/packages.el
(package! copilot
:recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist")))
Expand All @@ -1174,8 +1176,18 @@ Workspaces are nice for isolating work and projects are extremely helpful for de
:hook (prog-mode . copilot-mode)
:bind (:map copilot-completion-map
("M-]" . 'copilot-next-completion)
("<t ab>" . 'copilot-accept-completion)
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word)))
#+end_src
** Copilot Chat

#+begin_src emacs-lisp :tangle lab/packages.el
(package! copilot
:recipe (:host github :repo "chep/copilot-chat.el" :files ("*.el")))
#+end_src

#+begin_src emacs-lisp
(use-package! copilot-chat)
#+end_src
4 changes: 3 additions & 1 deletion lab/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,9 @@
:hook (prog-mode . copilot-mode)
:bind (:map copilot-completion-map
("M-]" . 'copilot-next-completion)
("<t ab>" . 'copilot-accept-completion)
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word)))

(use-package! copilot-chat)
3 changes: 3 additions & 0 deletions lab/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@

(package! copilot
:recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist")))

(package! copilot
:recipe (:host github :repo "chep/copilot-chat.el" :files ("*.el")))

0 comments on commit 89b4f00

Please sign in to comment.