emacs: cleanup, add markdown mode and support for direnv
This commit is contained in:
parent
9b8a751038
commit
b0c37c7207
1 changed files with 15 additions and 1 deletions
16
init.el
16
init.el
|
@ -85,7 +85,10 @@
|
||||||
|
|
||||||
;; wasteland of hooks regarding tabs behavior Remember how it "Just
|
;; wasteland of hooks regarding tabs behavior Remember how it "Just
|
||||||
;; worked"™ in vim? That's what you pay with for org mode
|
;; worked"™ in vim? That's what you pay with for org mode
|
||||||
|
;; yays: (need to make a list or something)
|
||||||
(add-hook 'prog-mode-hook 'tabs-yay)
|
(add-hook 'prog-mode-hook 'tabs-yay)
|
||||||
|
|
||||||
|
;; nays
|
||||||
(add-hook 'lisp-mode-hook 'tabs-nay)
|
(add-hook 'lisp-mode-hook 'tabs-nay)
|
||||||
(add-hook 'scheme-mode-hook 'tabs-nay)
|
(add-hook 'scheme-mode-hook 'tabs-nay)
|
||||||
(add-hook 'emacs-lisp-mode-hook 'tabs-nay)
|
(add-hook 'emacs-lisp-mode-hook 'tabs-nay)
|
||||||
|
@ -285,7 +288,7 @@
|
||||||
:bind ("C-=" . er/expand-region))
|
:bind ("C-=" . er/expand-region))
|
||||||
|
|
||||||
(use-package vterm
|
(use-package vterm
|
||||||
:bind ("C-c C-t" . vterm)
|
:bind ("C-c t" . vterm)
|
||||||
:init
|
:init
|
||||||
(setq vterm-kill-buffer-on-exit t))
|
(setq vterm-kill-buffer-on-exit t))
|
||||||
|
|
||||||
|
@ -302,6 +305,17 @@
|
||||||
:straight t
|
:straight t
|
||||||
:mode "\\.nix\\'")
|
:mode "\\.nix\\'")
|
||||||
|
|
||||||
|
(use-package markdown-mode
|
||||||
|
:straight t
|
||||||
|
:mode (("README\\.md\\'" . gfm-mode)
|
||||||
|
("\\.md\\'" . markdown-mode)
|
||||||
|
("\\.markdown\\'" . markdown-mode)))
|
||||||
|
|
||||||
|
(use-package direnv
|
||||||
|
:straight t
|
||||||
|
:config
|
||||||
|
(direnv-mode))
|
||||||
|
|
||||||
;; throw away all the list-of-custom-shit!
|
;; throw away all the list-of-custom-shit!
|
||||||
(setq custom-file "~/.emacs.d/custom.el")
|
(setq custom-file "~/.emacs.d/custom.el")
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue