Compare commits

...

2 Commits

Author SHA1 Message Date
0875ee822d fix: changed domains need to change url 2025-02-12 08:31:34 -03:00
d9c3650e4a feat: add copilot and magit to emacs
trying out copilot, hopefully it's gonna surprise me
2025-02-12 08:31:34 -03:00
7 changed files with 39 additions and 7 deletions

View File

@ -16,7 +16,7 @@ import = ["~/.config/alacritty/black.toml"]
[window]
opacity = 0.93
opacity = 1
padding.x = 10
# padding.y = 10
decorations = "Full"

View File

@ -169,3 +169,31 @@
(map! :leader
:desc "Search by grep" ; This description shows in which-key popups
"r g" #'consult-ripgrep)
;; accept completion from copilot and fallback to company
(use-package! copilot
:hook (prog-mode . copilot-mode)
:bind (:map copilot-completion-map
("<tab>" . 'copilot-accept-completion)
("TAB" . 'copilot-accept-completion)
("C-TAB" . 'copilot-accept-completion-by-word)
("C-<tab>" . 'copilot-accept-completion-by-word))
:config
(add-to-list 'copilot-indentation-alist '(prog-mode 2))
(add-to-list 'copilot-indentation-alist '(org-mode 2))
(add-to-list 'copilot-indentation-alist '(text-mode 2))
(add-to-list 'copilot-indentation-alist '(closure-mode 2))
(add-to-list 'copilot-indentation-alist '(emacs-lisp-mode 2)))
(after! (evil copilot)
;; Define the custom function that either accepts the completion or does the default behavior
(defun my/copilot-tab-or-default ()
(interactive)
(if (and (bound-and-true-p copilot-mode)
;; Add any other conditions to check for active copilot suggestions if necessary
)
(copilot-accept-completion)
(evil-insert 1))) ; Default action to insert a tab. Adjust as needed.
;; Bind the custom function to <tab> in Evil's insert state
(evil-define-key 'insert 'global (kbd "<tab>") 'my/copilot-tab-or-default))

View File

@ -97,7 +97,7 @@
(eval +overlay) ; run code, run (also, repls)
lookup ; navigate your code and its documentation
lsp ; M-x vscode
;;magit ; a git porcelain for Emacs
magit ; a git porcelain for Emacs
make ; run make tasks from Emacs
;;pass ; password manager for nerds
pdf ; pdf enhancements

View File

@ -48,3 +48,6 @@
;; (unpin! pinned-package another-pinned-package)
;; ...Or *all* packages (NOT RECOMMENDED; will likely break things)
;; (unpin! t)
(package! copilot
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))

View File

@ -1,6 +1,7 @@
bass source /etc/profile
fish_add_path "$HOME/.local/bin"
fish_add_path "$HOME/.cargo/bin"
fish_add_path "$HOME/go/bin"
source "$HOME/.cargo/env.fish"
set -gx EDITOR "nvim"
@ -33,7 +34,7 @@ if status is-interactive
alias protontricks='flatpak run com.github.Matoking.protontricks'
alias protontricks-launch='flatpak run --command=protontricks-launch com.github.Matoking.protontricks'
alias generate_token="curl -u jabuxas https://paste.jabuxas.xyz | wl-copy"
alias generate_token="curl -u jabuxas https://paste.jabuxas.com | wl-copy"
end
function pst
@ -55,7 +56,7 @@ function pst
set file "$argv[1]"
end
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
curl -F "file=@$file" -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.com
if command test -p /dev/stdin
rm "$file"
@ -90,7 +91,7 @@ function pstf
set file "$argv[1]"
end
curl -F "file=@$file" -Fsecret= -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.xyz
curl -F "file=@$file" -Fsecret= -H "X-Auth: $(cat ~/.key)" https://paste.jabuxas.com
if command test -p /dev/stdin
rm "$file"

View File

@ -40,4 +40,4 @@ SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dbrblack
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_user_paths:/yang/\x2emillennium/ext/bin\x1e/yang/\x2ecargo/bin\x1e/yang/\x2elocal/bin
SETUVAR fish_user_paths:/yang/go/bin\x1e/yang/\x2emillennium/ext/bin\x1e/yang/\x2ecargo/bin\x1e/yang/\x2elocal/bin

View File

@ -3,7 +3,7 @@ exec {
gsettings set $gnome-schema gtk-theme "Material-Black-Blueberry-LA"
gsettings set $gnome-schema icon-theme "We10X-black-dark"
gsettings set $gnome-schema cursor-theme 'Simp1e'
gsettings set $gnome-schema font-name 'Terminess Nerd Font 12'
gsettings set $gnome-schema font-name 'CartographCF Nerd Font 12'
xrandr --output HDMI-A-1 --primary
waybar -c ~/.config/waybar/config.jsonc &
autotiling &