From c908d07abbcc1db243a2b465a1d805361d0fe45b Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Tue, 28 Jan 2025 23:23:27 +0100 Subject: [PATCH 1/2] Fix projectile --- .emacs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.emacs b/.emacs index 16e5d56..06a998c 100644 --- a/.emacs +++ b/.emacs @@ -3,7 +3,7 @@ ;; =========================== (require 'package) -;; Add MELPA, Org, and GNU package archives +;(setq package-check-signature nil); Add MELPA, Org, and GNU package archives (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("org" . "https://orgmode.org/elpa/") ("gnu" . "https://elpa.gnu.org/packages/"))) @@ -180,9 +180,9 @@ ;; Install and configure Projectile (use-package projectile :init - (projectile-mode +1) - :bind (:map projectile-mode-map - ("s-p" . projectile-command-map))) + (projectile-mode +1) + (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) +) ;; Install and bind Magit (use-package magit @@ -269,7 +269,7 @@ ;; If there is more than one, they won't work right. '(helm-minibuffer-history-key "M-p") '(package-selected-packages - '(lsp-pyright zenburn-theme which-key solarized-theme rust-mode projectile poetry magit lsp-ui lsp-treemacs kotlin-mode helm flycheck evil-collection dracula-theme company better-defaults))) + '(lsp-mode lsp-pyright zenburn-theme which-key solarized-theme rust-mode projectile poetry magit lsp-ui lsp-treemacs kotlin-mode helm flycheck evil-collection dracula-theme company better-defaults))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. From f8612bc44e4d42ba2e5a3ee2c1df39ebae4fc42a Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Tue, 28 Jan 2025 23:39:08 +0100 Subject: [PATCH 2/2] Projectile --- .emacs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.emacs b/.emacs index 06a998c..6aa3a5d 100644 --- a/.emacs +++ b/.emacs @@ -102,6 +102,15 @@ ;; UI Customizations ;; =========================== +;; Revert buffers when the underlying file has changed +(global-auto-revert-mode 1) + +;; Electric Pair Mode - Completes parentheses, quotes, etc. +(electric-pair-mode 1) + +;; Replace yes-no prompts with y-n +(defalias 'yes-or-no-p 'y-or-n-p) + ;; Disable unnecessary UI elements (tool-bar-mode -1) ;; Hide the toolbar (menu-bar-mode -1) ;; Hide the menu bar @@ -139,6 +148,7 @@ (add-to-list 'exec-path "/opt/homebrew/bin") ) + ;; =========================== ;; Evil Mode Configuration ;; =========================== @@ -179,9 +189,10 @@ ;; Install and configure Projectile (use-package projectile - :init + :config (projectile-mode +1) (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) + (setq projectile-project-search-path '("~/Documents/Code/")) ) ;; Install and bind Magit