Add new plugins and kbd bindings to OBSD emacs

This commit is contained in:
Rawley Fowler 2022-07-14 15:51:17 -06:00 committed by GitHub
parent 3c8f4a3241
commit f0cb24630a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
;;; that can take advantage of it. Thankfully, I found a compatible ;;; that can take advantage of it. Thankfully, I found a compatible
;;; WiFi card for my Librebooted x200, now I can use OpenBSD \o/ ;;; WiFi card for my Librebooted x200, now I can use OpenBSD \o/
;;; Code: ;;; Code:
(add-to-list 'default-frame-alist '(font . "UbuntuMono Nerd Font Mono-15")) (add-to-list 'default-frame-alist '(font . "UbuntuMono Nerd Font Mono-16"))
(setq inhibit-startup-screen t) (setq inhibit-startup-screen t)
(setq visible-bell nil) (setq visible-bell nil)
@ -42,11 +42,21 @@
;; Language modes ;; Language modes
(use-package d-mode) (use-package d-mode)
(use-package yaml-mode)
(use-package go-mode) (use-package go-mode)
(use-package markdown-mode (use-package markdown-mode
:ensure t) :ensure t)
;; Other packages ;; Other packages
(use-package web-mode)
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
(use-package smex) (use-package smex)
(require 'smex) (require 'smex)
(global-set-key (kbd "M-x") 'smex) (global-set-key (kbd "M-x") 'smex)
@ -56,6 +66,7 @@
(interactive) (interactive)
(save-buffer) (save-buffer)
(kill-current-buffer)) (kill-current-buffer))
(global-set-key (kbd "C-= C-g") 'indent-code-rigidly)
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables was added by Custom.
@ -63,7 +74,7 @@
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages '(package-selected-packages
'(helm zenburn-theme md-mode markdown-mode ivy modus-themes use-package))) '(yaml-mode helm zenburn-theme md-mode markdown-mode ivy modus-themes use-package)))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.