From f7411d63487bbd7ef2930c134301b9d7485f2837 Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Mon, 4 Mar 2024 14:10:00 +1300 Subject: [PATCH] emacs: fix config --- .emacs.d/init.el | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 2f41390..06d5b63 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -13,8 +13,7 @@ ;; evil-mode (package-install 'evil) -(add-hook 'prog-mode 'evil-local-mode) -(add-hook 'text-mode 'evil-local-mode) +(evil-mode) ;; undo-tree (package-install 'undo-tree) (global-undo-tree-mode) @@ -150,13 +149,6 @@ (set-face-attribute 'font-lock-comment-face t :slant 'italic) (set-face-attribute 'font-lock-keyword-face t :slant 'italic) -(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. - '(package-selected-packages - '(rainbow-delimiters forge elcord nix-mode vterm breadcrumb nyan-mode simple-modeline catppuccin-theme which-key treesit-auto editorconfig diff-hl company vertico marginalia toc-org org-modern yaml-mode rainbow-mode markdown-mode lua-mode json-mode git-modes d-mode sudo-edit nerd-icons magit undo-tree evil))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -168,6 +160,13 @@ '(help-key-binding ((t (:inherit fixed-pitch :background "#181825" :foreground "#89b4fa" :box (:line-width (-1 . -1) :color "#11111b"))))) '(link ((t (:foreground "#89b4fa" :underline t)))) '(widget-field ((t (:extend t :background "#181825" :box (:line-width (1 . 1) :color "#11111b")))))) +(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. + '(package-selected-packages + '(breadcrumb nyan-mode simple-modeline catppuccin-theme magit which-key editorconfig diff-hl company vertico marginalia toc-org org-modern rainbow-delimiters rainbow-mode yaml-mode nix-mode markdown-mode lua-mode json-mode git-modes d-mode sudo-edit nerd-icons undo-tree evil))) ;; catppuccin theme (package-install 'catppuccin-theme)