From afca3427467a9dbe018b85ee871fc7b33f99cdb7 Mon Sep 17 00:00:00 2001 From: Niclas Hofmann Date: Wed, 1 Mar 2023 14:17:21 +0100 Subject: [PATCH] emacs: slime, github theme, restructuring --- .emacs.d/init.el | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index d79fbe6..8cf0eae 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,3 +1,4 @@ +;;; Package Management (setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/"))) @@ -7,40 +8,44 @@ (package-refresh-contents) (setq my-packages - '(fill-column-indicator - go-mode + '(go-mode gruvbox-theme + github-theme org org-bullets - paper-theme)) + paper-theme + slime)) (dolist (pkg my-packages) (unless (package-installed-p pkg) (package-install pkg))) -(setq gofmt-command "/home/niclas/bin/goimports") - -(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) -(add-hook 'before-save-hook 'gofmt-before-save) - (setq custom-file null-device) +;;; General Appearence (menu-bar-mode -1) (scroll-bar-mode -1) (tool-bar-mode -1) -(set-default-font "JetBrains Mono 14" nil t) +(set-face-attribute 'default nil + :family "JetBrains Mono" + :height 140) (setq inhibit-startup-screen t) (setq fill-column 80) (setq make-backup-files nil) -(require 'fill-column-indicator) -(setq fci-rule-column 80) -(setq fci-rule-color "red") +;;; Hooks +(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))) +;;; C (setq c-default-style "linux") +;;; Lisp +(setq inferior-lisp-program "/bin/sbcl") +(slime-setup) + +;;; Shortcuts (defun indent-buffer() (interactive) (save-excursion