From 44518ce09bcbe5f2d8caf0ac3fd3e65d06a21f94 Mon Sep 17 00:00:00 2001 From: Jesper Saastamoinen Date: Fri, 27 Mar 2026 08:42:06 +0100 Subject: [PATCH] Updated dotfiles --- .emacs.el | 14 ++++++++++++-- .zshrc | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.emacs.el b/.emacs.el index 194dac3..7a72f55 100644 --- a/.emacs.el +++ b/.emacs.el @@ -16,6 +16,17 @@ (global-set-key (kbd "C-c c") 'compile) (global-set-key (kbd "C-c e") 'open-init-file) +(defun duplicate-line() + (interactive) + (move-beginning-of-line 1) + (kill-line) + (yank) + (open-line 1) + (next-line 1) + (yank) +) +(global-set-key (kbd "C-d") 'duplicate-line) + ;; Quick shortcuts for testing (defun open-init-file () @@ -43,7 +54,6 @@ (setq split-width-threshold (1- (window-width))) ;; - (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -56,4 +66,4 @@ ;; 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. - '(package-selected-packages '(dracula-theme eglot eglot-inactive-regions))) + '(package-selected-packages '(dracula-theme eglot eglot-inactive-regions magit))) diff --git a/.zshrc b/.zshrc index 4802904..92fc8e3 100644 --- a/.zshrc +++ b/.zshrc @@ -114,3 +114,6 @@ source /home/jsaasta/.oh-my-zsh/custom/plugins/ # Add JBang to environment alias j!=jbang export PATH="$HOME/.jbang/bin:$PATH" + +# Add go +export PATH=$PATH:/usr/local/go/bin