From f88a2bd86196e56bd8e1d3e24b8c8263b0e3ed89 Mon Sep 17 00:00:00 2001 From: Rawley Fowler <75388349+rawleyfowler@users.noreply.github.com> Date: Mon, 19 Sep 2022 13:57:50 -0600 Subject: [PATCH] Create .emacs --- openbsd/home/.emacs | 74 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 openbsd/home/.emacs diff --git a/openbsd/home/.emacs b/openbsd/home/.emacs new file mode 100644 index 0000000..c0ebcf8 --- /dev/null +++ b/openbsd/home/.emacs @@ -0,0 +1,74 @@ +;;; package --- Rawley OpenBSD init.el +;;; Commentary: +;;; This is my Emacs init.el for OpenBSD. OpenBSD has always been +;;; one of my favorite opeating systems, but I have never had hardware +;;; that can take advantage of it. Thankfully, I found a compatible +;;; WiFi card for my Librebooted x200, now I can use OpenBSD \o/ +;;; Code: +(add-to-list 'default-frame-alist '(font . "Spleen-15")) + +(setq visible-bell nil) +(setq ring-bell-function 'ignore) +(setq-default tab-width 4) + +(tool-bar-mode -1) +(scroll-bar-mode -1) +(menu-bar-mode -1) + +(show-paren-mode 1) + +(recentf-mode 1) + +(require 'package) +(add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/")) +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) +(package-initialize) + +(unless (package-installed-p 'use-package) + (package-install 'use-package)) +(package-refresh-contents) + +(eval-and-compile + (setq use-package-always-ensure t + use-package-expand-minimally t)) + +(require 'use-package) +(load-theme 'modus-vivendi t) + +(require 'ido) +(ido-mode 1) + +(setq indent-tabs-mode nil) +(setq c-basic-offset 4) +(setq js-indent-level 2) + +;; Packages +(require 'use-package) +(use-package smex + :config + (smex-initialize) + (global-set-key (kbd "M-x") 'smex)) +(use-package tuareg) +(use-package utop + :ensure t) +(use-package haml-mode) +(use-package rescript-mode) +(use-package reason-mode) + +(setq utop-commands "opam config exec -- utop -emacs") +(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. + '(custom-safe-themes + '("70cfdd2e7beaf492d84dfd5f1955ca358afb0a279df6bd03240c2ce74a578e9e" default)) + '(package-selected-packages + '(reason-mode rescript-mode haml-mode utop tuareg smex helm zenburn-theme md-mode markdown-mode ivy modus-themes use-package))) +(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. + ) +;; end .emacs