commit 65904d20a664d689924c4d7c217f5687c31b434a
parent 747e06064031c794cab5fe7a308e11883e8c9f7b
Author: Vincent Demeester <vincent@sbr.pm>
Date: Fri, 3 Nov 2023 17:41:13 +0100
tools/emacs: some winter cleaning
Re-use popper, move things around and clean some packages.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
5 files changed, 38 insertions(+), 23 deletions(-)
diff --git a/tools/emacs/config/config-buffers.el b/tools/emacs/config/config-buffers.el
@@ -75,6 +75,20 @@
(unless (eq ibuffer-sorting-mode 'filename/process)
(ibuffer-do-sort-by-filename/process)))))
+(use-package popper
+ :bind (("C-`" . popper-toggle)
+ ("M-`" . popper-cycle)
+ ("C-M-`" . popper-toggle-type))
+ :init
+ (setq popper-reference-buffers
+ '("\\*Messages\\*"
+ "Output\\*$"
+ "\\*Async Shell Command\\*"
+ help-mode
+ helpful-mode
+ compilation-mode))
+ (popper-mode +1)
+ (popper-echo-mode +1))
(provide 'config-buffers)
;;; config-buffers.el ends here
diff --git a/tools/emacs/config/config-dired.el b/tools/emacs/config/config-dired.el
@@ -224,5 +224,22 @@ This relies on the external 'fd' executable."
(setq trashed-sort-key '("Date deleted" . t))
(setq trashed-date-format "%Y-%m-%d %H:%M:%S"))
+(use-package dired-sidebar
+ :bind (("C-x C-n" . dired-sidebar-toggle-sidebar))
+ :commands (dired-sidebar-toggle-sidebar)
+ :init
+ (add-hook 'dired-sidebar-mode-hook
+ (lambda ()
+ (unless (file-remote-p default-directory)
+ (auto-revert-mode))))
+ :config
+ (push 'toggle-window-split dired-sidebar-toggle-hidden-commands)
+ (push 'rotate-windows dired-sidebar-toggle-hidden-commands)
+
+ ;; (setq dired-sidebar-subtree-line-prefix "__")
+ ;;(setq dired-sidebar-use-custom-font t)
+ (setq dired-sidebar-theme 'arrow)
+ (setq dired-sidebar-use-term-integration t))
+
(provide 'config-dired)
;; config-dired.el ends here
diff --git a/tools/emacs/config/config-navigating.el b/tools/emacs/config/config-navigating.el
@@ -101,22 +101,5 @@
("i" . Man-goto-section)
("g" . Man-update-manpage)))
-(use-package dired-sidebar
- :bind (("C-x C-n" . dired-sidebar-toggle-sidebar))
- :commands (dired-sidebar-toggle-sidebar)
- :init
- (add-hook 'dired-sidebar-mode-hook
- (lambda ()
- (unless (file-remote-p default-directory)
- (auto-revert-mode))))
- :config
- (push 'toggle-window-split dired-sidebar-toggle-hidden-commands)
- (push 'rotate-windows dired-sidebar-toggle-hidden-commands)
-
- ;; (setq dired-sidebar-subtree-line-prefix "__")
- ;;(setq dired-sidebar-use-custom-font t)
- (setq dired-sidebar-theme 'arrow)
- (setq dired-sidebar-use-term-integration t))
-
(provide 'config-navigating)
;;; config-navigating.el ends here
diff --git a/tools/emacs/config/programming-eglot.el b/tools/emacs/config/programming-eglot.el
@@ -21,6 +21,7 @@
(before-save . gofmt-before-save)
(before-save . eglot-format-buffer)
(rust-mode . eglot-ensure)
+ (rust-ts-mode . eglot-ensure)
(sh-script-mode . eglot-ensure)
(python-mode . eglot-ensure)
(json-mode . eglot-ensure)
@@ -32,6 +33,12 @@
:custom
rustic-lsp-client 'eglot)
+(use-package eldoc-box
+ :hook
+ (eglot-managed-mode . eldoc-box-hover-mode)
+ :custom
+ (eldoc-box-max-pixel-width 1024))
+
(provide 'programming-eglot)
;;; programming-eglot.el ends here
diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix
@@ -50,8 +50,6 @@ let
edit-indirect
editorconfig
eldoc-box
- elfeed
- elfeed-org
embark
embark-consult
envrc
@@ -88,12 +86,9 @@ let
magit
magit-annex
magit-popup
- marginalia
markdown-mode
mct
- minions
modus-themes
- moody
multi-vterm
mwim
nix-buffer
@@ -134,7 +129,6 @@ let
try
undo-tree
use-package
- vertico
visual-fill-column
visual-regexp
vterm