Compare commits

...

4 Commits

Author SHA1 Message Date
Jeremy Dormitzer
1061c2ec49 Add apheleia code formatter 2021-02-20 18:24:06 -05:00
Jeremy Dormitzer
88ac84b327 Add dired-sidebar 2021-02-20 18:24:00 -05:00
Jeremy Dormitzer
e8b3f2f746 Add more evil-collection invocations 2021-02-20 18:23:42 -05:00
Jeremy Dormitzer
90b4c18011 Make sure marginalia loads 2021-02-20 18:23:04 -05:00
6 changed files with 53 additions and 1 deletions

View File

@ -0,0 +1,12 @@
;; Configuration for built-ins that don't fit anywhere else
(use-package custom
:straight (:type built-in)
:config
(evil-collection-custom-setup))
(use-package view
:straight (:type built-in)
:config
(evil-collection-view-setup))
(provide 'init-built-ins)

View File

@ -15,6 +15,7 @@
;; Marginalia adds annotations to completion candidates
(use-package marginalia
:demand t
:config
(marginalia-mode 1)
;; When using Selectrum, ensure that Selectrum is refreshed when cycling annotations.

View File

@ -4,4 +4,23 @@
:config
(evil-collection-dired-setup))
;; Add a toggleable dired sidebar
(use-package dired-sidebar
:config
(defun winum-assign-0-to-dired-sidebar ()
(when (equal major-mode 'dired-sidebar-mode) 0))
(add-to-list 'winum-assign-functions #'winum-assign-0-to-dired-sidebar)
(add-hook 'dired-sidebar-mode-hook
(lambda ()
(unless (file-remote-p default-directory)
(auto-revert-mode))))
(add-hook 'dired-sidebar-mode-hook #'hide-mode-line-mode)
:general
(leader-map "d" #'dired-sidebar-toggle-sidebar)
:custom
(dired-sidebar-theme 'nerd)
(dired-sidebar-should-follow-file t)
(dired-sidebar-pop-to-sidebar-on-toggle-open nil)
(dired-sidebar-no-delete-other-windows t))
(provide 'init-dired)

View File

@ -2,7 +2,9 @@
;; Company-mode provides inline autocompletion
(use-package company
:hook (after-init . global-company-mode))
:hook (after-init . global-company-mode)
:config
(evil-collection-company-setup))
;; Flycheck gives you error squigglies
(use-package flycheck
@ -47,4 +49,17 @@
(use-package lsp-ui
:after lsp)
;; Some compilation-mode conveniences
(use-package compile
:straight (:type built-in)
:commands compile
:config
(evil-collection-compile-setup))
;; Code formatting library
(use-package apheleia
:straight (apheleia :host github :repo "raxod502/apheleia")
:general
("C-c f" #'apheleia-format-buffer))
(provide 'init-ide)

View File

@ -13,4 +13,8 @@
;; Load custom themes
(add-to-list 'custom-theme-load-path (expand-file-name "config/themes" user-emacs-directory))
;; A small package to hide the mode line
(use-package hide-mode-line
:commands hide-mode-line-mode)
(provide 'init-ui)

View File

@ -42,6 +42,7 @@
(require 'init-keybindings)
(require 'init-auth)
(require 'init-profiler)
(require 'init-built-ins)
(require 'init-dashboard)
(require 'init-dotfiles)
(require 'init-buffers)