From 21e43b4f4f4915559759aa26f0a23fe7708ec358 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Tue, 25 Oct 2022 09:32:28 +0100 Subject: [PATCH] Emacs tweaks --- .emacs.d/init.el | 35 +++++++++++++++++++++++++++++++++++ .zshrc | 4 ++++ 2 files changed, 39 insertions(+) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c3eafac..f90342d 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -91,3 +91,38 @@ (setq company-idle-delay 0) (setq company-minimum-prefix-length 1)) (use-package go-mode :straight t) +(use-package nix-mode :straight t + :mode "\\.nix\\'") +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(safe-local-variable-values + '((eval modify-syntax-entry 43 "'") + (eval modify-syntax-entry 36 "'") + (eval modify-syntax-entry 126 "'") + (eval let + ((root-dir-unexpanded + (locate-dominating-file default-directory ".dir-locals.el"))) + (when root-dir-unexpanded + (let* + ((root-dir + (expand-file-name root-dir-unexpanded)) + (root-dir* + (directory-file-name root-dir))) + (unless + (boundp 'geiser-guile-load-path) + (defvar geiser-guile-load-path 'nil)) + (make-local-variable 'geiser-guile-load-path) + (require 'cl-lib) + (cl-pushnew root-dir* geiser-guile-load-path :test #'string-equal)))) + (eval setq-local guix-directory + (locate-dominating-file default-directory ".dir-locals.el")))) + '(warning-suppress-log-types '((comp)))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/.zshrc b/.zshrc index ed79bdd..8c28845 100644 --- a/.zshrc +++ b/.zshrc @@ -24,6 +24,10 @@ if [ $(which rg) != 'rg not found' ]; then alias grep=rg fi +export GOROOT=/usr/local/go +export PATH=$PATH:$GOROOT/bin +export GOPATH=$HOME/projects/go + export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion