You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thie things I had to do to get title bar to match theme
(defvarafter-load-theme-hooknil"Hook run after a color theme is loaded using `load-theme'.")
(defadviceload-theme (after run-after-load-theme-hook activate)
"Run `after-load-theme-hook'."
(run-hooks'after-load-theme-hook))
(defunmy-theme-config (theme)
"Apply custom configurations based on the loaded THEME."
(cond;; Configuration for `leuven` theme (light mode)
((eq theme 'leuven)
(set-frame-parameternil'ns-transparent-titlebart)
(set-frame-parameternil'ns-appearance'light))
;; Configuration for `gruber-darker` theme (dark mode)
((eq theme 'gruber-darker)
(set-frame-parameternil'ns-transparent-titlebart)
(set-frame-parameternil'ns-appearance'dark))))
;; set titlebar based on theme
(defuntitle-bar-hook ()
"Hook that runs after a theme is loaded."
(message"Loaded theme: %s" (car custom-enabled-themes))
(my-theme-config (car custom-enabled-themes)))
(add-hook'after-load-theme-hook'title-bar-hook)
(load-theme'gruber-darkert)
;; Set up before-save hooks to format buffer and add/delete imports.;; Make sure you don't have other gofmt/goimports hooks enabled.
(defunlsp-go-install-save-hooks ()
(add-hook'before-save-hook#'lsp-format-buffertt)
(add-hook'before-save-hook#'lsp-organize-importstt))
(add-hook'go-mode-hook#'lsp-go-install-save-hooks)
;; Get the GOPATH using the go env command
(let* ((gopath (string-trim (shell-command-to-string"go env GOPATH")))
(gobin (concat gopath "/bin")))
;; Add GOPATH/bin to exec-path
(add-to-list'exec-path gobin)
;; Add GOPATH/bin to the PATH environment variable
(setenv"PATH" (concat gobin path-separator (getenv"PATH"))))