Updated dotfiles

This commit is contained in:
Jesper Saastamoinen 2026-03-27 08:42:06 +01:00
parent 84725344c9
commit 44518ce09b
2 changed files with 15 additions and 2 deletions

View file

@ -16,6 +16,17 @@
(global-set-key (kbd "C-c c") 'compile) (global-set-key (kbd "C-c c") 'compile)
(global-set-key (kbd "C-c e") 'open-init-file) (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 ;; Quick shortcuts for testing
(defun open-init-file () (defun open-init-file ()
@ -43,7 +54,6 @@
(setq split-width-threshold (1- (window-width))) (setq split-width-threshold (1- (window-width)))
;; ;;
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; 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. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; 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)))

3
.zshrc
View file

@ -114,3 +114,6 @@ source /home/jsaasta/.oh-my-zsh/custom/plugins/
# Add JBang to environment # Add JBang to environment
alias j!=jbang alias j!=jbang
export PATH="$HOME/.jbang/bin:$PATH" export PATH="$HOME/.jbang/bin:$PATH"
# Add go
export PATH=$PATH:/usr/local/go/bin