small tweaks and updates
This commit is contained in:
12
custom.el
12
custom.el
@@ -7,12 +7,12 @@
|
|||||||
'(apheleia-log-only-errors nil)
|
'(apheleia-log-only-errors nil)
|
||||||
'(custom-enabled-themes '(deeper-blue))
|
'(custom-enabled-themes '(deeper-blue))
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(apheleia cape dart-mode diminish dotenv-mode dumber-jump embark evil
|
'(apheleia cape dart-mode diminish dotenv-mode duckdb-query
|
||||||
evil-collection evil-surround exec-path-from-shell
|
dumber-jump embark evil evil-collection evil-surround
|
||||||
fish-mode forge ghostel jai-mode magit marginalia mise
|
exec-path-from-shell fish-mode forge ghostel jai-mode
|
||||||
move-text multiple-cursors org-roam pgmacs
|
magit marginalia mise move-text multiple-cursors
|
||||||
terraform-mode undo-tree yaml-mode yasnippet
|
org-roam pgmacs pi-coding-agent terraform-mode undo-tree
|
||||||
yasnippet-snippets))
|
yaml-mode yasnippet yasnippet-snippets))
|
||||||
'(package-vc-selected-packages
|
'(package-vc-selected-packages
|
||||||
'((pgmacs :url "https://github.com/emarsden/pgmacs.git")
|
'((pgmacs :url "https://github.com/emarsden/pgmacs.git")
|
||||||
(jai-mode :url "https://github.com/valignatev/jai-mode.git"))))
|
(jai-mode :url "https://github.com/valignatev/jai-mode.git"))))
|
||||||
|
|||||||
47
init.el
47
init.el
@@ -50,7 +50,8 @@
|
|||||||
duplicate-line-final-position -1
|
duplicate-line-final-position -1
|
||||||
duplicate-region-final-position -1
|
duplicate-region-final-position -1
|
||||||
competions-detailed t
|
competions-detailed t
|
||||||
auth-sources '("~/.authinfo"))
|
auth-sources '("~/.authinfo")
|
||||||
|
tab-bar-show 1)
|
||||||
|
|
||||||
(require 'project)
|
(require 'project)
|
||||||
(setq project-switch-commands '((project-find-file "Find file" "f")
|
(setq project-switch-commands '((project-find-file "Find file" "f")
|
||||||
@@ -61,9 +62,10 @@
|
|||||||
|
|
||||||
(define-key project-prefix-map "u" #'hgh/update-projects)
|
(define-key project-prefix-map "u" #'hgh/update-projects)
|
||||||
|
|
||||||
(when (file-directory-p (hgh/emacs-directory "work"))
|
(let ((work-dir (expand-file-name "work" user-emacs-directory)))
|
||||||
(load-file (hgh/emacs-directory "work/work.el"))
|
(when (file-directory-p work-dir)
|
||||||
(add-to-list 'load-path (hgh/emacs-directory "work")))
|
(add-to-list 'load-path work-dir)
|
||||||
|
(load-file (expand-file-name "work.el" work-dir))))
|
||||||
|
|
||||||
(load-file (hgh/emacs-directory "utils.el"))
|
(load-file (hgh/emacs-directory "utils.el"))
|
||||||
|
|
||||||
@@ -100,9 +102,30 @@
|
|||||||
(setq use-package-always-ensure t)
|
(setq use-package-always-ensure t)
|
||||||
|
|
||||||
(use-package exec-path-from-shell
|
(use-package exec-path-from-shell
|
||||||
|
:demand t
|
||||||
:custom
|
:custom
|
||||||
(exec-path-from-shell-variables '("PATH" "MANPATH" "AWS_ACCESS_KEY_ID" "AWS_SECRET_ACCESS_KEY" "AWS_SESSION_TOKEN"))
|
(exec-path-from-shell-shell-name "/opt/homebrew/bin/fish")
|
||||||
:demand t)
|
(exec-path-from-shell-arguments '("-l"))
|
||||||
|
(exec-path-from-shell-variables
|
||||||
|
'("PATH"
|
||||||
|
"MANPATH"
|
||||||
|
"SHELL"
|
||||||
|
"EDITOR"
|
||||||
|
"NPM_TOKEN"
|
||||||
|
"GITHUB_COPILOT_TOKEN"
|
||||||
|
"NEW_RELIC_TOKEN"
|
||||||
|
"NEW_RELIC_ACCOUNT_NUMER"
|
||||||
|
"JIRA_TOKEN"
|
||||||
|
"JIRA_BASE_URL"
|
||||||
|
"AGENT_BROWSER_SKILLS_DIR"
|
||||||
|
"MIXPANEL_SERVICE_ACCOUNT_USERNAME"
|
||||||
|
"MIXPANEL_SERVICE_ACCOUNT_PASSWORD"
|
||||||
|
"GMAIL_MCP_CLIENT_ID"
|
||||||
|
"GMAIL_MCP_CLIENT_SECRET"
|
||||||
|
"ANDROID_HOME"
|
||||||
|
"AWS_ACCESS_KEY_ID"
|
||||||
|
"AWS_SECRET_ACCESS_KEY"
|
||||||
|
"AWS_SESSION_TOKEN")))
|
||||||
|
|
||||||
(exec-path-from-shell-initialize)
|
(exec-path-from-shell-initialize)
|
||||||
|
|
||||||
@@ -147,9 +170,11 @@
|
|||||||
(evil-global-set-key 'normal (kbd "<leader>gg") #'magit)
|
(evil-global-set-key 'normal (kbd "<leader>gg") #'magit)
|
||||||
(evil-global-set-key 'normal (kbd "<leader>rw") #'hgh/dired-this-directory)
|
(evil-global-set-key 'normal (kbd "<leader>rw") #'hgh/dired-this-directory)
|
||||||
(evil-global-set-key 'normal (kbd "<leader>h") #'help-command)
|
(evil-global-set-key 'normal (kbd "<leader>h") #'help-command)
|
||||||
|
(evil-global-set-key 'normal (kbd "M-y") #'yank-pop)
|
||||||
|
|
||||||
(evil-global-set-key 'normal (kbd "<leader>w") evil-window-map)
|
(evil-global-set-key 'normal (kbd "<leader>w") evil-window-map)
|
||||||
(evil-global-set-key 'normal (kbd "<leader>p") project-prefix-map)
|
(evil-global-set-key 'normal (kbd "<leader>p") project-prefix-map)
|
||||||
|
(evil-global-set-key 'normal (kbd "<leader>t") tab-prefix-map)
|
||||||
(evil-global-set-key 'visual (kbd "TAB") #'indent-region)
|
(evil-global-set-key 'visual (kbd "TAB") #'indent-region)
|
||||||
(evil-global-set-key 'normal (kbd "]d") #'flymake-goto-next-error)
|
(evil-global-set-key 'normal (kbd "]d") #'flymake-goto-next-error)
|
||||||
(evil-global-set-key 'normal (kbd "[d") #'flymake-goto-prev-error)
|
(evil-global-set-key 'normal (kbd "[d") #'flymake-goto-prev-error)
|
||||||
@@ -370,3 +395,13 @@
|
|||||||
'("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*"
|
'("\\`\\*Embark Collect \\(Live\\|Completions\\)\\*"
|
||||||
nil
|
nil
|
||||||
(window-parameters (mode-line-format . none)))))
|
(window-parameters (mode-line-format . none)))))
|
||||||
|
|
||||||
|
(use-package pi-coding-agent)
|
||||||
|
|
||||||
|
(defun hgh/pi-coding-agent-new-tab ()
|
||||||
|
"Start or focus pi-coding-agent in a new tab for the current project."
|
||||||
|
(interactive)
|
||||||
|
(let ((directory (pi-coding-agent--session-directory)))
|
||||||
|
(tab-bar-new-tab)
|
||||||
|
(let ((default-directory directory))
|
||||||
|
(pi-coding-agent))))
|
||||||
|
|||||||
Reference in New Issue
Block a user