Skip to content

Commit

Permalink
emacs: slime, github theme, restructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
niclas committed Mar 1, 2023
1 parent b4ddf1a commit afca342
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
;;; Package Management
(setq package-archives
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
Expand All @@ -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
Expand Down

0 comments on commit afca342

Please sign in to comment.