feat(editor): try snap-indent as a replacement for yank-indent

Currently trying via my own fork of snap-indent, which has a PR pending.
This commit is contained in:
2023-05-01 00:01:45 +01:00
parent ee044356a3
commit 3bd155cb79
3 changed files with 23 additions and 1 deletions

View File

@@ -45,6 +45,7 @@
(require 'siren-rainbow)
(require 'siren-recentf)
(require 'siren-savehist)
(require 'siren-snap-indent)
(require 'siren-subword)
(require 'siren-symbol-overlay)
(require 'siren-undo-fu)
@@ -53,7 +54,6 @@
(require 'siren-vundo)
(require 'siren-which-key)
(require 'siren-whitespace)
(require 'siren-yank-indent)
;; Completion Systems and Interfaces
(require 'siren-vertico)

View File

@@ -12,6 +12,9 @@
;; features.
(all-the-icons-completion :type git :flavor melpa :host github :repo "iyefrat/all-the-icons-completion"
:fork (:host github :repo "MintSoup/all-the-icons-completion"))
;; Override snap-indent to use fork with more features.
(snap-indent :type git :flavor melpa :host github :repo "jeffvalk/snap-indent"
:fork (:host github :repo "jimeh/snap-indent" :branch "various-features"))
;; Override vertico recipe to fix issues with extensions.
(vertico :type git :host github :repo "minad/vertico"
:files (:defaults "extensions/*" (:exclude ".git")))))))

View File

@@ -0,0 +1,19 @@
;;; siren-snap-indent.el --- jimeh's Emacs Siren: snap-indent configuration.
;;; Commentary:
;; Basic configuration for snap-indent.
;;; Code:
(use-package snap-indent
:hook
(prog-mode . snap-indent-mode)
(tex-mode . snap-indent-mode)
:custom
(snap-indent-yank-threshold 10000)
(snap-indent-yank-skip-indent-with-prefix-arg t))
(provide 'siren-snap-indent)
;;; siren-snap-indent.el ends here