Update init.el

This commit is contained in:
Rawley Fowler 2022-07-03 14:41:52 -06:00 committed by GitHub
parent ab6d758f6d
commit 220ac19749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,9 +5,10 @@
;;; 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"))
(add-to-list 'default-frame-alist '(font . "UbuntuMono Nerd Font-15"))
(setq visible-bell t)
(setq visible-bell nil)
(setq ring-bell-function 'ignore)
(setq-default tab-width 4)
(tool-bar-mode -1)
@ -24,79 +25,29 @@
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(package-refresh-contents)
(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))
(use-package zenburn-theme)
(load-theme 'zenburn t)
;; 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)
))
(use-package markdown-mode
:ensure t)
;; Other packages
(use-package ivy)
(use-package helm)
(require 'helm)
;; Custom functions
(defun save-and-kill-current-buffer ()
(interactive)
(save-buffer)
@ -107,8 +58,10 @@
;; 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
'(rinari polymode mumamo mumamo-mode md-mode markdown-mode ivy modus-themes use-package)))
'(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.