diff --git a/.emacs b/.emacs index 71c327e..766009a 100644 --- a/.emacs +++ b/.emacs @@ -3,7 +3,7 @@ ;; =========================== (require 'package) -;(setq package-check-signature nil); Add MELPA, Org, and GNU package archives +;; 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/"))) @@ -101,13 +101,7 @@ ;; 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 +;; Replace yes-no prompts to y-n (defalias 'yes-or-no-p 'y-or-n-p) ;; Disable unnecessary UI elements @@ -122,6 +116,20 @@ ;; Enable visual line mode globally (global-visual-line-mode 1) +;; Disable line numbers for some modes +(dolist (mode '(dired-mode-hook + doc-view-mode-hook + eshell-mode-hook + comint-mode-hook + inferior-python-mode-hook + org-mode-hook + shell-mode-hook + term-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) + +;; Complete parentheses, quotes, etc +(electric-pair-mode 1) + ;; Set Default Font to Iosevka 18pt ;;(set-face-attribute 'default nil :family "Iosevka" :height 150) ;; Set font @@ -155,7 +163,6 @@ (add-to-list 'exec-path "/opt/homebrew/bin") ) - ;; =========================== ;; Evil Mode Configuration ;; =========================== @@ -196,11 +203,10 @@ ;; Install and configure Projectile (use-package projectile - :config - (projectile-mode +1) - (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) - (setq projectile-project-search-path '("~/Documents/Code/")) -) + :init + (projectile-mode +1) + :bind (:map projectile-mode-map + ("s-p" . projectile-command-map))) ;; Install and bind Magit (use-package magit @@ -211,6 +217,10 @@ :config (which-key-mode)) +(use-package rainbow-delimiters + :ensure t + :hook (prog-mode . rainbow-delimiters-mode)) + ;; =========================== ;; LSP Configuration ;; =========================== @@ -287,7 +297,7 @@ ;; If there is more than one, they won't work right. '(helm-minibuffer-history-key "M-p") '(package-selected-packages - '(catppuccin-theme 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))) + '(rainbow-delimiters rainbow-delimiter catppuccin-theme 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.