Add configuration for a handful of assorted packages
This commit is contained in:
parent
6727eafc99
commit
b3661e5069
19
init.el
19
init.el
@ -42,3 +42,22 @@
|
||||
(load-user-file "interface.el")
|
||||
(load-user-file "key-bindings.el")
|
||||
(load-user-file "typography.el")
|
||||
|
||||
(load-user-dir "pkg")
|
||||
|
||||
|
||||
;; WARNING: Don't touch anything after this comment!
|
||||
|
||||
(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
|
||||
'(yasnippet which-key super-save solaire-mode smartparens rainbow-delimiters magit hl-todo git-gutter flycheck diminish crux)))
|
||||
(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.
|
||||
)
|
||||
|
12
pkg/crux.el
Normal file
12
pkg/crux.el
Normal file
@ -0,0 +1,12 @@
|
||||
;; Useful improvements to default keyboard shortcuts.
|
||||
;; https://github.com/bbatsov/crux
|
||||
(use-package crux
|
||||
:ensure t
|
||||
:bind
|
||||
("C-a" . crux-move-beginning-of-line)
|
||||
("C-k" . crux-smart-kill-line)
|
||||
("C-c d" . crux-duplicate-current-line-or-region)
|
||||
("C-c f" . crux-recentf-find-file)
|
||||
("C-c n" . crux-cleanup-buffer-or-region)
|
||||
("C-x C-l" . crux-downcase-region)
|
||||
("C-x C-u" . crux-upcase-region))
|
4
pkg/diminish.el
Normal file
4
pkg/diminish.el
Normal file
@ -0,0 +1,4 @@
|
||||
;; Don't display minor modes in the mode line.
|
||||
;; https://github.com/emacsmirror/diminish
|
||||
(use-package diminish
|
||||
:ensure t)
|
9
pkg/flycheck.el
Normal file
9
pkg/flycheck.el
Normal file
@ -0,0 +1,9 @@
|
||||
;; On-the-fly syntax checking.
|
||||
;; https://github.com/flycheck/flycheck
|
||||
(use-package flycheck
|
||||
:ensure t
|
||||
:defer t
|
||||
:diminish flycheck-mode
|
||||
:config
|
||||
(setq flycheck-standard-error-navigation nil)
|
||||
(add-hook 'after-init-hook #'global-flycheck-mode))
|
12
pkg/git-gutter.el
Normal file
12
pkg/git-gutter.el
Normal file
@ -0,0 +1,12 @@
|
||||
;; Display gutter icons for inserted, modified, and deleted lines.
|
||||
;; https://github.com/emacsorphanage/git-gutter
|
||||
(use-package git-gutter
|
||||
:ensure t
|
||||
:diminish git-gutter-mode
|
||||
:config
|
||||
(custom-set-variables
|
||||
'(git-gutter:modified-sign " *")
|
||||
'(git-gutter:added-sign " +")
|
||||
'(git-gutter:deleted-sign " -"))
|
||||
(add-hook 'prog-mode-hook #'git-gutter-mode)
|
||||
(add-hook 'text-mode-hook #'git-gutter-mode))
|
6
pkg/hl-line.el
Normal file
6
pkg/hl-line.el
Normal file
@ -0,0 +1,6 @@
|
||||
;; Highlight the current line.
|
||||
;; https://www.emacswiki.org/emacs/HighlightCurrentLine
|
||||
(use-package hl-line
|
||||
:config
|
||||
(add-hook 'prog-mode-hook #'hl-line-mode)
|
||||
(add-hook 'text-mode-hook #'hl-line-mode))
|
7
pkg/hl-todo.el
Normal file
7
pkg/hl-todo.el
Normal file
@ -0,0 +1,7 @@
|
||||
;; Highlight keywords in comments and strings.
|
||||
;; https://github.com/tarsius/hl-todo
|
||||
(use-package hl-todo
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'prog-mode-hook #'hl-todo-mode)
|
||||
(add-hook 'text-mode-hook #'hl-todo-mode))
|
5
pkg/magit.el
Normal file
5
pkg/magit.el
Normal file
@ -0,0 +1,5 @@
|
||||
;; Git integration, how it was meant to be.
|
||||
;; https://github.com/magit/magit
|
||||
(use-package magit
|
||||
:ensure t
|
||||
:defer t)
|
6
pkg/rainbow-delimiters.el
Normal file
6
pkg/rainbow-delimiters.el
Normal file
@ -0,0 +1,6 @@
|
||||
;; Rainbow delimiters!
|
||||
;; https://github.com/Fanael/rainbow-delimiters
|
||||
(use-package rainbow-delimiters
|
||||
:ensure t
|
||||
:config
|
||||
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
|
11
pkg/smart-parens.el
Normal file
11
pkg/smart-parens.el
Normal file
@ -0,0 +1,11 @@
|
||||
;; Insert/delete parens in pairs, highlight pairs, etc. General quality of life
|
||||
;; improvements.
|
||||
;; https://github.com/Fuco1/smartparens
|
||||
(use-package smartparens
|
||||
:ensure t
|
||||
:diminish smartparens-mode
|
||||
:config
|
||||
(progn
|
||||
(require 'smartparens-config)
|
||||
(smartparens-global-mode)
|
||||
(show-paren-mode)))
|
6
pkg/solaire-mode.el
Normal file
6
pkg/solaire-mode.el
Normal file
@ -0,0 +1,6 @@
|
||||
;; Distinguish "real" buffers from "unreal" buffers.
|
||||
;; https://github.com/hlissner/emacs-solaire-mode
|
||||
(use-package solaire-mode
|
||||
:ensure t
|
||||
:config
|
||||
(solaire-global-mode +1))
|
8
pkg/super-save.el
Normal file
8
pkg/super-save.el
Normal file
@ -0,0 +1,8 @@
|
||||
;; Save buffers when focus is lost.
|
||||
;; https://github.com/bbatsov/super-save
|
||||
(use-package super-save
|
||||
:ensure t
|
||||
:defer t
|
||||
:diminish super-save-mode
|
||||
:config
|
||||
(super-save-mode +1))
|
7
pkg/which-key.el
Normal file
7
pkg/which-key.el
Normal file
@ -0,0 +1,7 @@
|
||||
;; Show keystroke suggestions.
|
||||
;; https://github.com/justbur/emacs-which-key
|
||||
(use-package which-key
|
||||
:ensure t
|
||||
:diminish which-key-mode
|
||||
:config
|
||||
(which-key-mode))
|
9
pkg/yasnippet.el
Normal file
9
pkg/yasnippet.el
Normal file
@ -0,0 +1,9 @@
|
||||
;; A template system for Emacs.
|
||||
;; https://github.com/joaotavora/yasnippet
|
||||
(use-package yasnippet
|
||||
:ensure t
|
||||
:defer t
|
||||
:config
|
||||
(yas-reload-all)
|
||||
(add-hook 'prog-mode-hook 'yas-minor-mode)
|
||||
(add-hook 'text-mode-hook 'yas-minor-mode))
|
Loading…
Reference in New Issue
Block a user