From 8fb594241d34674f396f53c07a07b73492db2c69 Mon Sep 17 00:00:00 2001 From: Gabriel Simmer Date: Tue, 1 Nov 2022 11:50:57 +0000 Subject: [PATCH] Update init.el --- .emacs.d/init.el | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index f90342d..aad9b6b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -13,6 +13,8 @@ org-src-tab-acts-natively t org-src-preserve-indentation t) +(setq-default tab-width 4) + ;; stupid hacks (global-set-key (kbd "C-c y") 'clipboard-yank) (global-set-key (kbd "C-c x") 'kill-ring-save) @@ -57,11 +59,13 @@ (use-package projectile :straight t :init (projectile-mode +1) - :config (setq projectile-project-search-path '("~/projects")) + :config (setq projectile-project-search-path '("~/Projects")) :bind (:map projectile-mode-map ("s-p" . projectile-command-map) ("C-c p" . projectile-command-map))) +(use-package magit :straight t) + (use-package treemacs :straight t :init (with-eval-after-load 'winum @@ -79,8 +83,27 @@ (when (and (eq system-type 'gnu/linux) (getenv "WSLENV")) (use-package exec-path-from-shell :straight t) - (exec-path-from-shell-initialize) -) + (exec-path-from-shell-initialize)) + +;; Direnv integration +(use-package direnv :straight t) +(direnv-mode) + +;; Fancy tabs +(use-package centaur-tabs :straight t + :config + (setq centaur-tabs-style "bar" + centaur-tabs-height 32 + centaur-tabs-set-icons t + centaur-tabs-set-modified-marker t + centaur-tabs-show-navigation-buttons t + centaur-tabs-set-bar 'under + x-underline-at-descent-line t) + (centaur-tabs-headline-match) + (setq uniquify-separator "/") + (setq uniquify-buffer-name-style 'forward) + :bind ("C-" . centaur-tabs-backward) + ("C-" . centaur-tabs-forward)) ;; lsp-mode stuff (use-package eglot :straight t @@ -93,6 +116,8 @@ (use-package go-mode :straight t) (use-package nix-mode :straight t :mode "\\.nix\\'") +(use-package yaml-mode :straight t) +(use-package terraform-mode :straight t) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.