Added Go and more improvements to doom emacs

This commit is contained in:
Roger Gonzalez 2023-08-08 09:30:11 -03:00
parent f6370db787
commit 3db3e6f585
Signed by: rogs
GPG Key ID: C7ECE9C6C36EC2E6
4 changed files with 32 additions and 18 deletions

View File

@ -31,22 +31,22 @@
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light) ;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13)) ;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
;; (setq doom-font (font-spec :family "Mononoki Nerd Font" :size 14) (setq doom-font (font-spec :family "Mononoki Nerd Font" :size 14)
;; doom-variable-pitch-font (font-spec :family "sans") doom-variable-pitch-font (font-spec :family "sans")
;; doom-big-font (font-spec :family "Mononoki Nerd Font" :size 24)) doom-big-font (font-spec :family "Mononoki Nerd Font" :size 24))
;;(setq doom-font (font-spec :family "MesloLGS NF" :size 14) (setq doom-font (font-spec :family "MesloLGS NF" :size 14)
;;doom-variable-pitch-font (font-spec :family "sans") doom-variable-pitch-font (font-spec :family "sans")
;;doom-big-font (font-spec :family "MesloLGS NF" :size 24)) doom-big-font (font-spec :family "MesloLGS NF" :size 24))
;; There are two ways to load a theme. Both assume the theme is installed and ;; There are two ways to load a theme. Both assume the theme is installed and
;; available. You can either set `doom-theme' or manually load a theme with the ;; available. You can either set `doom-theme' or manually load a theme with the
;; `load-theme' function. This is the default: ;; `load-theme' function. This is the default:
;;(after! doom-themes (after! doom-themes
;;(setq doom-themes-enable-bold t (setq doom-themes-enable-bold t
;;doom-themes-enable-italic t)) doom-themes-enable-italic t))
;;(custom-set-faces! (custom-set-faces!
;;'(font-lock-comment-face :slant italic) '(font-lock-comment-face :slant italic)
;;'(font-lock-keyword-face :slant italic)) '(font-lock-keyword-face :slant italic))
(setq doom-theme 'doom-badger) (setq doom-theme 'doom-badger)
;; If you use `org' and don't want your org files in the default location below, ;; If you use `org' and don't want your org files in the default location below,
@ -341,7 +341,10 @@ text and copying to the killring."
;; Save all org buffers on each save ;; Save all org buffers on each save
(add-hook 'auto-save-hook 'org-save-all-org-buffers) (add-hook 'auto-save-hook 'org-save-all-org-buffers)
(add-hook 'after-save-hook 'org-save-all-org-buffers)) (add-hook 'after-save-hook 'org-save-all-org-buffers)
;; Enable Org Modern
(with-eval-after-load 'org (global-org-modern-mode)))
;; My own menu ;; My own menu
(map! :leader (map! :leader
@ -426,6 +429,7 @@ text and copying to the killring."
(after! groovy-mode (after! groovy-mode
(define-key groovy-mode-map (kbd "<f4>") 'my/jenkins-verify)) (define-key groovy-mode-map (kbd "<f4>") 'my/jenkins-verify))
;; Git
(setq forge-alist '(("github.com-underarmour" "api.github.com" "github.com" forge-github-repository) (setq forge-alist '(("github.com-underarmour" "api.github.com" "github.com" forge-github-repository)
("github.com" "api.github.com" "github.com" forge-github-repository) ("github.com" "api.github.com" "github.com" forge-github-repository)
("gitlab.com" "gitlab.com/api/v4" "gitlab.com" forge-gitlab-repository) ("gitlab.com" "gitlab.com/api/v4" "gitlab.com" forge-gitlab-repository)
@ -441,14 +445,17 @@ text and copying to the killring."
("git.suckless.org" nil "git.suckless.org" forge-stagit-repository) ("git.suckless.org" nil "git.suckless.org" forge-stagit-repository)
("git.sr.ht" nil "git.sr.ht" forge-srht-repository))) ("git.sr.ht" nil "git.sr.ht" forge-srht-repository)))
;;;; Use delta instead of the default diff
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))
;; Misc ;; Misc
(beacon-mode t) (beacon-mode t)
;; ChatGPT ;; ChatGPT
(setq chatgpt-shell-chatgpt-model-version "gpt-3.5-turbo") (setq chatgpt-shell-model-version "gpt-4")
(setq chatgpt-shell-chatgpt-streaming "t") (setq chatgpt-shell-streaming "t")
(setq chatgpt-shell-chatgpt-system-prompt "You are a senior Python developer in charge of maintaining a very big application") (setq chatgpt-shell-system-prompt "You are a senior Python developer in charge of maintaining a very big application")
;; Github Copilot ;; Github Copilot
;; accept completion from copilot and fallback to company ;; accept completion from copilot and fallback to company
@ -472,3 +479,7 @@ text and copying to the killring."
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode)) (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(setq org-babel-default-header-args:plantuml (setq org-babel-default-header-args:plantuml
'((:results . "verbatim") (:exports . "results") (:cache . "no"))) '((:results . "verbatim") (:exports . "results") (:cache . "no")))
;; Go
(setq lsp-go-analyses '((shadow . t)
(simplifycompositelit . :json-false)))

View File

@ -135,7 +135,7 @@
;;fsharp ; ML stands for Microsoft's Language ;;fsharp ; ML stands for Microsoft's Language
;;fstar ; (dependent) types and (monadic) effects and Z3 ;;fstar ; (dependent) types and (monadic) effects and Z3
;;gdscript ; the language you waited for ;;gdscript ; the language you waited for
;;(go +lsp) ; the hipster dialect (go +lsp) ; the hipster dialect
;;(graphql +lsp) ; Give queries a REST ;;(graphql +lsp) ; Give queries a REST
;;(haskell +lsp) ; a language that's lazier than I am ;;(haskell +lsp) ; a language that's lazier than I am
;;hy ; readability of scheme w/ speed of python ;;hy ; readability of scheme w/ speed of python

View File

@ -69,3 +69,5 @@
(package! ob-chatgpt-shell) (package! ob-chatgpt-shell)
(package! dall-e-shell) (package! dall-e-shell)
(package! ob-dall-e-shell) (package! ob-dall-e-shell)
(package! magit-delta)
(package! org-modern)

View File

@ -230,7 +230,8 @@ bindsym --release Ctrl+Shift+F11 exec ksnip -r -p "/tmp/image.png"
# Shortcuts # Shortcuts
bindsym $aux+g exec loffice ~/Documents/Gastos/Gastos.ods bindsym $aux+g exec loffice ~/Documents/Gastos/Gastos\ USD.ods
bindsym $aux+u exec loffice ~/Documents/Gastos/Gastos\ UYU.ods
bindsym $aux+b exec loffice ~/Documents/Gastos/BTC.ods bindsym $aux+b exec loffice ~/Documents/Gastos/BTC.ods
bindsym $aux+l exec lollypop bindsym $aux+l exec lollypop