Compare commits
4 Commits
d2f6170b8e
...
1061c2ec49
Author | SHA1 | Date | |
---|---|---|---|
|
1061c2ec49 | ||
|
88ac84b327 | ||
|
e8b3f2f746 | ||
|
90b4c18011 |
12
emacs/.emacs.d/config/init-built-ins.el
Normal file
12
emacs/.emacs.d/config/init-built-ins.el
Normal 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)
|
@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
;; Marginalia adds annotations to completion candidates
|
;; Marginalia adds annotations to completion candidates
|
||||||
(use-package marginalia
|
(use-package marginalia
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(marginalia-mode 1)
|
(marginalia-mode 1)
|
||||||
;; When using Selectrum, ensure that Selectrum is refreshed when cycling annotations.
|
;; When using Selectrum, ensure that Selectrum is refreshed when cycling annotations.
|
||||||
|
@ -4,4 +4,23 @@
|
|||||||
:config
|
:config
|
||||||
(evil-collection-dired-setup))
|
(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)
|
(provide 'init-dired)
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
;; Company-mode provides inline autocompletion
|
;; Company-mode provides inline autocompletion
|
||||||
(use-package company
|
(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
|
;; Flycheck gives you error squigglies
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
@ -47,4 +49,17 @@
|
|||||||
(use-package lsp-ui
|
(use-package lsp-ui
|
||||||
:after lsp)
|
: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)
|
(provide 'init-ide)
|
||||||
|
@ -13,4 +13,8 @@
|
|||||||
;; Load custom themes
|
;; Load custom themes
|
||||||
(add-to-list 'custom-theme-load-path (expand-file-name "config/themes" user-emacs-directory))
|
(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)
|
(provide 'init-ui)
|
||||||
|
@ -42,6 +42,7 @@
|
|||||||
(require 'init-keybindings)
|
(require 'init-keybindings)
|
||||||
(require 'init-auth)
|
(require 'init-auth)
|
||||||
(require 'init-profiler)
|
(require 'init-profiler)
|
||||||
|
(require 'init-built-ins)
|
||||||
(require 'init-dashboard)
|
(require 'init-dashboard)
|
||||||
(require 'init-dotfiles)
|
(require 'init-dotfiles)
|
||||||
(require 'init-buffers)
|
(require 'init-buffers)
|
||||||
|
Loading…
Reference in New Issue
Block a user