diff --git a/.emacs.d/functions.el b/.emacs.d/functions.el index 86392d6..234ca29 100644 --- a/.emacs.d/functions.el +++ b/.emacs.d/functions.el @@ -2,6 +2,7 @@ "My custom configuration for 'org-mode'." (olivetti-mode) (olivetti-set-width 80) + (company-mode -1) (setq cursor-type 'bar) ) (add-hook 'org-mode-hook 'me/org-mode) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1fed1f9..08b5898 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -3,7 +3,8 @@ (setq auto-save-default nil) (setq make-backup-files nil) (cond ((find-font (font-spec :name "Jetbrains Mono")) - (set-face-attribute 'default nil :font "Jetbrains Mono" :height 120))) + (set-face-attribute 'default nil :font "Jetbrains Mono" :height 120) + (add-to-list 'default-frame-alist '(font . "Jetbrains Mono-14")))) (global-set-key (kbd "") 'keyboard-escape-quit) (scroll-bar-mode -1) (tool-bar-mode -1) @@ -14,7 +15,7 @@ (pixel-scroll-precision-mode t) (setq create-lockfiles nil) -(load-theme 'modus-vivendi) +(load-theme 'modus-vivendi-tinted) (setq org-edit-src-content-indentation 0 org-src-tab-acts-natively t @@ -66,7 +67,15 @@ :bind (:map projectile-mode-map ("s-p" . projectile-command-map) ("C-c p" . projectile-command-map))) - +(use-package perspective + :straight t + :bind ("C-x C-b") + :custom (persp-mode-prefix-key (kbd "C-c C-p")) + :init (persp-mode) + :config + (setq persp-state-default-file "~/.emacs.d/.persp.el") + (add-hook 'kill-emacs-hook #'persp-state-save) + (add-hook 'emacs-startup-hook #'persp-state-load)) (use-package magit :straight t) (use-package hide-mode-line :straight t) (add-hook 'org-mode-hook #'hide-mode-line-mode) diff --git a/.emacs.d/kustomize.el b/.emacs.d/kustomize.el index acdffc8..6d780d0 100644 --- a/.emacs.d/kustomize.el +++ b/.emacs.d/kustomize.el @@ -18,7 +18,8 @@ (display-buffer buff '(display-buffer-in-side-window . ((side . right)))) (with-current-buffer buff - (insert (format "%s" (render-kustomize path))) + (erase-buffer) + (insert (render-kustomize path)) (if (fboundp 'k8s-mode) (k8s-mode) (yaml-mode))))) (global-set-key (kbd "C-c k") 'kustomize)