dots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit db0df7ec0d923f86e4fd4492671636e9399c2d7d
parent fe2a7b2829690e7e116588fe70ff2bd4f5d05cd1
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date:   Mon,  2 Nov 2026 21:12:18 -0300

Guix.

Diffstat:
M.bashrc | 9++++++---
M.profile | 7++++---
Memacs/config.org | 8+++++---
3 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -134,9 +134,12 @@ if [[ "$INSIDE_EMACS" = 'vterm' ]] \ source ${EMACS_VTERM_PATH}/etc/emacs-vterm-bash.sh fi +if [ -d "$HOME/.guix-profile" ]; then + GUIX_PROFILE="/home/gabriel/.guix-profile" + . "$GUIX_PROFILE/etc/profile" + unset GUIX_PROFILE +fi + export GPG_TTY=$(tty) alias make='make -j$(nproc)' - -# Nix (single-user) -if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then . "$HOME/.nix-profile/etc/profile.d/nix.sh"; fi diff --git a/.profile b/.profile @@ -16,8 +16,9 @@ if [ -n "$BASH_VERSION" ]; then fi fi +export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale" +export GUIX_GTK3_PATH="$HOME/.guix-profile/lib/gtk-3.0${GUIX_GTK3_PATH:+:$GUIX_GTK3_PATH}" + +export XDG_DATA_DIRS="$HOME/.guix-profile/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" export PATH="$HOME/.local/bin:$HOME/go/bin:$HOME/usr/bin:$PATH" export EDITOR='emacs' - -if [ -e /home/gabriel/.nix-profile/etc/profile.d/nix.sh ]; then . /home/gabriel/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer -export XDG_DATA_DIRS="$HOME/.nix-profile/share:${XDG_DATA_DIRS:-/usr/local/share:/usr/share}" diff --git a/emacs/config.org b/emacs/config.org @@ -278,8 +278,8 @@ So the editor is a little less dumb. #+BEGIN_SRC emacs-lisp (use-package dumb-jump :custom (dumb-jump-prefer-searcher 'rg) - :bind (("<f2>" . xref-find-references-and-replace) - ("<f1>" . xref-find-references)) + :bind (("<f1>" . xref-find-definitions-other-window) + ("<f9>" . xref-find-references)) :hook (prog-mode . (lambda () (add-to-list 'xref-backend-functions @@ -291,13 +291,15 @@ Ripgrep is fast. Also, the package automatically configures ~wgrep~ for us and o #+BEGIN_SRC emacs-lisp (use-package rg - :bind (("<f7>" . rg)) + :bind (("<f7>" . rg) + ("<f8>" . rg-literal)) :config (rg-enable-default-bindings)) #+END_SRC *** Bindings #+BEGIN_SRC emacs-lisp +(global-set-key (kbd "<f2>") #'query-replace) (global-set-key (kbd "<f5>") #'compile) (global-set-key (kbd "<f6>") #'async-shell-command) #+END_SRC