;;; 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-10")) (setq visible-bell t) (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-refresh-contents) (package-install 'use-package)) (eval-and-compile (setq use-package-always-ensure t use-package-expand-minimally t)) (require 'use-package) (use-package modus-themes :init (setq modus-themes-mode-line '(borderless (padding . 1))) (modus-themes-load-themes) :config (modus-themes-load-vivendi)) ;; Language modes (use-package polymode) (use-package d-mode) (use-package go-mode) (use-package markdown-mode) (use-package rinari) (add-hook 'rinari-minor-mode-hook (lambda () (define-prefix-command 'pd-rinari-map1) (define-prefix-command 'pd-rinari-map2) (local-set-key (kbd "M-R") 'pd-rinari-map1) (local-set-key (kbd "M-r") 'pd-rinari-map2) (define-key pd-rinari-map1 "'" 'rinari-find-by-context) (define-key pd-rinari-map1 ";" 'rinari-find-by-context) (define-key pd-rinari-map1 "c" 'rinari-console) (define-key pd-rinari-map1 "d" 'rinari-cap) (define-key pd-rinari-map1 "e" 'rinari-insert-erb-skeleton) (define-key pd-rinari-map1 "g" 'rinari-rgrep) (define-key pd-rinari-map1 "p" 'rinari-goto-partial) (define-key pd-rinari-map1 "q" 'rinari-sql) (define-key pd-rinari-map1 "r" 'rinari-rake) (define-key pd-rinari-map1 "s" 'rinari-script) (define-key pd-rinari-map1 "t" 'rinari-test) (define-key pd-rinari-map1 "w" 'rinari-web-server) (define-key pd-rinari-map1 "x" 'rinari-extract-partial) (define-key pd-rinari-map2 ";" 'rinari-find-by-context) (define-key pd-rinari-map2 "C" 'rinari-find-cells) (define-key pd-rinari-map2 "F" 'rinari-find-features) (define-key pd-rinari-map2 "M" 'rinari-find-mailer) (define-key pd-rinari-map2 "S" 'rinari-find-steps) (define-key pd-rinari-map2 "Y" 'rinari-find-sass) (define-key pd-rinari-map2 "a" 'rinari-find-application) (define-key pd-rinari-map2 "c" 'rinari-find-controller) (define-key pd-rinari-map2 "e" 'rinari-find-environment) (define-key pd-rinari-map2 "f" 'rinari-find-file-in-project) (define-key pd-rinari-map2 "h" 'rinari-find-helper) (define-key pd-rinari-map2 "i" 'rinari-find-migration) (define-key pd-rinari-map2 "j" 'rinari-find-javascript) (define-key pd-rinari-map2 "l" 'rinari-find-lib) (define-key pd-rinari-map2 "m" 'rinari-find-model) (define-key pd-rinari-map2 "n" 'rinari-find-configuration) (define-key pd-rinari-map2 "o" 'rinari-find-log) (define-key pd-rinari-map2 "p" 'rinari-find-public) (define-key pd-rinari-map2 "r" 'rinari-find-rspec) (define-key pd-rinari-map2 "s" 'rinari-find-script) (define-key pd-rinari-map2 "t" 'rinari-find-test) (define-key pd-rinari-map2 "u" 'rinari-find-plugin) (define-key pd-rinari-map2 "v" 'rinari-find-view) (define-key pd-rinari-map2 "w" 'rinari-find-worker) (define-key pd-rinari-map2 "x" 'rinari-find-fixture) (define-key pd-rinari-map2 "y" 'rinari-find-stylesheet) (define-key pd-rinari-map2 "z" 'rinari-find-rspec-fixture) )) ;; Other packages (use-package ivy) (defun save-and-kill-current-buffer () (interactive) (save-buffer) (kill-current-buffer)) (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. '(package-selected-packages '(rinari polymode mumamo mumamo-mode 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. ) ;;; init.el ends here