mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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")))))))
|
||||
|
||||
19
modules/editor/siren-snap-indent.el
Normal file
19
modules/editor/siren-snap-indent.el
Normal 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
|
||||
Reference in New Issue
Block a user