From 8c2d5571718056ce19ccfe4b9c8f5c3cd71d6af4 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Thu, 7 Nov 2024 10:45:09 -0500 Subject: Updated Emacs Config --- .emacs.d/init.el | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1bf3490..ba51831 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,46 +1,35 @@ (add-to-list 'custom-theme-load-path "~/.emacs.d/themes") (load-theme 'naysayer 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. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(display-line-numbers-type 'relative) - '(indent-tabs-mode t) - '(indent-tabs-mode-hook nil) - '(package-selected-packages '(evil)) - '(standard-indent 4) - '(tool-bar-mode nil) - '(tool-bar-style nil)) -(custom-set-faces - ;; custom-set-faces 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. - ) ;; window (add-to-list 'default-frame-alist '(ns-transparent-titlebar . t)) (add-to-list 'default-frame-alist '(ns-appearance . dark)) +(add-to-list 'default-frame-alist (cons 'width 120)) +(add-to-list 'default-frame-alist (cons 'height 200)) +(tool-bar-mode -1) ;; Prevent Extraneous Tabs (setq-default indent-tabs-mode t) +(setq-default tab-width 4) +(defvaralias 'c-basic-offset 'tab-width) ;; Relative Line Numbers (display-line-numbers-mode) -(setq display-line-numbers 'relative) +(setq-default display-line-numbers 'relative) ;; Set up package.el to work with MELPA (require 'package) (add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) + '("melpa" . "https://melpa.org/packages/")) (package-initialize) -(package-refresh-contents) +(unless package-archive-contents + (package-refresh-contents)) ;; Download Evil (unless (package-installed-p 'evil) - (package-install 'evil)) + (package-install 'evil)) ;; Enable Evil (require 'evil) (evil-mode 1) + -- cgit v1.2.3